From da75acf015d6180c395f9848857227b5fed96572 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Mon, 10 Sep 2018 21:32:47 +0200 Subject: [PATCH] adiv5: Only force cortexm_probe() once. --- src/target/adiv5.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/target/adiv5.c b/src/target/adiv5.c index 31f90cc..6831bc0 100644 --- a/src/target/adiv5.c +++ b/src/target/adiv5.c @@ -469,11 +469,12 @@ void adiv5_dp_init(ADIv5_DP_t *dp) * AP should be unref'd if not valid. */ - /* The rest sould only be added after checking ROM table */ + /* The rest should only be added after checking ROM table */ probed |= adiv5_component_probe(ap, ap->base); if (!probed && (dp->idcode & 0xfff) == 0x477) { DEBUG("-> cortexm_probe forced\n"); cortexm_probe(ap); + probed = true; } } adiv5_dp_unref(dp);