[arm-gnu] Cortex-M3 and Floating Point Problems

Paul Brook paul at codesourcery.com
Thu Jun 21 20:41:52 UTC 2012


> > printf("Answer: %f\r\n", answer);
> > It printed out Answer: 0.000000.
> It appears you are correct, good catch! Now my next question would be why.

This usually means your startup code has left the stack incorrectly aligned 
(typically off by 4).  The stack pointer must be aligned to an 8 byte 
boundary.

Paul



More information about the arm-gnu mailing list