Hi guys,
I’m working with a STM32G4 and my platformio.ini look like this
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:genericSTM32G431CB]
framework=stm32cube
platform = ststm32
board = genericSTM32G431CB
debug_tool = stlink
upload_protocol = stlink
board_build.stm32cube.custom_dsp_library = yes
build_flags =
-Llib/cmsisdsp
-lcmsisdsp
;https://community.platformio.org/t/error-object-uses-vfp-register-arguments-firmware-elf-does-not/25263/2
extra_scripts = pre:add_hardfloat.py
; TODO il faut creuser ici, le build debug desactive les optimisations
build_type = debug
I noticed that when I remove the build_type or set it to release, the upload works fine but the mcu crash.
I check the diffs between the flags according to the build_type and the differences look like that
So I tried to add -Og -g2 -ggdb2 flags to my platformio.ini build_flags but hat doesn’t change anything, the mcu crash.
The mcu works properly when build_type set to debug though
Thank you
