Skip to main content
Graduate
December 9, 2024
Solved

STM32H563 Debug mode stopped working

  • December 9, 2024
  • 2 replies
  • 1186 views

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.
    Best answer by redsire

    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.

    2 replies

    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?

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

    redsireAuthorAnswer
    Graduate
    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.

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