AnsweredAssumed Answered

sprintf issue on STM32F4xx serie

Question asked by leren.kai on Jun 26, 2012
Latest reply on Jun 26, 2012 by Clive One
Hi,
I am converting from STM32F205 to STM32F405 and have an issue with printf.

I have updated the µC Library, use FPU, and updated OpenRTOS.
Are there some settings that I need to change to make printf to work with the following:
char buffer[100];
sprintf(buffer,"%.5f",0.12345);

I got a very large number and not 0.12345
Thanks
Kai

Outcomes