Forum: System Workbench for STM32

Issue with FPU fault and __FPU_USED being defined as 0

Hi

When creating a new project based on HAL library. I found that system_stm32f4xx.c contains a function SystemInit() which configures the FPU using:

/* FPU settings --------------------*/
#if (FPU_PRESENT == 1) && (FPU_USED == 1)
SCB->CPACR |= ((3UL