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


Blind Compiler - A Blindfolded Compiler Is Useless

France

Hi ben,

From the errors you mention, it looks like you manually created a Release configuration for a CubeMX generated project as, regretfully, CubeMX only generates a Debug configuration for the project.

Eclipse is able to keep all configurations up-to-date with the include file directory specifications, but only for existing configurations, not configurations that are created later on...

You thus have two alternatives:

  1. Only work in Debug mode; if the Debug mode works why change it?
    1. You will deliver code that is not properly tested (except if you fully test it again in Release mode);
    2. Moreover the delivered code will not be debuggable so quite hard to fix if an error is later on detected
    3. Rather than switching to a Release configuration (that optimize and do not provide debug information) you should consider just increasing the optimization level of the Debug configuration
      • Then the final code will still be debuggable (although sometime a bit strange debug behavior can be due to optimizations) so the delivered code will be simpler to fix in case of error.
  2. Create a Release configuration by importing the Debug configuration then adapt the optimize and debug options.


Hope these clarifications will help; hopefully, in a forthcoming release, we can expect CubeMX to generate the Release configuration; ST is aware of the problem and should fix it.

Bernard (Ac6)

 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  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. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs