projects
/
fw
/
stlink
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix issue where "unknown chip id!" is seen every other time
[fw/stlink]
/
src
/
stlink-usb.c
diff --git
a/src/stlink-usb.c
b/src/stlink-usb.c
index 546f722ea45c89d079086be140567dd78543e622..0911ff7b939b05bf47a9340763c0b377c31a32e0 100644
(file)
--- a/
src/stlink-usb.c
+++ b/
src/stlink-usb.c
@@
-6,6
+6,7
@@
#include <sys/types.h>
#include <libusb.h>
#include <errno.h>
+#include <unistd.h>
#include "stlink-common.h"
#include "stlink-usb.h"
@@
-879,6
+880,7
@@
stlink_t* stlink_open_usb(const int verbose, int reset, char *p_usb_iserial) {
if (reset) {
stlink_reset(sl);
+ usleep(10000);
}
stlink_version(sl);
error = stlink_load_device_params(sl);