Topic : sprintf float not working

Forum : ARM

Original Post
Post Information Post
May 26, 2015 - 5:40pm
Guest account

Hello,i updated the compiler software and my compiler had that known STREXB etc.. problem.i fixed that and now compiles.Now i cannot print floats.It returns an empty space.basically the string is 0.

how do i fix this known problem.

regards
Antonio Colella

Replies
Post Information Post
+1
0
-1
May 26, 2015 - 5:41pm
Guest account

Check your project config. In the linker section under Optimization there is now a parameter named Newlib-nano that has an option for Yes, without float printf. It is the default too, so that may be the problem. I had the same deal.

+1
0
-1
May 26, 2015 - 5:56pm
Etienne Cassin

Hello all,

As Gary said, the default optimization is without float printf. you can easily change it by selecting "yes".
Please have a look of the "getting started ARM" page 20 you can find at C:\Raisonance\Ride\Doc\ARM.
To understand further you can also read some interesting things about the new GCC at C:\Raisonance\Ride\Doc\ARM\GCC.

I hope it helps.
Best regards,