Page 2 of 2
Re: PIC32 USB CDC No function after last update
Posted: Wed Sep 13, 2023 5:05 pm
by SpeedPIC32
Greetings SpeedPic32
Re: PIC32 USB CDC No function after last update
Posted: Sat Sep 16, 2023 11:47 am
by SpeedPIC32
Hello together
When the driver is in place, Win 10, 7 and XP recognise it as a Flowcode USB Serial device. The driver is installed and then works normally.
At the moment I can compile in FC9 and 10 without errors but no operating system recognises the device. I get the message Unknown device and error when requesting a device description.
Greetings SpeedPic32
Re: PIC32 USB CDC No function after last update
Posted: Tue Sep 19, 2023 6:49 pm
by SpeedPIC32
Hello together
I have noticed
in FC 9 I can recompile software I wrote before the update and the USB port works.
i can change the software, compile it and usb works. if i write something new usb does not work.
it would be nice if someone would take care of this for once
greetings SeedPic32
Re: PIC32 USB CDC No function after last update
Posted: Wed Sep 20, 2023 8:53 am
by Steve-Matrix
Please post your working project (FCFX, C and driver files) and also a new project which does not work (again, FCFX, C and driver files) and we will try to discover the problem.
Re: PIC32 USB CDC No function after last update
Posted: Wed Sep 20, 2023 8:01 pm
by SpeedPIC32
Hello Steve
Here is my data from FC9
Where can I find the driver or the batch file?
Re: PIC32 USB CDC No function after last update
Posted: Wed Sep 20, 2023 8:02 pm
by SpeedPIC32
here these do not work.
Re: PIC32 USB CDC No function after last update
Posted: Wed Sep 20, 2023 8:05 pm
by SpeedPIC32
Replace txt with bat
Re: PIC32 USB CDC No function after last update
Posted: Wed Sep 20, 2023 8:07 pm
by SpeedPIC32
$(compilerpic32)batch\PIC32compCDC.bat
"$(chip)" "$(srcdir)" "$(target)" "$(family)"
Re: PIC32 USB CDC No function after last update
Posted: Thu Sep 21, 2023 9:05 am
by Steve-Matrix
Thanks for the files.
I've compared both files and these are the differences between the 2 projects:
- Config settings for the chip are very different
- The old one uses a delay which clears the watchdog automatically
Both of these issues could be causing your issues. Please check the chip config settings are correct for the new project. And also make sure "Auto clear watchdog" is ticked in the "Project Options" window.
Re: PIC32 USB CDC No function after last update
Posted: Sun Oct 08, 2023 10:23 am
by SpeedPIC32
Hello all
Steve Matrix was right.
It just didn't work with the alignment of the data anyway.
Now I had a good idea.
I took over the compiler options from version FC9 and now it works again.
Here is my data
Compiler location
$(compilerpic32)batch\PIC32compCDC.bat
Parameter
"$(chip)" "$(srcdir)" "$(target)" "$(family)"
Linker / assembler location
$(compilerpic32)bin\xc32-bin2hex.exe
Parameter
"$(srcdir)$(target).elf"
Programmer location
$(mplabxdir)mplab_platform\mplab_ipe\ipecmd.exe
Parameters
/P$(chip) /F"$(outdir)$(target).hex" /TPPK4 /M /OL
File Viewer Location
C:\Windows\Notepad.exe
Parameters
$(outdir)$(target).c
I hope it helps one or the other.
SpeedPic32