From 644add19a683239ecb836657b2e69790d3eb9ee2 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Thu, 13 Apr 2017 08:42:16 +1200 Subject: [PATCH] lmi: Add comment explaining SRST inhibit --- src/target/lmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/target/lmi.c b/src/target/lmi.c index b3140bc..7f3aa0f 100644 --- a/src/target/lmi.c +++ b/src/target/lmi.c @@ -84,6 +84,9 @@ bool lmi_probe(target *t) t->driver = lmi_driver_str; target_add_ram(t, 0x20000000, 0x10000); lmi_add_flash(t, 0x80000); + /* On Tiva targets, asserting SRST results in the debug + * logic also being reset. We can't assert SRST and must + * only use the AIRCR SYSRESETREQ. */ t->target_options |= CORTEXM_TOPT_INHIBIT_SRST; return true; }