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


Some (beginners) problems with OpenSTM32

Ok, now I’m totaly confused!
My debugger “run by acceident”
I’ve forgotten to stop my manualy started openocd in an xterm.
That prevents openstm to start another openocd because the network-port is already occupied.
In this setup debugging works!

If eclipse starts the openocd, debugging don’t work, and I think, I’ve discored why:

The debug-script generated by OpenSTM looks like this:


  1. This is an test1 board with a single STM32F103C8Tx chip.
  2. Generated by System Workbench for STM32


source find interface/stlink-v2.cfg

set WORKAREASIZE 0x5000
transport select “hla_swd”


source find target/stm32f1x_stlink.cfg

  1. use hardware reset, connect under reset

reset_config srst_only srst_nogate



The problem in this setup are the 2 lines “transport select” and reset_config.
If I comment out this lines, and start openocd manualy with this script, everything works like expected, but as soon, as I try to debug from eclipse this file ist overwritten with it’s old content.
I than tried to use a custom debug-script (the above content with the 2 lines commented out), but eclipse seems to ignore this script.

Is there a template that i can change, or at which place do I find the srew to adjust this behavior?

Harry

 

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