Skip to content

Commit

Permalink
Do a JTAG reset prior to reading CPU information. This is needed
Browse files Browse the repository at this point in the history
when a CPU is in deep sleep mode, and its debug interface is switched
off.
  • Loading branch information
andrey committed Jun 7, 2016
1 parent ab1a149 commit ac43cfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ac43cfd

Please sign in to comment.