I am programming SAMS70 in Atmel Studio 7.0. I got stuck on a problem with float types math operation.
Simple operation like this
float value = 0.0;
value = value + 1.0;
send me to the hard fault. Any math operation with float will do so.
I am using this math library: Toolchain->ARM/GNU Linker->Libraries->libarm_cortexM7lfsp_math_softfp
and this flags: Toolchain->ARM/GNU C Compiler->MIscellaneous->-mfloat-abi=softfp -mfpu=fpv5-sp-d16
I have no idea why this simple operation send me to the hard fault.
Have you also encountered this problem too?