Skip to main content
GGeno.1
Associate
June 18, 2022
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?

  • June 18, 2022
  • 6 replies
  • 3553 views

..

This topic has been closed for replies.

6 replies

MM..1
Chief III
June 19, 2022

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
June 19, 2022

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

GGeno.1
GGeno.1Author
Associate
June 19, 2022

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
Chief III
June 19, 2022

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

GGeno.1
GGeno.1Author
Associate
June 19, 2022

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 III
June 19, 2022
GGeno.1
GGeno.1Author
Associate
June 19, 2022

I have tried but the problem persist.

Markus GIRDLAND
ST Employee
June 22, 2022

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 III
June 22, 2022

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.