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


Target halted due to debug reuqest

I am working on STM32F407T connected via STLink. I have programmed the board and I user terraterminal to communicate with the board. It works. Now when I start debugging using eclipse workbench, I get the following errors
Open On-Chip Debugger 0.10.0-dev-00007-g58350bc-dirty (2018-01-12-12:21)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter_nsrst_delay: 100
adapter speed: 1800 kHz
Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v29 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : vid/pid are not identical: 0x0483/0x374B 0x0483/0x3748
Info : using stlink api v2
Info : Target voltage: 3.166623
Info : Stlink adapter speed set to 1800 kHz
Info : STM32F401VETx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting ‘gdb’ connection on tcp/3333
Info : Stlink adapter speed set to 1800 kHz
adapter speed: 1800 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080031d8 msp: 0x20018000
configuring PLL
Info : Stlink adapter speed set to 4000 kHz
adapter speed: 4000 kHz
Info : device id = 0x10016433
Info : flash size = 512kbytes
Info : Stlink adapter speed set to 1800 kHz
adapter speed: 1800 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x210e0000 pc: 0x0800f40e msp: 0x20017fe0
Info : Stlink adapter speed set to 1800 kHz
adapter speed: 1800 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080031d8 msp: 0x20018000
configuring PLL
Info : Stlink adapter speed set to 4000 kHz
adapter speed: 4000 kHz
Info : Padding image section 0 with 44 bytes
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x20000046 msp: 0x20018000
Info : Stlink adapter speed set to 1800 kHz
adapter speed: 1800 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080031d8 msp: 0x20018000
Info : The target is not running when halt was requested, stopping GDB.
Info : The target is not running when halt was requested, stopping GDB.
Info : The target is not running when halt was requested, stopping GDB.
Info : The target is not running when halt was requested, stopping GDB.
Info : The target is not running when halt was requested, stopping GDB.

Any insights will be highly helpful. TIA.

Your hardware may not be up to SWD at 2 - 4 MHz speeds.
I’ve not seen the adapter speed jump all over the place like that before...
In project | properties | debug, try a lower connection speed.

Alternatively in the debug perspective, you may have a session in progress whilst the target is not ready.
Try stopping and restarting debug with the target attached..


 

Newest Forum Posts

  1. Provides its users with guidance and responses by ClaudiaAlgof, 2026-03-31 21:55
  2. I2S DMA Audio stuttering/repeating snippets on STM32G071RB by fillnether, 2026-03-17 19:06
  3. Unable to build project by septimusbob, 2026-02-08 20:27
  4. New installations is now uploaded ! by karushifa, 2025-12-25 00:53
  5. Analog servomotors with nucleo f334r8 by SkelePaw, 2025-11-01 05:57
  6. STM32 MCU model shortlisting for Making RC remote by Palvish, 2025-07-07 15:05
  7. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  8. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  9. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  10. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33

Last-Modified Blogs