Compiler error, STM32F4 and USB Serial Component

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
celebriums
Posts: 42
http://meble-kuchenne.info.pl
Joined: Fri Dec 18, 2020 7:33 am
Has thanked: 23 times
Been thanked: 7 times

Flowcode v10 Compiler error, STM32F4 and USB Serial Component

Post by celebriums »

Wishing everyone a great day,
A warm hello to the beloved Flowcode family from Istanbul! 😊

When I add the USB Serial component to my STM32F411 project and try to compile, I get the following error:

It seems that the compiler cannot find the usb.h file.
How can I fix this issue? I’d appreciate any help. Thanks in advance!

Sadık Süme


Code: Select all

Target folder: C:\ElektronikProjeler\IOT\DORUK\SoftwareSTM32F411CE
Source name:   C:\ElektronikProjeler\IOT\DORUK\SoftwareSTM32F411CE\STM32F411CE.fcfx
Title:         DORUK
Description:   
Device:        ARM.F4.32F411CE
Generated by:  Flowcode v10.1.2.40
Date:          Tuesday, March 18, 2025 09:16:34
Users:         1
Registered to: mehmet64 (99154532)
Licence key: 9P152P
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM\batch\stm32comp.bat  "STM32F411CE" "C:\ElektronikProjeler\IOT\DORUK\SoftwareSTM32F411CE\" "32F411xE" "F4" "stm32f.ld" "8000000" "512K" "128K" "C:\Program Files (x86)\Flowcode\Common\Compilers\starm\"

C:\ElektronikProjeler\IOT\DORUK\SoftwareSTM32F411CE>REM CRC: 1CECFE3DB3A1BD5169AEA98AD43ADE631EF0A88FFA736FBD84BE44176323F463C8515F4CD0D20BEBDFE06A9E70103FA105C640EF477B79E0C7881D2E5EEC9BD69A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF532505B4DECBAEAC96954F191918D76F05058F85C62E78168DB2117B7F66DFFAB9D4CD39D9819A47B593E224EEC6BA2B1CF18B22880D87C51B667E8BA6E12E6B26FA06B6F4F108199331CCC4A9A2DADF899B5E4011DBDD5202C3050DA273BE4EEBA213254BC0AD6E15FDF8E24F7A49525E37122B659B22A01CA71203F3D907500295E1D946A835C79 

C:\ElektronikProjeler\IOT\DORUK\SoftwareSTM32F411CE>REM REVISION: 1.0 

C:\ElektronikProjeler\IOT\DORUK\SoftwareSTM32F411CE>REM GUID: E810EE73-4726-4718-B23E-B579C5ADBC40 

C:\ElektronikProjeler\IOT\DORUK\SoftwareSTM32F411CE>REM DATE: 08\08\2022 

C:\ElektronikProjeler\IOT\DORUK\SoftwareSTM32F411CE>REM DIR: FCD\ARM\batch\stm32comp.bat 

Project STM32F411CE 
Device STM32F411xE


C:\ElektronikProjeler\IOT\DORUK\SoftwareSTM32F411CE>arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Os -DSTM32 -DSTM32F4 -DSTM32F411xE -DUSE_HAL_DRIVER -DHSE_VALUE=8000000 -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\stm32cubeF4\Drivers\CMSIS\Include" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\stm32cubeF4\Drivers\CMSIS\Device\ST\STM32F4xx\Include" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\stm32cubeF4\Drivers\STM32F4xx_HAL_Driver\Inc" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\stm32cubeF4\Drivers\STM32F4xx_HAL_Driver\Inc\Legacy" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\inc" -fmessage-length=0 -fdata-sections -ffunction-sections -w -c "STM32F411CE.c" -o "STM32F411CE_STM32F411xE_8000000\STM32F411CE.o" 
In file included from STM32F411CE.c:20:0:
C:\ElektronikProjeler\IOT\DORUK\SoftwareSTM32F411CE\STM32F411CE.h:442:69: fatal error: C:/ProgramData/MatrixTSL/FlowcodeV10/CAL/STARM/USB/usb.h: No such file or directory
compilation terminated.
Error(s) in build

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM\batch\stm32comp.bat reported error code 0x1

Autoclose turned off


FINISHED
Attachments
STM32F411CE.fcfx
(9.94 KiB) Downloaded 11 times
Last edited by celebriums on Fri Mar 21, 2025 6:51 am, edited 1 time in total.

BenR
Matrix Staff
Posts: 1924
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 501 times
Been thanked: 684 times

Re: Compiler error, STM32F4 and USB Serial Component

Post by BenR »

Hello,

I'm afraid the USB components aren't currently available on the STM32 range of devices. I can explore adding support for these if that would be useful.

celebriums
Posts: 42
Joined: Fri Dec 18, 2020 7:33 am
Has thanked: 23 times
Been thanked: 7 times

Re: Compiler error, STM32F4 and USB Serial Component

Post by celebriums »

Yes, I need some support on this. If you can help me, I'd appreciate it.

Post Reply