Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Workaround for nRST not being asserted via on the F4-Discovery's st-link/v2... #108

Merged
merged 1 commit into from

2 participants

@jkent

and possibly others. This allows nRST to be asserted from scripts, allowing touchless debugging by issuing "monitor jtag_reset" from gdb. There probably a way to do this automatically, and I may look into this in the future.

@texane texane merged commit b5ece81 into texane:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 0 deletions.
  1. +10 −0 gdbserver/gdb-server.c
View
10 gdbserver/gdb-server.c
@@ -785,6 +785,16 @@ int serve(stlink_t *sl, int port) {
#ifdef DEBUG
printf("Rcmd: halt\n");
#endif
+ } else if (!strncmp(params,"6a7461675f7265736574",20)) { //jtag_reset
+ reply = strdup("OK");
+
+ stlink_jtag_reset(sl, 1);
+ stlink_jtag_reset(sl, 0);
+ stlink_force_debug(sl);
+
+#ifdef DEBUG
+ printf("Rcmd: jtag_reset\n");
+#endif
} else if (!strncmp(params,"7265736574",10)) { //reset
reply = strdup("OK");
Something went wrong with that request. Please try again.