Modify shutdown seqeunce. Now a F107 in sleep mode reacts on the reset pin after...
[fw/stlink] / src / stlink-common.c
index 8bc2a8bf02b0a84d0f409f7bf52487a8aa7af2c2..74c5bcc7c4fa65e5e403b25f03f338321d7164d6 100644 (file)
@@ -359,6 +359,7 @@ void stlink_close(stlink_t *sl) {
 
 void stlink_exit_debug_mode(stlink_t *sl) {
     DLOG("*** stlink_exit_debug_mode ***\n");
+    stlink_write_debug32(sl, DHCSR, DBGKEY);
     sl->backend->exit_debug_mode(sl);
 }