cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-G474RE - Failed to start GDB server

alw
Associate III

Hello,

I can create a simple program in STM32CubeIDE V1.17.0 targeting the NUCLEO-G474RE board. I can build ok but am having problems with the GDB server starting. 

JP5 is set to 5V_USB_STLK and JP (BOOT0) is off. I can do the ST-Link Upgrade without problem, so the USB cable and powering is ok.

I select Run>Run As>STM32 C/C++ Application and get the following. 

 

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 : 61234

Status Refresh Delay : 15s

Verbose Mode : Disabled

SWD Debug : Enabled

 

ST-LINK Failed to get target status

 

Error in initializing ST-LINK device.

Reason: Unknown. Please check power and cabling to target.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
alw
Associate III

Hello,

Problem solved, it was just JP6 that was missing.

View solution in original post

2 REPLIES 2
Imen.D
ST Employee

Hello @alw ,

Have you tried the latest release of STM32CubeProgrammer?

Dd you change the default Option Bytes with Cubeprogrammer ?

Try connecting in "under reset" mode, then connect the debugger.

Check that the headers/jumpers on the Nucleo are fitted correctly.

Please follow the tips in this article : How to solve connection errors when connecting and... - STMicroelectronics Community

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
alw
Associate III

Hello,

Problem solved, it was just JP6 that was missing.