fatal error: CDC_Setup.h: No such file or directory

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

Re: fatal error: CDC_Setup.h: No such file or directory

Post by SpeedPIC32 »

Hi,

compiler:
Location = C:\Program Files (x86)\Flowcode\Common\Compilers\pic32\batch\PIC32compCDC.bat
Paramters = "$(chip)" "$(srcdir)" "$(target)" "$(family)"

Flowcode v9.0.0.23 Standard Version
Windows 10 Pro x64

Log:

Code: Select all

Target folder: C:\Users\uwe\Documents\Daten\Matrix
Source name:   C:\Users\uwe\Documents\Daten\Matrix\USB.fcfx
Title:         
Description:   
Device:        PIC32.32MX.32MX470F512L
Generated by:  Flowcode v9.0.0.23
Date:          Tuesday, March 02, 2021 19:58:43
Users:         1
Registered to: SpeedPic32 (24146314)
Licence key: YHFEJD
   NOT FOR COMMERCIAL USE
https://www.flowcode.co.uk
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic32\batch\PIC32compCDC.bat  "32MX470F512L" "C:\Users\uwe\Documents\Daten\Matrix\" "USB" "32MX"

Project USB 
Device 32MX470F512L
Objects USB_32MX470F512L


C:\Users\uwe\Documents\Daten\Matrix>xc32-gcc -mprocessor=32MX470F512L -DMX_USBFS -IC:\Users\uwe\Documents\Daten\Matrix\. -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 "USB_32MX470F512L\USB.o" "USB.c" -DMX_USBFS 
Der Befehl "xc32-gcc" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Error(s) in build

C:\Program Files (x86)\Flowcode\Common\Compilers\pic32\batch\PIC32compCDC.bat reported error code 0x1

Autoclose turned off


FINISHED
"Der Befehl "xc32-gcc" ist entweder falsch geschrieben oder
konnte nicht gefunden werden."
Means: 'The command "xc32-gcc" is either written wrong or could not be found.'

BenR
Matrix Staff
Posts: 1777
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 454 times
Been thanked: 614 times

Re: fatal error: CDC_Setup.h: No such file or directory

Post by BenR »

Hello,

It looks like this might be a short path name problem. We are currently looking at ways to try and head this off in the next update for v9.

However for now this FAQ topic may help to get you up and running.

https://www.matrixtsl.com/faq/index.php ... artlang=en

It's designed for the AVR compiler but should also work for the PIC32 compiler. Instead of uninstalling Flowcode uninstall or rename the Flowcode PIC32 compiler toolchain.

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

Re: fatal error: CDC_Setup.h: No such file or directory

Post by SpeedPIC32 »

Did not work. Tried the quick way, with the registry change. Even added the path to the compiler in the environment path variable. The console finds the compiler. Flowcode doesn't. :roll:

Seems like I have to change the IDE or at least try to reinstall everything.

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

Re: fatal error: CDC_Setup.h: No such file or directory

Post by SpeedPIC32 »

Hi benj

I found the mistake.
I had the wrong batch file on the computer.
now I can compile without errors.
I will continue to test it.

Can't you set up a rubric in the forum with this help?
e.g. PIC32 USB and so on and put down all the help without the whole communication.
I mean, you can find a solution faster.

many thanks

another idea
you cannot generally write a batch file or a small EXE for such things; who makes these changes.
My son had to help me on the PC.
You just want to write your program in Flocode and not first fix errors in Flowcode yourself. Why don't you start a survey?

thank you again for your help

Post Reply