MSP432: Warn when hardware version not supported.

This commit is contained in:
Uwe Bonnes 2020-04-26 18:12:20 +02:00
parent 7956fbc361
commit 60f39f55b4
1 changed files with 3 additions and 1 deletions

View File

@ -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 */