2018-06-25 05:13 AM
I wanted to use FPU in STM32F7, How to enable FPU.
Also how to check if it gets enabled?
Majerle.Tilen.001
#stm32f7-nucleo #fpu2018-06-25 05:52 AM
Usually it is a check-box item in the IDE, in Keil you select in the target options.
Compilers typically take it as a command line option or define.
There are defines you can look for, and you can check the co-processor register in the SCB
/* FPU settings ------------------------------------------------------------*/
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1) SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */ #endif2018-06-25 09:50 AM
Thank you Clive,
It helped, also do you have any idea for the same on System workbench.
2018-06-25 12:27 PM
Do these tools not have a manual?
Go look under the project or compiler settings,
MCU Settings->Floating Point Hardware