cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Link v2. GDB Error

nazmul87
Associate

Hello All, 

I am using stm32f405rgt6 with ST-Link v2.

I built the minimum circuit searching from internet. 

When i am trying to upload the code, it gives me following.

Can any body help me on this.

 

 

STMicroelectronics ST-LINK GDB server. Version 7.9.0

Copyright (c) 2024, STMicroelectronics. All rights reserved.

 

Starting server with the following options:

Persistent Mode : Disabled

Logging Level : 1

Listen Port Number : 61235

Status Refresh Delay : 15s

Verbose Mode : Disabled

SWD Debug : Enabled

InitWhile : Enabled

 

Target no device found

 

Error in initializing ST-LINK device.

Reason: No device found on target.

 

 

and below-

Error in final launch sequence:

 

Failed to execute MI command:

target remote localhost:61238

 

Error message from debugger back end:

localhost:61238: Connection timed out.

Failed to execute MI command:

target remote localhost:61238

 

Error message from debugger back end:

localhost:61238: Connection timed out.

localhost:61238: Connection timed out.

 

Also if any body can suggest some good blog or tutorial for stm32f405rgt6 with custom board would be well appreciated.

1 REPLY 1
KDJEM.1
ST Employee

Hello @nazmul87 and welcome to the community;

 

Do you still have this problem to solve?

Have you checked the USB cable or tried another USB port? Have you tried STM32CubeProgrammer?

I recommend you to look at this FAQ which may help you to solve the issue.

I think Getting started with STM32F4xxxx MCU hardware development application note can help you to develop your own board. This application note is intended for system designers who require an overview of the hardware implementation of the development board, with focus on features like
• Power supply
• Package selection
• Clock management
• Reset control
• Boot mode settings
• Debug management

 

I hope this help you.

Thank you.

Kaouthar

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.