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


Unable to single-step application code

I am using a Win10-64bit PC on which I have installed System Workbench V1.8 and I have NOT applied any updates to it via Help|Check for Updates. The project itself uses an STM32F411RET device and the project was generated using STM32CubeMX V4.18.

I have a debug and release build configuation. For the debug configuration I am using Optimization -Og and Debugging option -g3. The code builds OK. The board I am developing for is not yet available so I am using a Nucleo-F411RE for now.

The debug configuration has been set to use an ST-LINK V2-1 probe and SWD interface.

When I start a debug session the code is loaded to the target but the code executes without stopping at the breakpoint in main(). The code appears to function as expected (LED light flashing etc.).

I have attached the text written to the Console.

Any help would be appreciated.

Regards
FarmerJo

As an exercise I un-installed System Workbench and the ST-LINK drivers. I then re-installed it and re-imported the original CubeMX project. I then rebuilt it and created a build configuration. I was able to start the debugger and single-step the code as expected. However, when I exited System Workbench and restarted it again I was again no longer to single-step.

Any ideas?

I have also found that I can get single-stepping back when I goto Debug Confugurations then goto the Debugger settings select Use local script|Apply and then Manual Spec|Apply. Note that the local script does not even exit for this custom board design.

If I do not get this the Console window ends with the following every time.
...
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
adapter speed: 1800 kHz
shutdown command invoked

What is System Workbench do when I switch between the script types that allows the debugger to single-step?

Also do I get System Workbench to generate a local script for a custom board?

Regards
FarmerJo

This issue has finally been resolved. As pointed out by robertkendrick in a recent post it requires enabling in the SYS block of STM32CubeMX.

Regards
FarmerJo


 

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