Associate II
March 29, 2021
Question
CDC_Receive_FS() is undefinded in code generated by the cubemx plugin??
- March 29, 2021
- 1 reply
- 2837 views
I set up a very simple test project. It is a .ioc file from another project to which I wanted to add a virtual com port interface. I added the vcp in the cube plugin and generated the code. However, if I include a CDC_Receive_FS() function this gets flagged as undefined.
If I click on the function and open declearation the function declaration does pop up.
I tried to include the paths again manualy. No change.
Attached is the code I'm working with. There is only the FastNeopixel.ioc and the two lines in main:
uint8_t buf[2] = {0x01};
CDC_Receive_FS(buf, 2);Which have been added / changed.
Thank you in advance.
Andreas
Build Console Output:
22:43:12 **** Incremental Build of configuration Debug for project FastNeopixel ****
make -j16 all
arm-none-eabi-gcc -o "FastNeopixel.elf" @"objects.list" -mcpu=cortex-m3 -T"C:\Users\justRandom\STM32CubeIDE\workspace_1.3.0\FastNeopixel\STM32F103C8TX_FLASH.ld" --specs=nosys.specs -Wl,-Map="FastNeopixel.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
Core/Src/main.o: In function `main':
C:/Users/justRandom/STM32CubeIDE/workspace_1.3.0/FastNeopixel/Debug/../Core/Src/main.c:115: undefined reference to `CDC_Receive_FS'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:48: FastNeopixel.elf] Error 1
"make -j16 all" terminated with exit code 2. Build might be incomplete.
22:43:13 Build Failed. 2 errors, 0 warnings. (took 738ms)