Hi,
Using the Micrium ucosII demo at RM48HDK , i find there maybe have some incorrect configuration on VFP. exception will happened at move data to FPU register.
Part of float compute In C example is : Ts = 33; fTs = (float)Ts / 10.0f;
The ASM Cod is :
MOVS R6,R5
SXTH R6,R6
VMOV S2,R6
VCVT.F32.S32 S2,S2
......
When running VMOV S2,R6 instruction , it occur exception. i don't know if there is something incorrect at init? How can I init it in correct ?
the part of FPU init ASM code is :
........
MRC P15, 0, R0, C1, C0, 2 ; Read Coprocessor Access Register Bit Functions.
MOV R3, #C1_ACCESS_FP_EN ; Enable Coprocessors cp10 & cp11
ORR R0, R0, R3
MCR P15, 0, R0, C1, C0, 2
;Set the EN bit of FPEXC[30] to enable Neon/VFP
MOV R0, #FPEXC_EN
VMSR FPEXC, R0
FMDRR D0, R1, R1
FMDRR D1, R1, R1
FMDRR D2, R1, R1
FMDRR D3, R1, R1
FMDRR D4, R1, R1
FMDRR D5, R1, R1
FMDRR D6, R1, R1
FMDRR D7, R1, R1
FMDRR D8, R1, R1
FMDRR D0, R1, R1
FMDRR D10, R1, R1
FMDRR D11, R1, R1
FMDRR D12, R1, R1
FMDRR D13, R1, R1
FMDRR D14, R1, R1
FMDRR D15, R1, R1
..........
Thanks
Jianwei

