kopia lustrzana https://github.com/stlink-org/stlink
Determine the device parameters explicit after running
stlink_reset(). Otherwise a sleeping device (WFI) doesn't return the parameters.pull/36/head
rodzic
3e72f0b1b3
commit
5eda4566d6
|
|
@ -108,6 +108,7 @@ int main(int ac, char** av)
|
|||
stlink_enter_swd_mode(sl);
|
||||
|
||||
stlink_reset(sl);
|
||||
stlink_load_device_params(sl);
|
||||
|
||||
if (o.do_read == 0) /* write */
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1025,7 +1025,6 @@ stlink_t* stlink_v1_open(const int verbose) {
|
|||
}
|
||||
// by now, it _must_ be fully open and in a useful mode....
|
||||
stlink_enter_swd_mode(sl);
|
||||
stlink_load_device_params(sl);
|
||||
ILOG("Successfully opened a stlink v1 debugger\n");
|
||||
return sl;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -702,7 +702,6 @@ stlink_t* stlink_open_usb(const int verbose) {
|
|||
}
|
||||
|
||||
stlink_version(sl);
|
||||
stlink_load_device_params(sl);
|
||||
|
||||
error = 0;
|
||||
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue