From 59dc1b7eb4f3a0fda23d2c8624c3ecd26515fec8 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Mon, 19 Oct 2020 16:02:16 +0200 Subject: [PATCH] cortex-m7: Give hint about buggy core revision. --- src/target/cortexm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/target/cortexm.c b/src/target/cortexm.c index e523141..0965735 100644 --- a/src/target/cortexm.c +++ b/src/target/cortexm.c @@ -319,6 +319,10 @@ bool cortexm_probe(ADIv5_AP_t *ap) case 0xc27: t->core = "M7"; + if ((((cpuid >> 20) & 0xf) == 0) && (((cpuid >> 0) & 0xf) < 2)) { + DEBUG_WARN("Silicon bug: Single stepping will enter pending " + "exception handler with this M7 core revision!\n"); + } break; case 0xc60: