From a4ca0d30c3cfc1668943adbebdf947d95de99848 Mon Sep 17 00:00:00 2001 From: Steins7 Date: Sun, 4 Aug 2024 20:14:34 +0200 Subject: [PATCH] Force the use of system's reset in openocd Using the system's reset avoids the debug getting stuck when the chip enters low power. Hopefully this works all the time --- openocd.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openocd.cfg b/openocd.cfg index 5598416..06dd5e9 100644 --- a/openocd.cfg +++ b/openocd.cfg @@ -14,6 +14,9 @@ $CHIPNAME.cpu configure -event examine-end { mmw 0xE0042004 0x7E3FFF07 0 } + +reset_config srst_only srst_nogate connect_assert_srst + # inits debugging, from that point, commands can be used init # resets the target and halt it immediately afterward. Stops debug from being