Merge pull request #16414 from seeseemelk/bugfix/late-fpu

Fix Cortex-M hard faults when building with -O3 or -Ofast
This commit is contained in:
Kaspar Schleiser 2021-04-29 14:21:45 +02:00 committed by GitHub
commit 4db2a86677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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) || \

View File

@ -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