cancel
Showing results for 
Search instead for 
Did you mean: 

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

A.D.
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
LaurentL
ST Employee

Hi,

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

Rgds,

Laurent

View solution in original post

6 REPLIES 6
A.D.
Associate III

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

LaurentL
ST Employee

Hi,

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

Rgds,

Laurent

A.D.
Associate III

//Sry, double post.

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?

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.
Associate III

Great news, thanks for the heads up!