Move reset/load_param in the open functions, as requested by Karl
[fw/stlink] / src / stlink-usb.c
index f0a469511d9772c8b7b6955f6b813bb3641b057e..04f0b2cbef665fc0eb102ec6987ab375ad67fcbd 100644 (file)
@@ -701,6 +701,8 @@ stlink_t* stlink_open_usb(const int verbose) {
       stlink_enter_swd_mode(sl);
     }
 
+    stlink_reset(sl);
+    stlink_load_device_params(sl);
     stlink_version(sl);
 
     error = 0;