From ac43cfdfef8f3dc8d95cd31548b4786646f81c4c Mon Sep 17 00:00:00 2001 From: andrey Date: Tue, 7 Jun 2016 09:21:14 -0700 Subject: [PATCH] Do a JTAG reset prior to reading CPU information. This is needed when a CPU is in deep sleep mode, and its debug interface is switched off. --- src/usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/usb.c b/src/usb.c index 856185f3e..6ec93bd56 100644 --- a/src/usb.c +++ b/src/usb.c @@ -877,6 +877,7 @@ stlink_t *stlink_open_usb(enum ugly_loglevel verbose, bool reset, char serial[16 } if (reset) { + stlink_jtag_reset(sl, 2); stlink_reset(sl); usleep(10000); }