Skip to main content
Associate
December 9, 2024
Solved

STM32H563 Debug mode stopped working

Hello,

While debugging STM32H5 SPI2 (slave and master) in receive mode, the debug suddenly stopped and somehow I can't work in debug again.

This topic has been closed for replies.
redsireBest answer
Associate
December 12, 2024

Hello,

 

I tried another debugger (J-Link) and it worked, then I tried connecting with ST-Link V2 again and it worked too.

Thanks to everyone who tried to help.

6 replies

Andrew Neil
Super User
December 9, 2024

You're going to need to give a lot more detail for anyone to be able to help!

See the Posting Tips:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 


@redsire wrote:

the debug suddenly stopped 


What debugger (software & hardware) were you using?

What is your target hardware?

What, exactly, were you doing before it "stopped"?

What, exactly, happened?  Were there error messages? Was there smoke?

 


@redsire wrote:

somehow I can't work in debug again.


So what, exactly, does happen when you try to debug?

Can you debug any other target(s)? Can you load other firmware?

Have you reset and/or power-cycled the target before trying again?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Ozone
Principal
December 9, 2024

> You're going to need to give a lot more detail for anyone to be able to help!

Correct.
"Doesn't work anymore" contains nothing to really work with.


I would suspect a core lock-up, due to a faulty exception handler.

redsireAuthorBest answer
Associate
December 12, 2024

Hello,

 

I tried another debugger (J-Link) and it worked, then I tried connecting with ST-Link V2 again and it worked too.

Thanks to everyone who tried to help.

Ozone
Principal
December 13, 2024

Some (or most) SWD/JTAG debug pods have the capability to supply power to the debuggee.
Check this option is not enabled, unless you really want to use it.