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


Phantom Breakpoint

I have a stubborn breakpoint that I cannot delete. There is no breakpoint indicator in the line where it breaks. In the Breakpoints tab I have tried the “Remove All” pop up menu item. I have commented out the code where the breakpoint is. Compiled it, and ran it. There was no breakpoint. But when the code was reinstated so was this phantom breakpoint. I have deleted the .elf file, did a clean compile, cycled target board power, put a breakpoint on that line and removed that breakpoint, and still it breaks on that line.

How can I get rid of this breakpoint?

Tunisia

It could be a temporary bkpt possibly added by your launch config (debug configuration) > Startup TAB >

  1. Initialization Commands ?
  2. Run Commands ?
  3. Runtime Options > Set breakpoint at : ?

In Run => Debug Configurations => Ac6 STM32 Debugging (tree) => Startup (tab)
in the Runtime Options group the “Set breakpoint at:” checkbox was checked and the assoicated text field set to “main”.

The Run Command field is and was blank.

Unchecking that “Set breakpoint at:” checkbox did caused it to no longer break at start up. But it still breaks at the invisible breakpoint.

I made no changes in the “Initialization Commands” group. Both the “Halt” and “Reset and Delay” checkboxes are checked here. The “Reset and Delay” associated field is set to 3 seconds. In the large text field just below this is:

monitor reset halt

Hi spflanze,

During your debug session, when your phantom breakpoint is reached.
In the console tab select the “‹Ac6 STM32 Debugging› gdb” console and type “info break” in this console.

The gdb console will show you all your breakpoints (normally even your phantom breakpoint). You can then try to remove it with : “delete ‹breakpoint_number›”


 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs