Skip to main content
Senior
February 7, 2025
Solved

NUCLEO-G474RE - Failed to start GDB server

  • February 7, 2025
  • 2 replies
  • 1377 views

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.

 

 

Best answer by alw

Hello,

Problem solved, it was just JP6 that was missing.

2 replies

Technical Moderator
February 7, 2025

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
alwAuthorBest answer
Senior
February 8, 2025

Hello,

Problem solved, it was just JP6 that was missing.