STM32F334K8 Error Compiler

Any bugs you encounter with Flowcode should be discussed here.
Oscar_T
Posts: 89
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:06 am
Location: Italy
Has thanked: 37 times
Been thanked: 10 times

STM32F334K8 Error Compiler

Post by Oscar_T »

Hi

I am trying to compile a project on the mcu in question but the compiler reports the following error
...\Mainboard\Mainboard_009>arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Os -DSTM32 -DSTM32F3 -DSTM32F334x8 -DUSE_HAL_DRIVER -DHSE_VALUE=8000000 -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\\stm32cubeF3\Drivers\CMSIS\Include" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\\stm32cubeF3\Drivers\CMSIS\Device\ST\STM32F3xx\Include" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\\stm32cubeF3\Drivers\STM32F3xx_HAL_Driver\Inc" -I"C:\Program Files (x86)\Flowcode\Common\Compilers\starm\\stm32cubeF3\Drivers\STM32F3xx_HAL_Driver\Inc\Legacy" -I"C:\PROGRA~3\MATRIX~1\FLOWCO~3\FCD\ARM\batch\..\inc" -fmessage-length=0 -fdata-sections -ffunction-sections -w -c "Mainboard_009.c" -o "Mainboard_009_STM32F334x8_8000000\Mainboard_009.o"
In file included from c:\program files (x86)\flowcode\common\compilers\starm\stm32cubef3\drivers\cmsis\device\st\stm32f3xx\include\stm32f3xx.h:225:0,
from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:457,
from Mainboard_009.c:46:
c:\program files (x86)\flowcode\common\compilers\starm\stm32cubef3\drivers\stm32f3xx_hal_driver\inc\stm32f3xx_hal.h:46:32: fatal error: stm32f3xx_hal_conf.h: No such file or directory
compilation terminated.
Error(s) in build

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

Autoclose turned off

Kind Rergards

LeighM
Valued Contributor
Posts: 402
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 74 times
Been thanked: 220 times

Re: STM32F334K8 Error Compiler

Post by LeighM »

Thanks, I will look into it ...

Oscar_T
Posts: 89
Joined: Wed Dec 02, 2020 10:06 am
Location: Italy
Has thanked: 37 times
Been thanked: 10 times

Re: STM32F334K8 Error Compiler

Post by Oscar_T »

Hi Leigh

Many thanks

It is currently the only mcu available on the market with 32 pins supported by flowocode. All other solutions are due for delivery at the end of the year. :o :o :o This semiconductor situation is truly frustrating.

Really appreciated the support

Kind Regards

LeighM
Valued Contributor
Posts: 402
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 74 times
Been thanked: 220 times

Re: STM32F334K8 Error Compiler

Post by LeighM »

Could you rename the attached file to stm32comp.bat and drop into your PC here ...
(nb. this directory is normally hidden)
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ARM\batch
Attachments
stm32comp.bat.txt
(5.33 KiB) Downloaded 176 times

Oscar_T
Posts: 89
Joined: Wed Dec 02, 2020 10:06 am
Location: Italy
Has thanked: 37 times
Been thanked: 10 times

Re: STM32F334K8 Error Compiler

Post by Oscar_T »

Hi Leigh

It looks like it's working!

I will update you in the next few days as I debug all peripherals.

Thanks again for the support!

Kind regards

Alan_37
Posts: 141
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 43 times
Been thanked: 19 times

Re: STM32F334K8 Error Compiler

Post by Alan_37 »

Hi,

I am also having a similar problem after installing the core update.

Target folder: C:\Users\alanc\Desktop\X-Core V8.51\X-Core STM V9.4
Source name: C:\Users\alanc\Desktop\X-Core V8.51\X-Core STM V9.4\STM_MUX.fcfx
Title:
Description:
Device: ARM.F4.32F407ZG
Generated by: Flowcode v9.1.0.27
Date: Sunday, April 04, 2021 17:35:33
Users: 1
Registered to: Alan_37

NOT FOR COMMERCIAL USE
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ARM\batch\stm32comp.bat "STM_MUX" "C:\Users\alanc\Desktop\X-Core V8.51\X-Core STM V9.4\" "32F407xx" "F4" "stm32f_ccm64.ld" "16000000" "1024K" "128K" "C:\Program Files (x86)\Flowcode\Common\Compilers\starm\\"

C:\Users\alanc\Desktop\X-Core V8.51\X-Core STM V9.4>REM CRC: 1CECFE3DB3A1BD5169AEA98AD43ADE631EF0A88FFA736FBD84BE44176323F463C8515F4CD0D20BEBDFE06A9E70103FA105C640EF477B79E0C7881D2E5EEC9BD6A32B46A47AAB2D21848A68B9581D31BC91C05B2A7E3ADB3C4D00059D795899820E6BB7AE6771CE586954F191918D76F05058F85C62E78168DB2117B7F66DFFAB9D4CD39D9819A47B593E224EEC6BA2B1CF18B22880D87C51B667E8BA6E12E6B26FA06B6F4F108199331CCC4A9A2DADF899B5E4011DBDD5202C3050DA273BE4EE52BA4E2EEBD6468263A2A9E7E7860458A778383E9CF45D0F850400E5B608E745107C571680B732A8

C:\Users\alanc\Desktop\X-Core V8.51\X-Core STM V9.4>REM REVISION: 3.0

C:\Users\alanc\Desktop\X-Core V8.51\X-Core STM V9.4>REM GUID: E810EE73-4726-4718-B23E-B579C5ADBC40

C:\Users\alanc\Desktop\X-Core V8.51\X-Core STM V9.4>REM DATE: 09\03\2021

C:\Users\alanc\Desktop\X-Core V8.51\X-Core STM V9.4>REM DIR: FCD\ARM\batch\stm32comp.bat

Project STM_MUX
Device STM32F407xx


C:\Users\alanc\Desktop\X-Core V8.51\X-Core STM V9.4>arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Os -DSTM32 -DSTM32F4 -DSTM32F407xx -DUSE_HAL_DRIVER -DHSE_VALUE=16000000 -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:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ARM\batch\..\inc" -fmessage-length=0 -fdata-sections -ffunction-sections -w -c "STM_MUX.c" -o "STM_MUX_STM32F407xx_16000000\STM_MUX.o"
In file included from c:\program files (x86)\flowcode\common\compilers\starm\stm32cubef4\drivers\cmsis\device\st\stm32f4xx\include\stm32f4xx.h:250:0,
from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:459,
from STM_MUX.c:50:
c:\program files (x86)\flowcode\common\compilers\starm\stm32cubef4\drivers\stm32f4xx_hal_driver\inc\stm32f4xx_hal.h:30:32: fatal error: stm32f4xx_hal_conf.h: No such file or directory
compilation terminated.
Error(s) in build

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

Autoclose turned off


FINISHED

Alan_37
Posts: 141
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 43 times
Been thanked: 19 times

Re: STM32F334K8 Error Compiler

Post by Alan_37 »

Hi,

After Putting stm32comp.bat in the appropriate directory I am able to compile to HEX then it Strats programming but it stops I think after putting the board in programm mode ( after about 5min I press cancel ), I am using an original ST-Link V2 Programmer.

Attaching msg.txt

Update it programmes fine if I use ST-Link Utility GUI version
Attachments
STM_MUX.msg.txt
(11.63 KiB) Downloaded 163 times

Alan_37
Posts: 141
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 43 times
Been thanked: 19 times

Re: STM32F334K8 Error Compiler

Post by Alan_37 »

Hi,

OK here is another update if I erase the Chip with the GUI utility and then try to program it again with flowcode
it stops as it did before but when I reset the board, I see the board is programmed ok so I think the flowcode programmer is not
resetting the board after programming or something like that .

hope this helps to fix the bug

LeighM
Valued Contributor
Posts: 402
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 74 times
Been thanked: 220 times

Re: STM32F334K8 Error Compiler

Post by LeighM »

Thanks for the updates.
I will have a look when in office tomorrow

LeighM
Valued Contributor
Posts: 402
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 74 times
Been thanked: 220 times

Re: STM32F334K8 Error Compiler

Post by LeighM »

Could you please try the attached version and let me have the msg.txt file again
File to be renamed stm32prog.bat and dropped into C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\ARM\batch
Thanks!
Attachments
stm32prog.bat.txt
(1.04 KiB) Downloaded 168 times

Post Reply