cancel
Showing results for 
Search instead for 
Did you mean: 

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

GGeno.1
Associate II
 
9 REPLIES 9
MM..1
Chief II

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

GGeno.1
Associate II

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"

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

MM..1
Chief II

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

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
Chief II

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
Chief II

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.