USB CDC Error

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
SpeedPIC32
Posts: 302
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 2:35 pm
Location: Germany
Has thanked: 41 times
Been thanked: 18 times

Flowcode v11 USB CDC Error

Post by SpeedPIC32 »

Hello everyone,
My CDC error persists in FC 11.
Is Harmony V1.11 still being used, or is it V3?
Here is my error message:

C:\Users\Uwe\Documents\Matrix\OIT\Oit-Heizung_18_neu.c: In function '_IntHandlerUSBInstance0':
C:\Users\Uwe\Documents\Matrix\OIT\Oit-Heizung_18_neu.c:9540:27: error: 'sysObj' undeclared (first use in this function)
C:\Users\Uwe\Documents\Matrix\OIT\Oit-Heizung_18_neu.c:9540:27: note: each undeclared identifier is reported only once for each function it appears in
C:\Users\Uwe\Documents\Matrix\OIT\Oit-Heizung_18_neu.c: In function '_IntHandlerUSBInstance0_USBDMA':
C:\Users\Uwe\Documents\Matrix\OIT\Oit-Heizung_18_neu.c:9544:34: error: 'sysObj' undeclared (first use in this function)

C:\Program Files (x86)\Flowcode\Compilers\pic32\bin\xc32-gcc.exe Hat den Fehlercode 0xFF gemeldet

medelec35
Matrix Staff
Posts: 2190
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 664 times
Been thanked: 743 times

Re: USB CDC Error

Post by medelec35 »

Hello.
Can you please upload all the files mentioned on this post.
Then we can see if we can sort out the issue for you.
Martin

SpeedPIC32
Posts: 302
Joined: Thu Dec 10, 2020 2:35 pm
Location: Germany
Has thanked: 41 times
Been thanked: 18 times

Re: USB CDC Error

Post by SpeedPIC32 »

Hello medelec35
Still no solution for USB CDC?
That's really sad.
In your wiki on USB Serial, you use a PIC that doesn't have a USB interface. I switched to FC11 specifically because I hoped that the USB interface would work here. I reinstalled everything and it still doesn't work.

Now it's your turn. You are also welcome to access my computer remotely. Unfortunately, I don't speak English and use a translator.
So get to work! Best regards,
SpeedPic32

Translated with DeepL.com (free version)

SpeedPIC32
Posts: 302
Joined: Thu Dec 10, 2020 2:35 pm
Location: Germany
Has thanked: 41 times
Been thanked: 18 times

Re: USB CDC Error

Post by SpeedPIC32 »

I reinstalled everything, but it still doesn't work.
Target folder: C:\Users\Uwe\Documents\Matrix\OIT
Source name: C:\Users\Uwe\Documents\Matrix\OIT\efhcdc test.fcfx
Title: Neues eingebettetes Projekt
Description:
Device: PIC32.32MZ.32MZ1024EFM144
Generated by: Flowcode v11.0.0.8
Date: Friday, November 14, 2025 17:03:32
Users: 1
Registriert für: SpeedPIC32 (24146314)
Lizenzschlüssel:MP62C5
https://www.flowcode.co.uk
Using <cdcusb> user settings for compiler
Start des Compilers...
C:\Program Files (x86)\Flowcode\Compilers\pic32\batch\PIC32compCDC.bat "32MZ1024EFM144" "C:\Users\Uwe\Documents\Matrix\OIT\" "efhcdc test" "32MZ"

Project efhcdc test
Device 32MZ1024EFM144
Objects efhcdc test_32MZ1024EFM144


C:\Users\Uwe\Documents\Matrix\OIT>xc32-gcc -mprocessor=32MZ1024EFM144 -DMX_USBHS -IC:\Users\Uwe\Documents\Matrix\OIT\. -IC:\ProgramData\MatrixTSL\FlowcodeV9\CAL\PIC32BIT\USB\CDC -IC:\microchip\harmony\v1_11 -IC:\microchip\harmony\v1_11\framework -w -c -ffunction-sections -O1 -o "efhcdc test_32MZ1024EFM144\efhcdc test.o" "efhcdc test.c" -DMX_USBHS
efhcdc test.c: In function '_IntHandlerUSBInstance0':
efhcdc test.c:376:27: error: 'sysObj' undeclared (first use in this function)
DRV_USBHS_Tasks_ISR_USBDMA(sysObj.drvUSBObject);
^
efhcdc test.c:376:27: note: each undeclared identifier is reported only once for each function it appears in
efhcdc test.c: In function '_IntHandlerUSBInstance0_USBDMA':
efhcdc test.c:380:34: error: 'sysObj' undeclared (first use in this function)
#ifdef MX_PIC32_MX
^
Error(s) in build

C:\Program Files (x86)\Flowcode\Compilers\pic32\batch\PIC32compCDC.bat Hat den Fehlercode 0x1 gemeldet

Autoclose turned off


BEENDET

Post Reply