2021-01-22 08:14 AM
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?
Solved! Go to Solution.
2021-02-03 06:47 AM
Hi,
Can you try with Openocd debugger and see if it is better ?
Rgds,
Laurent
2021-02-03 05:16 AM
Is this something, that maybe a ST employee could answer?
2021-02-03 06:47 AM
Hi,
Can you try with Openocd debugger and see if it is better ?
Rgds,
Laurent
2021-02-08 03:42 AM
//Sry, double post.
2021-02-08 03:42 AM
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?
2021-02-17 01:48 AM
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!
2021-02-17 04:32 AM
Great news, thanks for the heads up!