Skip to main content
Associate
June 17, 2023
Solved

Failed to read registers from target

  • June 17, 2023
  • 2 replies
  • 6239 views

When loading my code onto the STM32F407 board, I encounter the errors "Target is not responding, retrying..." and "Failed to read registers from target" in the Console window. I have investigated the issue but have been unable to find a suitable solution. You can find the console and debug configuration screenshots attached. Can you help me?

Morpheus_3-1687017088506.png    Morpheus_2-1687017084778.png

Morpheus_4-1687017092550.png

This topic has been closed for replies.
Best answer by Morpheus

It seems that there was an issue with the code I wrote, my friend. I had created a small library to toggle an LED on and off. I think I made a mistake while writing the library. When I replaced the code with a simple LED on/off operation, the board worked without any problems. However, I thank you very much for your feedback.

2 replies

Technical Moderator
June 18, 2023

Hello @Morpheus,

Try Connect Under Reset mode.

Could you please provide the debug log for more analysis? 

Thanks

Imen

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
MorpheusAuthorBest answer
Associate
June 19, 2023

It seems that there was an issue with the code I wrote, my friend. I had created a small library to toggle an LED on and off. I think I made a mistake while writing the library. When I replaced the code with a simple LED on/off operation, the board worked without any problems. However, I thank you very much for your feedback.

Technical Moderator
June 21, 2023

Really glad to know you overcame this problem :) 

Thank you for the update you provided and please allow me to close this thread.

Thanks 

Imen

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