cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot debug STM32MP157D-DK1 engineering mode "Info : Halt timed out, wake up GDB."

MB11
Associate II

I am trying to debug a simple application on the CM4 processor on a STM32MP157D-DK1 development board in engineering mode using Cube IDE Version: 1.18.1

 

The board is booted from the micro SD card and appears to be powered up and alive with various flashing LEDs.  When I try to debug my simple application I get the following error.  I have tried many different debug and connection options on the debug configuration but I cannot seem to get past this point.  How can I fix this?

Open On-Chip Debugger 0.12.0+dev-00608-gd8ed48fef (2025-02-06-11:17) [https://github.com/STMicroelectronics/OpenOCD]

Licensed under GNU GPL v2

For bug reports, read

http://openocd.org/doc/doxygen/bugs.html

srst_only srst_pulls_trst srst_gates_jtag srst_open_drain connect_deassert_srst

Info : Listening on port 6666 for tcl connections

Info : Listening on port 4444 for telnet connections

Info : connected to stlink-server

Info : stlink-server API v3, version 2.1.1

Info : STLINK V2J46M31 (API v2) VID:PID 0483:3752

Info : Target voltage: 3.257030

Info : clock speed 4000 kHz

Info : stlink_dap_op_connect(connect)

Info : SWD DPIDR 0x6ba02477

Info : stlink_dap_op_connect(connect)

Info : SWD DPIDR 0x6ba02477

Info : [STM32MP157DACx.ap1] Examination succeed

Info : [STM32MP157DACx.cm4] Cortex-M4 r0p1 processor detected

Info : [STM32MP157DACx.cm4] target has 6 breakpoints, 4 watchpoints

Info : [STM32MP157DACx.ap2] Examination succeed

Info : [STM32MP157DACx.axi] Examination succeed

Info : STM32MP157DACx.cpu0: hardware has 6 breakpoints, 4 watchpoints

Info : [STM32MP157DACx.cpu0] Examination succeed

Info : STM32MP157DACx.cpu1: hardware has 6 breakpoints, 4 watchpoints

Info : [STM32MP157DACx.cpu1] Examination succeed

Info : gdb port disabled

Info : gdb port disabled

Info : gdb port disabled

Info : starting gdb server for STM32MP157DACx.cpu0 on 3334

Info : Listening on port 3334 for gdb connections

Info : starting gdb server for STM32MP157DACx.cm4 on 3333

Info : Listening on port 3333 for gdb connections

Info : [STM32MP157DACx.cm4] external reset detected

Info : accepting 'gdb' connection on tcp/3333

Info : Halt timed out, wake up GDB.

Error: timed out while waiting for target halted

Error executing event gdb-attach on target STM32MP157DACx.cm4:

 

Info : New GDB Connection: 1, Target STM32MP157DACx.cm4, state: reset

Warn : GDB connection 1 on target STM32MP157DACx.cm4 not halted

Error: GDB missing ack(2) - assumed good

Error: GDB missing ack(2) - assumed good

Error: Error on socket 'GDB': WSAGetLastError==10054, message: An existing connection was forcibly closed by the remote host.

 

.

shutdown command invoked

Info : dropped 'gdb' connection

2 REPLIES 2
Awall1302
Associate

I'm getting the same issue. Anyone find out what the problem is?

PatrickF
ST Employee

@MB11 wrote:

I am trying to debug a simple application on the CM4 processor on a STM32MP157D-DK1 development board in engineering mode using Cube IDE Version: 1.18.1

 

The board is booted from the micro SD card and appears to be powered up and alive with various flashing LEDs. 

......


Hi, @MB11 

your message contains contradictory information, either you boot from SD-Card or you are in engineering mode.

Please look at https://wiki.st.com/stm32mpu/wiki/STM32CubeIDE#Arm-C2-AE_Cortex-C2-AE-M_debug_on_STM32_MPU_device

Regards.

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Tip of the day: Try Sidekick STM32 AI agent, see here