Skip to main content
Graduate
January 22, 2021
Solved

Change "Reset the chip and restart debug session" from Software-Reset to Pin-Reset

  • January 22, 2021
  • 3 replies
  • 2797 views

The "Reset the chip and restart debug session" button in debug mode of the CubeIDE is very useful, but it seems to inject a software restart command.

Is it possible to change that so that a button click toggels low the Reset pin of the ST-Link to trigger a pin reset?

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

    Hi,

    Can you try with Openocd debugger and see if it is better ?

    Rgds,

    Laurent

    3 replies

    A.D.Author
    Graduate
    February 3, 2021

    Is this something, that maybe a ST employee could answer?

    LaurentLAnswer
    ST Employee
    February 3, 2021

    Hi,

    Can you try with Openocd debugger and see if it is better ?

    Rgds,

    Laurent

    A.D.Author
    Graduate
    February 8, 2021

    Oh nice, that actually did the trick. Very cool, that it helpful.

    Is this some general behaviour? Can I write to my mental notes "GDB restarts with software reset" and "OpenOCD restarts with pin reset"?

    Or is this depend on some parameters the CubeIDE is parsing to the debugger? Or is it specific to the ST-Link?

    ST Employee
    February 17, 2021

    You are correct. The ST-LINK GDB Server performs a system reset by writing to the AIRCR register while OpenOCD toggles the reset pin. Future versions of CubeIDE will add this support for the ST-LINK GDB server as well!

    A.D.Author
    Graduate
    February 8, 2021

    //Sry, double post.