Determine the device parameters explicit after running

stlink_reset(). Otherwise a sleeping device (WFI) doesn't return the
parameters.
pull/36/head
Uwe Bonnes 2011-12-13 17:48:54 +01:00
rodzic 3e72f0b1b3
commit 5eda4566d6
3 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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 */
{

Wyświetl plik

@ -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;
}

Wyświetl plik

@ -702,7 +702,6 @@ stlink_t* stlink_open_usb(const int verbose) {
}
stlink_version(sl);
stlink_load_device_params(sl);
error = 0;