Hi
Besides to set the compiler, it also need to enable FPU with below code:
; Enable the floating point coprocessor
#if defined (_VFPv4_)
MOVW r1,#60808 ; load CPACR
MOVT r1,#57344 ; (0xE000ED88)
LDR r0,[r1]
ORR.W r0,r0,#VFPEnable ; Enable FPU
STR r0, [r1] ; on CP10, CP11
MOV.W r0,#R2N_Enable
VMSR FPSCR, r0
#endif
Wish it helps.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------