From 5bc743d22119e52019dca8a3e01a5efe699b85ea Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Thu, 15 Oct 2020 00:29:02 +0200 Subject: [PATCH] samd: Propagate security after setting security by chip reset. --- src/target/samd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/target/samd.c b/src/target/samd.c index 8345e0b..525a43b 100644 --- a/src/target/samd.c +++ b/src/target/samd.c @@ -847,8 +847,9 @@ static bool samd_cmd_ssb(target *t, int argc, const char **argv) if (target_check_error(t)) return -1; - tc_printf(t, "Set the security bit! " - "You will need to issue 'monitor erase_mass' to clear this.\n"); + tc_printf(t, "Security bit set! " + "Scan again, attach and issue 'monitor erase_mass' to reset.\n"); + target_reset(t); return true; }