From 60f39f55b48ced7af35c15abcf6861e2b3e5ba31 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Sun, 26 Apr 2020 18:12:20 +0200 Subject: [PATCH] MSP432: Warn when hardware version not supported. --- src/target/msp432.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/target/msp432.c b/src/target/msp432.c index 79cf2412..4c29fd21 100644 --- a/src/target/msp432.c +++ b/src/target/msp432.c @@ -184,8 +184,10 @@ bool msp432_probe(target *t) return false; /* Check for the right HW revision: at least C, as no flash support for B */ - if (target_mem_read32(t, HWREV_ADDR) < HWREV_MIN_VALUE) + if (target_mem_read32(t, HWREV_ADDR) < HWREV_MIN_VALUE) { + DEBUG("MSP432 Version not handled\n"); return false; + } /* If we got till this point, we are most probably looking at a real TLV */ /* Device Information structure. Now check for the correct device */