Skip to main content
NBhar.1
Associate II
August 30, 2021
Question

Error while debugging.

  • August 30, 2021
  • 1 reply
  • 2497 views

Hey guys I am facing this issue badly and I am not able to figure out the issue.

Please let me know what could be the problem. I have shared the error below

Error in final launch sequence:

Failed to execute MI command:

target remote localhost:61234

Error message from debugger back end:

Could not read registers; remote failure reply 'E31'

Failed to execute MI command:

target remote localhost:61234

Error mes

Thank you.

This topic has been closed for replies.

1 reply

TDK
Super User
August 30, 2021

Does your code reconfigure SWD pins on GPIOA? Do you enter low power modes?

"If you feel a post has answered your question, please click ""Accept as Solution""."
NBhar.1
NBhar.1Author
Associate II
August 30, 2021

Yes to both the questions.

TDK
Super User
August 30, 2021
You can't debug if the SWD pins are reassigned elsewhere.
Debugging in low-power mode is possible but generally not enabled by default. Look in the appropriate reference manual for how to enable it, generally within DBGMCU.
"If you feel a post has answered your question, please click ""Accept as Solution""."