Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


GCC mcu compiler to use for STM32F4

Hello openstm32 community,

I’d like to develop and debug C code on mcu STM32F4.

I installed the Eclipse plugin as described in the openstm documentation in this web site.
When I build my project using an “AC6 STM32 MCU gcc” project C/C++,
The build button calls by default the command:

gcc -mthumb -mfloat-abi=soft -g3 -Wall -fmessage-length=0 -ffunction-sections -c -MMD -MP -MF”main/main.d” -MT”main/main.d” -o “main/main.o” “../main/main.c”

gcc output:
gcc: error: unrecognized command line option ‘-mthumb’
gcc: error: unrecognized command line option ‘-mfloat-abi=soft’

gcc is obviously not the compiler for cross compilation and I must have missed something about configuring/installing the compiler. Should I install a compiler by myself ?

Thanks for your help,
Sylvain

Hi Silvain,

Look like the STM32 board configuration in your project has not been applied (missing compiler prefix, core options, symbols...).

Did you select “Retore Default” in the project properties page ? It could explain why many build options has been erased.

I think the easiest way to resolve this problem is to create a new project. If the issue is persistant, contact us again, we will make further investigation (tell us board and the firmware you’ve chosen).

Regards.
Kevin.

Hi,

I restarted from the beginning and could have a proper configuration. My project compiles ok now.

thanks for your help,
regards,
Sylvain


 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs