cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE debug with ST-Link V2

MSand.1
Associate II

Dear All,

let me ask for your kind support.

I am able to debug a customized board equipped with STM32WLE micro by using the STM32CubeIDE program (Version: 1.3.0.20) with the connection to a ST-LINK V2 device.

On a second PC I installed the STM32CubeIDE program version1.15.1, I am able to build a running program on the same customized board. I did also the Debug Configurations

(the same parameters of the version 1.3.0.20) but I am not able to debug.

 

After the compilation I get this final message on the console


STMicroelectronics ST-LINK GDB server. Version 7.7.0
Copyright (c) 2024, 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

Target no device found

Error in initializing ST-LINK device.
Reason: No device found on target.


Some seconds later a box appears with this further message


Error in final launch sequence:

Failed to execute MI command:
target remote localhost:61234

Error message from debugger back end:
localhost:61234: Connection timed out.
Failed to execute MI command:
target remote localhost:61234

Error message from debugger back end:
localhost:61234: Connection timed out.
localhost:61234: Connection timed out.

Could you kondly give me a piece of advice?

Best Regards,

Mario Sandri

1 ACCEPTED SOLUTION

Accepted Solutions

Hi Ascha.3,

thank you for your quick reply and suggestion.

 

Now my board debug works with interface SWD, Frequency (kHz): Auto, Connect under reset.

 

I connected only to my STM CPU, I do not have other CPU boards.

Best Regards,

Mario

View solution in original post

3 REPLIES 3
AScha.3
Chief III

Hi,

how you set the -connect- ?

Try: 

AScha3_0-1721321125373.png

+

Can you connect to any other STM cpu ? (on other matching project, of course )

If you feel a post has answered your question, please click "Accept as Solution".

Hi Ascha.3,

thank you for your quick reply and suggestion.

 

Now my board debug works with interface SWD, Frequency (kHz): Auto, Connect under reset.

 

I connected only to my STM CPU, I do not have other CPU boards.

Best Regards,

Mario

charan_3215
Associate

Hi all,

This is my first project i have been working on,i installed stm32cube ide for first time.

 board:STM32H563ZIT6

I am have some  error while debugging.I want to debug the software.I don't have hardware.How do i debug it.

when iam trying to do,it is showing me error like this:

 

Error in final launch sequence:

 

Failed to execute MI command:

target remote 127.0.0.1:8500

 

Error message from debugger back end:

127.0.0.1:8500: Connection timed out.

Failed to execute MI command:

target remote 127.0.0.1:8500

 

Error message from debugger back end:

127.0.0.1:8500: Connection timed out.

127.0.0.1:8500: Connection timed out.


 

 

My debugger settings are like this:


Please give me solution for this error