cancel
Showing results for 
Search instead for 
Did you mean: 

Error while debugging.

NBhar.1
Associate II

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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
3 REPLIES 3
TDK
Guru

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".

Yes to both the questions.

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".