From a5f43f4e1a3fca32cdce7097b4e5e87c09e46a43 Mon Sep 17 00:00:00 2001 From: Sage Myers <10702176+desertsagebrush@users.noreply.github.com> Date: Mon, 2 Oct 2023 16:19:16 -0600 Subject: [PATCH] lpc40xx: Fixed issue with not checking for FPU --- src/target/lpc40xx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/target/lpc40xx.c b/src/target/lpc40xx.c index 44fb391f767..82ffa9c4a99 100644 --- a/src/target/lpc40xx.c +++ b/src/target/lpc40xx.c @@ -22,6 +22,7 @@ #include "target.h" #include "target_internal.h" #include "cortex.h" +#include "cortexm.h" #include "lpc_common.h" #include "adiv5.h" @@ -82,7 +83,8 @@ static void lpc40xx_add_flash(target_s *target, uint32_t addr, size_t len, size_ bool lpc40xx_probe(target_s *target) { - if ((target->cpuid & CORTEX_CPUID_PARTNO_MASK) != CORTEX_M4) + if ((target->cpuid & CORTEX_CPUID_PARTNO_MASK) != CORTEX_M4 || + (target->target_options & CORTEXM_TOPT_FLAVOUR_V7MF) != 0) return false; /*