cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP257F-DK - Target is not responding, retrying. Debugger connects and disconnects.

picklesandpears
Associate

I just recently unboxed and connected up my STM32MP257F-DK and am trying to follow a simple blink LED project. (https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Step2_Blink_LED).

My boot pins are 0011 (in Development Mode) since I don't want to boot up in Linux, just work with the M33 Core. My LEDs when I connect up my board to my computer are: LD11 is solid green, LD5 is solid red, KD6 is solid green, and LD7 is solid red. 

I've been having issues with the debugger and flashing. My project builds fine with no warnings or errors but when I run with debugger I get this on my Console: 

STMicroelectronics ST-LINK GDB server. Version 7.10.0
Copyright (c) 2025, STMicroelectronics. All rights reserved.

Starting server with the following options:
        Persistent Mode            : Disabled
        Logging Level              : 1
        Listen Port Number         : 61234
        Status Refresh Delay       : 15s
        Verbose Mode               : Disabled
        SWD Debug                  : Enabled
        InitWhile                  : Enabled

Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Target is not responding, retrying...
Shutting down...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...
Target is not responding, retrying...

I also get this 'Problem Occurred' popup after running my debugger:

picklesandpears_1-1749789562101.png

I've configured my debugger to this (connect under reset) and made some progress where my Debugger started connecting but then disconnecting (see above logs) whereas before it was never connecting: 

picklesandpears_0-1749789438946.png

I don't have OpenOCD installed not sure if I should be using that as my debug probe instead.

When I go into my CubeProgrammer, and try to connect:

picklesandpears_2-1749789704748.png

And then go to Debug Authentication to 'Discover' I get:

picklesandpears_3-1749789761028.png

I've been trying to follow these steps: https://community.st.com/t5/stm32-mcus/how-to-solve-debugger-connection-issues/ta-p/49693 but, I'm pretty lost at this moment and would appreciate any help! I also haven't tried much in CubeMX since I'm not sure how to config the debug pins for the STM32MP257F-DK.

1 REPLY 1
HimanshuT
ST Employee

Hi @picklesandpears,

please find STM32MP257F-DK getting started at the following link
https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP2_boards/STM32MP257x-DK 

this includes all the necessary steps.

Standalone debug of M33 is not supported in the current software package and linux booting is must.