ARM GCC 4.6 : sprintf and float
Asked by
Prakash K Balasubramanian
I have this in an ISR.
char pBuff[10];
sprintf(pBuff, "%5.1f", 12.5);
When the Stack pointer is aligned to a 8 Byte boundary just before invocation of the sprintf function,pBuff is filled quite correctly.
No joy when the SP is aligned to 4 Byte boundary.
The SP on our Cortex-M4 device is programmed to 0x20000800 when control to main() is given.
Has anybody dealt with this before?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Prakash K Balasubramanian
- Solved:
- Last query:
- Last reply:
To post a message you must log in.