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


You are viewing a reply to Project TARGET setting issues  

Project TARGET setting issues

Thank you cartu, I will give your suggestions a try and let you know how it works out.

The main reason I want to be able to change the target MCU on a per-build-configuration basis is that my project needs to be able to be built to run on several different hardware platforms, all which use different STM32 variants - some of these are M0-core devices, others are M4. (STM32F0xx vs. STM32F3xx). The compiler needs to know what core it needs to build to; this is set with gcc’s -mcpu= command line option. The only way to get the auto-generated compiler invocation to include the right -mcpu= setting is to specify the proper STM32 device in the TARGET setting tab. I suspect that the TARGET setting also affects other aspects of the build process and IDE operation, but it’s the -mcpu compiler option setting that I’m particularly interested in.

The sort of things that are specified by the BOARD xml are not that critical, as they can all be customized when setting up a debug configuration.

My suggestion for the future would be to remove the mandatory board-setting requirement from the TARGET specification, or provide a ‘generic’ or ‘default’ board config for all MCUs, or assume that if the BOARD setting is not specified, that a predefined “default” board config should be used.

 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs