Skip to content

Commit

Permalink
lpc40xx: Fixed issue with not checking for FPU
Browse files Browse the repository at this point in the history
  • Loading branch information
desertsagebrush authored and dragonmux committed Oct 2, 2023
1 parent f2c0433 commit a5f43f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/target/lpc40xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "target.h"
#include "target_internal.h"
#include "cortex.h"
#include "cortexm.h"
#include "lpc_common.h"
#include "adiv5.h"

Expand Down Expand Up @@ -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;

/*
Expand Down

0 comments on commit a5f43f4

Please sign in to comment.