STM32 compiler options

For general Flowcode discussion that does not belong in the other sections.
Post Reply
DStoyankov
Posts: 18
http://meble-kuchenne.info.pl
Joined: Sun Feb 26, 2023 12:44 pm
Has thanked: 5 times
Been thanked: 1 time

Flowcode v10 STM32 compiler options

Post by DStoyankov »

Hello,
Please share what are the correct parameters of the Compiler Options.
If possible for all processors - in particular now I need them for STM ARM.
Thanks!

DStoyankov
Posts: 18
Joined: Sun Feb 26, 2023 12:44 pm
Has thanked: 5 times
Been thanked: 1 time

Re: STM32 compiler options

Post by DStoyankov »

@REM These are the calling parameters ...
@REM "$(target)" "$(outdir)" "$(chipalt)" "$(family)" "$(lscript)" "$(romsize)" "$(ramsize)"

this is set up like this but "Unable to create C file \STM32F030_DBOX.h"

DStoyankov
Posts: 18
Joined: Sun Feb 26, 2023 12:44 pm
Has thanked: 5 times
Been thanked: 1 time

Re: STM32 compiler options

Post by DStoyankov »

Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM\batch\stm32comp.bat "ST32F030_DBOX" "" "32F030x8" "F0" "stm32f.ld" "8000000" "64K" "8K" "C:\Program Files (x86)\Flowcode\Common\Compilers\starm\\"
CurDir set from PathName

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM\batch>REM CRC: 1CECFE3DB3A1BD5169AEA98AD43ADE631EF0A88FFA736FBD84BE44176323F463C8515F4CD0D20BEBDFE06A9E70103FA105C640EF477B79E0C7881D2E5EEC9BD69A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF532505B4DECBAEAC96954F191918D76F05058F85C62E78168DB2117B7F66DFFAB9D4CD39D9819A47B593E224EEC6BA2B1CF18B22880D87C51B667E8BA6E12E6B26FA06B6F4F108199331CCC4A9A2DADF899B5E4011DBDD5202C3050DA273BE4EEBA213254BC0AD6E15FDF8E24F7A49525E37122B659B22A01CA71203F3D907500295E1D946A835C79

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM\batch>REM REVISION: 1.0

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM\batch>REM GUID: E810EE73-4726-4718-B23E-B579C5ADBC40

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM\batch>REM DATE: 08\08\2022

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM\batch>REM DIR: FCD\ARM\batch\stm32comp.bat

Project ST32F030_DBOX
Device STM32F030x8


C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\ARM\batch>arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -mfloat-abi=soft -D__SOFTFP__ -Os -DSTM32 -DSTM32F0 -DSTM32F030x8 -DUSE_HAL_DRIVER -DHSE_VALUE=8000000 -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\\stm32cubeF0\Drivers\CMSIS\Include" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\\stm32cubeF0\Drivers\CMSIS\Device\ST\STM32F0xx\Include" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\\stm32cubeF0\Drivers\STM32F0xx_HAL_Driver\Inc" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\\stm32cubeF0\Drivers\STM32F0xx_HAL_Driver\Inc\Legacy" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\\inc" -fmessage-length=0 -fdata-sections -ffunction-sections -w -c "ST32F030_DBOX.c" -o "ST32F030_DBOX_STM32F030x8_8000000\ST32F030_DBOX.o"
arm-none-eabi-gcc: error: ST32F030_DBOX.c: No such file or directory
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.
Error(s) in build

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

Autoclose turned off


FINISHED


If running FLOWCODE as administrator - this is result

LeighM
Valued Contributor
Posts: 458
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 82 times
Been thanked: 246 times

Re: STM32 compiler options

Post by LeighM »

Where is your project (STM32F030_DBOX) stored?
i.e. full path
Is it on a network drive?
What STM32F030_DBOX named files exist on the location after you have created the Flowcode project and compiled it?
Have you got a space character in the project name?

DStoyankov
Posts: 18
Joined: Sun Feb 26, 2023 12:44 pm
Has thanked: 5 times
Been thanked: 1 time

Re: STM32 compiler options

Post by DStoyankov »

For some reason, the paths to the project were messed up - it was as if nothing was set and they were being created in drive C:

LeighM
Valued Contributor
Posts: 458
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 82 times
Been thanked: 246 times

Re: STM32 compiler options

Post by LeighM »

Yes, it looks like your project is on the root of the drive.
Can you copy your project to a subdirectory and reload into Flowcode from there?

Post Reply