diff --git a/cpu/cortexm_common/cortexm_init.c b/cpu/cortexm_common/cortexm_init.c index 719ca0e1ee..68d6be68d9 100644 --- a/cpu/cortexm_common/cortexm_init.c +++ b/cpu/cortexm_common/cortexm_init.c @@ -70,8 +70,6 @@ CORTEXM_STATIC_INLINE void cortexm_init_misc(void) void cortexm_init(void) { - cortexm_init_fpu(); - /* configure the vector table location to internal flash */ #if defined(CPU_CORE_CORTEX_M3) || defined(CPU_CORE_CORTEX_M33) || \ defined(CPU_CORE_CORTEX_M4) || defined(CPU_CORE_CORTEX_M4F) || \ diff --git a/cpu/cortexm_common/vectors_cortexm.c b/cpu/cortexm_common/vectors_cortexm.c index c158c12242..989b0207bb 100644 --- a/cpu/cortexm_common/vectors_cortexm.c +++ b/cpu/cortexm_common/vectors_cortexm.c @@ -99,6 +99,8 @@ void reset_handler_default(void) uint32_t *dst; const uint32_t *src = &_etext; + cortexm_init_fpu(); + #ifdef MODULE_PUF_SRAM puf_sram_init((uint8_t *)&_srelocate, SEED_RAM_LEN); #endif