[riot-users] printf float on stm32f4 with toolchain arm-none-eabi-gcc

Martin Stoilov martin at rpasearch.com
Thu Dec 18 08:41:06 CET 2014

I don't know about samr21, I don't use this processor. I would think the issue is with compilation/linking, because I can create a simple project using the Eclipse arm plugin where printf works with float just fine.


On 12/17/2014 11:00 PM, Rane wrote:
> The issue is with the samr21. But you can do math with floats though with bad performance because of no fpu available.  The debug or printf does not print anything.  You can cast only
> On Dec 18, 2014 6:44 AM, "Martin Stoilov" <martin at rpasearch.com <mailto:martin at rpasearch.com>> wrote:
>     Hello,
>     I have a problem to use printf with float arguments - it always outputs 0.00000 for the float arguments. Greping through the code I see this scenario is used in other platforms. If somebody could give me any pointers how to fix this or where to look, I will highly appreciate it.
>     Best Regards,
>     -Martin
>     _______________________________________________
>     users mailing list
>     users at riot-os.org <mailto:users at riot-os.org>
>     http://lists.riot-os.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users at riot-os.org
> http://lists.riot-os.org/mailman/listinfo/users

More information about the users mailing list