Skip to main content
GGeno.1
Associate
Question

I have a problem with GDB debugger on stm32F401re, i can't connect to target because it is not found. How can i resolve?

..

This topic has been closed for replies.

9 replies

MM..1
Super User

Maybe your MCU is in low power mode or code used SWD pins. Enable under reset and low power debug.

GGeno.1
GGeno.1Author
Associate

Thank you for the answer... I have this configuration... there are already under reset and low power debug.

GGeno.1
GGeno.1Author
Associate

In the directory of mcu i have found the file FAIL.TXT with this message:

"The interface firmware FAILED to reset/halt the target MCU"

MM..1
Super User

Maybe you have STLink Clone without reset line or your stlink need upgrade firmware.

GGeno.1
GGeno.1Author
Associate

I have already done upgrade firmware, the problem is happened after a session of debug on the firmware with SYS debug disable in the configuration...could be this the cause?

MM..1
Super User
GGeno.1
GGeno.1Author
Associate

I have tried but the problem persist.

Markus GIRDLAND
ST Employee

Hello there,

If you go into your Debug Configuration and in the "Debugger" tab under the "Misc" category there's a checkbox called "Log to file:".

Could you enable that, launch a new debug session and then send that log to me?

MM..1
Super User

First check in ST Link utility or Proggrammer GUI if you can connect to your board.

If yes then maybe your launch file is from other PC, try delete it and create new launch.