2018-10-21 06:15 AM
ex) When compiled with IAR 8.30.1, HardFault exception was occured.
float gfSetDataRate = 100.0f;
printf("Data Rate = %f \r\n", gfSetDataRate);
HardFault is occured at VCVT.F64.F32 instruction.
I also tested following case
What is wrong? IAR, my source, STM32F407 FPU?
Ggive me any other hints, please.
2018-10-22 03:22 AM
According to the ARM infocenter site (http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0553a/CHDJAEDB.html), F64 is not a valid datatype for the M4 VCVT instruction.
2018-10-22 03:25 AM
You found it yourself in the meantime...
I would guess the offending instruction is legal in ARM mode (not thumb 2), or supported with double precision FPUs.
2018-10-22 03:42 AM
AvaTar,
Thank you very much.