projects
/
fw
/
stlink
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved the device parameter loading at the end of initialization for V1 devices- fixed...
[fw/stlink]
/
src
/
stlink-sg.c
diff --git
a/src/stlink-sg.c
b/src/stlink-sg.c
index 197d59b290e096377dd360bc708d6f4b31c1553f..3d4a9b79882a9d3959732253b8d4dede9a82da27 100644
(file)
--- a/
src/stlink-sg.c
+++ b/
src/stlink-sg.c
@@
-1014,6
+1014,7
@@
stlink_t* stlink_v1_open_inner(const int verbose) {
"WTF? successfully opened, but unable to read version details. BROKEN!\n");
return NULL;
}
"WTF? successfully opened, but unable to read version details. BROKEN!\n");
return NULL;
}
+
return sl;
}
return sl;
}
@@
-1025,6
+1026,8
@@
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);
}
// by now, it _must_ be fully open and in a useful mode....
stlink_enter_swd_mode(sl);
+ /* Now we are ready to read the parameters */
+ stlink_reset(sl);
stlink_load_device_params(sl);
ILOG("Successfully opened a stlink v1 debugger\n");
return sl;
stlink_load_device_params(sl);
ILOG("Successfully opened a stlink v1 debugger\n");
return sl;