Skip to content

Commit

Permalink
Merge pull request #430 from andyg24/stop_mode_fix
Browse files Browse the repository at this point in the history
Do a JTAG reset prior to reading CPU information, fixes #428 and #451.
  • Loading branch information
xor-gate committed Aug 7, 2016
2 parents ee2681e + ac43cfd commit 8fadfa9
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 @@ -880,6 +880,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 8fadfa9

Please sign in to comment.