Page 2 of 2

Re: USB CDC Error

Posted: Wed Nov 19, 2025 1:16 pm
by SpeedPIC32
FC 10 PIC 32 is now OK. FC 11 is not working yet.
Target folder: C:\Users\Uwe\Documents\FLOWCODE_USB
Source name: C:\Users\Uwe\Documents\FLOWCODE_USB\PIC32_USB_Serial.fcfx
Title: New Embedded Project
Description:
Device: PIC32.32MZ.32MZ1024EFM144
Generated by: Flowcode v11.0.0.8
Date: Wednesday, November 19, 2025 14:11:29
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\FLOWCODE_USB\“ „PIC32_USB_Serial“ „32MZ“

Project "PIC32_USB_Serial"
Device "32MZ1024EFM144"
Objects "PIC32_USB_Serial"_"32MZ1024EFM144"


C:\Users\Uwe\Documents\FLOWCODE_USB>xc32-gcc -mprocessor="32MZ1024EFM144" -I"C:\Users\Uwe\Documents\FLOWCODE_USB\". -IC:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PIC32BIT\USB\CDC -IC:\microchip\harmony\v1_11 -IC:\microchip\harmony\v1_11\framework -w -c -ffunction-sections -O1 -o ""PIC32_USB_Serial"_"32MZ1024EFM144"\"PIC32_USB_Serial".o" ""PIC32_USB_Serial".c"
xc32-gcc.exe: error: �PIC32_USB_Serial�.c: No such file or directory
xc32-gcc.exe: fatal error: no input files
compilation terminated.
Error(s) in build

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

Autoclose turned off


BEENDET

Re: USB CDC Error

Posted: Wed Nov 19, 2025 1:28 pm
by SpeedPIC32
FC 10 PIC 18 and FC 11 PIC 18 are also not working yet.

Re: USB CDC Error

Posted: Wed Nov 19, 2025 2:39 pm
by Steve-Matrix
To get v11 working with the PIC32, you probably need to replicate the "Build...Compiler Options" settings from v10.

I'm not sure how to get PIC18 devices working with CDC.

Re: USB CDC Error

Posted: Wed Nov 19, 2025 2:43 pm
by BenR
Hello,
FC 10 PIC 18 and FC 11 PIC 18 are also not working yet.
This is news to me, what specifically isn't working? Do you have examples or Forum topics where you are detailing the problems?

Re: USB CDC Error

Posted: Wed Nov 19, 2025 3:29 pm
by SpeedPIC32
Hello Benr,
I meant that the USB CDC for PIC 16 18 does not work with FC10 and 11.
For your information: https://github.com/johnnydrazzi/USB-Stack

Re: USB CDC Error

Posted: Wed Nov 19, 2025 3:39 pm
by BenR
Hello,

USB Serial works a treat on 8-bit PIC devices using v10 and v11. I've just tested it using our old ECIO hardware and it's working great.
PIC8_USB_Serial.fcfx
(8.74 KiB) Downloaded 8 times

The only thing you have to ensure is the clock speed which specifically needs to be at 48MHz.

Re: USB CDC Error

Posted: Wed Nov 19, 2025 6:19 pm
by SpeedPIC32
FC11

Target folder: C:\Users\Uwe\Documents\FLOWCODE_USB
Source name: C:\Users\Uwe\Documents\FLOWCODE_USB\PIC8_USB_Serial.fcfx
Title: New Embedded Project
Description:
Device: PIC.18F.ECIO-40
Generated by: Flowcode v11.0.0.8
Date: Wednesday, November 19, 2025 19:04:40
Users: 1
Registriert für: SpeedPIC32 (24146314)
Lizenzschlüssel:MP62C5
https://www.flowcode.co.uk
Using <CDC> user settings for compiler
Start des Compilers...
C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files (x86)\Flowcode\Compilers\picv2\" "ECIO-40" "C:\Users\Uwe\Documents\FLOWCODE_USB\" "PIC8_USB_Serial"

C:\Users\Uwe\Documents\FLOWCODE_USB>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589A9CE866D3EBD48DE4910375451077F45562AF2F62E9AB6760C3CAEE8E7DA6987B08235BD4F165DE350CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE464087EABAE4073CCE8590A2034B265B899B535CCC0630944A53779878588293DF04F96FE36F6B2B

C:\Users\Uwe\Documents\FLOWCODE_USB>REM REVISION: 5.0

C:\Users\Uwe\Documents\FLOWCODE_USB>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC

C:\Users\Uwe\Documents\FLOWCODE_USB>REM DATE: 12\06\2025

C:\Users\Uwe\Documents\FLOWCODE_USB>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat

C:\Users\Uwe\Documents\FLOWCODE_USB>"C:\Program Files (x86)\Flowcode\Compilers\picv2\bin\xc8.exe" --chip=ECIO-40 "PIC8_USB_Serial.c" --double=32 --float=32 --msgdisable=359,1273,1388
C:\Program Files (x86)\Flowcode\Compilers\picv2\pic\bin\picc --chip=ECIO-40 PIC8_USB_Serial.c --double=32 --float=32 --msgdisable=359,1273,1388
(141) can't open chip info file "(null)": Invalid argument
(908) exit status = 1

Error returned from [xc8.exe]

C:\ProgramData\MatrixTSL\FlowcodeV11\FCD\PIC\batch\pic_xc8_comp.bat Hat den Fehlercode 0x1 gemeldet

Autoclose turned off


BEENDET

FC 10

Target folder: C:\Users\Uwe\Documents\FLOWCODE_USB
Source name: C:\Users\Uwe\Documents\FLOWCODE_USB\PIC8_USB_Serial.fcfx
Title: New Embedded Project
Description:
Device: PIC.18F.ECIO-40
Generated by: Flowcode v10.1.2.40
Date: Wednesday, November 19, 2025 19:18:32
Users: 1
Registriert für: SpeedPIC32 (24146314)
Lizenzschlüssel:ZQ34CT
https://www.flowcode.co.uk
Using <> user settings for compiler
Start des Compilers...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat "ECIO-40" "C:\Users\Uwe\Documents\FLOWCODE_USB\" "PIC8_USB_Serial" "18F"

C:\Users\Uwe\Documents\FLOWCODE_USB>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589A9CE866D3EBD48DE4910375451077F45562AF2F62E9AB6760C3CAEE8E7DA6987B08235BD4F165DE350CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE464087EABAE4073CCE8590A2034B265B899B535CCC0630944A53779878588293DF04F96FE36F6B2B

C:\Users\Uwe\Documents\FLOWCODE_USB>REM REVISION: 5.0

C:\Users\Uwe\Documents\FLOWCODE_USB>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC

C:\Users\Uwe\Documents\FLOWCODE_USB>REM DATE: 12\06\2025

C:\Users\Uwe\Documents\FLOWCODE_USB>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat
Das System kann den angegebenen Pfad nicht finden.

C:\Users\Uwe\Documents\FLOWCODE_USB>"ECIO-40bin\xc8.exe" --chip=C:\Users\Uwe\Documents\FLOWCODE_USB\ "18F.c" --double=32 --float=32 --msgdisable=359,1273,1388
Das System kann den angegebenen Pfad nicht finden.

Error returned from [xc8.exe]

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat Hat den Fehlercode 0x1 gemeldet

Autoclose turned off


BEENDET

Re: USB CDC Error

Posted: Thu Nov 20, 2025 9:21 am
by Steve-Matrix
I just tried v11 with the default "Compiler Options" settings and up-to-date library files and it compiles without error for me. It looks like your FCD file for the ECIO40 has been modified or your Compiler Settings are wrong because that device should override the compiler settings.

If it helps, my v11 project and compiler messages are attached.

Re: USB CDC Error

Posted: Thu Nov 20, 2025 9:52 am
by SpeedPIC32
Hello
I have got all versions in FC10 and FC11, with 8-bit and 32-bit PICs, USB CDC up and running.
Many thanks to everyone involved. :D :D :D
I had incorrect characters in the compiler settings, apparently 2 times ' ' instead of " it just looks the same. I had used copy and paste with a text programme and ended up with a space somewhere in the folder path and the wrong characters.
Thanks again :mrgreen:
SpeedPIC32

Re: USB CDC Error

Posted: Thu Nov 20, 2025 9:59 am
by Steve-Matrix
Great news - thanks for letting us know.