X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstlink-common.c;h=74c5bcc7c4fa65e5e403b25f03f338321d7164d6;hb=9ef6d28cb5751c0cf589136181569f585059a8bc;hp=8bc2a8bf02b0a84d0f409f7bf52487a8aa7af2c2;hpb=5eda4566d617fedd2a9d3020ddae06b394d08a5f;p=fw%2Fstlink diff --git a/src/stlink-common.c b/src/stlink-common.c index 8bc2a8b..74c5bcc 100644 --- a/src/stlink-common.c +++ b/src/stlink-common.c @@ -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); }