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


How to run a program stand-alone without debugger? (was: Run configuration for a CubeMX imported program)

Hello,

I have imported a CubeMX project as described elsewhere in this forum and can debug it correctly. Now I am finished and would like to compile and run a configuration without the debug symbols. How do I create a correct run configuration which I can upload to my board and which starts automatically at power on?

Thanks for a hint.

--mclane

Some precisions:

I can perfectly debug and run my program with the debugger connected, , but it does not start automatically at power up when the debugger is disconnected. What do I have to change in the debug / upload configuration?

I have a CubeMX “Debug” program in my board and it will automatically start/run at power on. The debug symbols are not loaded into the board. If your program won’t start at power on, removing the symbols from the elf file is unlikely to fix the problem.

Any changes you make to add a new configuration will likely be lost if you regenerate the CubeMX project. If you just need to create a stripped elf, it may be easier to do it outside of Eclipse.


To ulistermclane
Could you change the title of the topic? Something like: “How to run debugged program in standalone mode?”
From my perspective the current title provides wrong desciption of the problem.

I have the same problem: after debugging the program won’t run after power on :-(


Tried to start from scratch by using toggling example provided by STM on Nucleo board. The same story - starts without any problem in debug mode, but not is standalone.

However, there is a difference. While the board connected to the computer, this simple example starts to work after pressing reset It does not happen on my board. If disconnect from a computer and connect it again, the program won’t start either I press Reset or not.

Whether need to make Release configuration or just change some options in Debug - don’t know. Unfortunately those examples do not provide Release configuration.



 

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