PIC32 USB CDC No function after last update

Any bugs you encounter with Flowcode should be discussed here.
SpeedPIC32
Posts: 252
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: PIC32 USB CDC No function after last update

Post by SpeedPIC32 »

Greetings SpeedPic32
Attachments
13-09-2023 17-39-26.jpg
13-09-2023 17-39-26.jpg (61.89 KiB) Viewed 4352 times
13-09-2023 17-37-00.jpg
13-09-2023 17-37-00.jpg (62.11 KiB) Viewed 4352 times

SpeedPIC32
Posts: 252
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: PIC32 USB CDC No function after last update

Post 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

SpeedPIC32
Posts: 252
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: PIC32 USB CDC No function after last update

Post 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

Steve-Matrix
Matrix Staff
Posts: 1256
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 278 times

Re: PIC32 USB CDC No function after last update

Post 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.

SpeedPIC32
Posts: 252
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: PIC32 USB CDC No function after last update

Post by SpeedPIC32 »

Hello Steve

Here is my data from FC9
Where can I find the driver or the batch file?
Attachments
USBCDCTEST.fcfx
(14.5 KiB) Downloaded 136 times
USBCDCTEST.c
(47.5 KiB) Downloaded 138 times

SpeedPIC32
Posts: 252
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: PIC32 USB CDC No function after last update

Post by SpeedPIC32 »

here these do not work.
Attachments
USBCDCTESTneu.fcfx
(8.49 KiB) Downloaded 134 times
USBCDCTESTneu.c
(42.59 KiB) Downloaded 143 times

SpeedPIC32
Posts: 252
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: PIC32 USB CDC No function after last update

Post by SpeedPIC32 »

Replace txt with bat
Attachments
PIC32compCDC.txt
(7.54 KiB) Downloaded 140 times

SpeedPIC32
Posts: 252
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: PIC32 USB CDC No function after last update

Post by SpeedPIC32 »

$(compilerpic32)batch\PIC32compCDC.bat
"$(chip)" "$(srcdir)" "$(target)" "$(family)"

Steve-Matrix
Matrix Staff
Posts: 1256
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 168 times
Been thanked: 278 times

Re: PIC32 USB CDC No function after last update

Post 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.

SpeedPIC32
Posts: 252
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: PIC32 USB CDC No function after last update

Post 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

Post Reply