[arm-gnu] Regarding Double Data Type Support on Cortex M4
Vikas R
vikasr at renuelectronics.com
Fri Jun 1 14:27:19 UTC 2012
Hello Sir/Madam,
I am using MK60FN1M0VLQ12 (COTREX-M4) processor for my development.
I am using float and double data types in my code. When I perform any
mathematical operation on these variables , the processor goes to Hard Fault
Exception.
Later I have enabled the Floating Point Unit (FPU) present in processor. So
now, I can perform any mathematical operations on float datatype but still
Hard Fault problem occurs with Double data type.
I am using GCC 4.5.2 Compiler for my code.
I have used following command to compile my main.c file. The option
-mfloat-abi=softfp helps me to support float datatype on MK60FN1M0VLQ12
(COTREX-M4) when I kept FPU enabled.
arm-none-eabi-gcc -Wall -mfloat-abi=softfp -mcpu=cortex-m4 -mthumb -Qn -Os
-mlong-calls -c main.c -o main.o
If you know any GCC compiler commands to solve the above problem, please
let me know.
Awaiting for your reply,
Thanks & Regards,
Akash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/arm-gnu/attachments/20120601/1bcdf5c6/attachment.html>
More information about the arm-gnu
mailing list