Skip to main content
LAmat
Visitor II
May 26, 2019
Question

I'm new to arm,so forgive me for asking this question. I wrote a program to display text and integers and FLOATS on a LCD. I just can't display the floats.I tried sprintf and printf to no avail. Please help solve this issue.Thanks.

  • May 26, 2019
  • 3 replies
  • 691 views

..

    This topic has been closed for replies.

    3 replies

    Uwe Bonnes
    Chief
    May 26, 2019

    You hjave tp provided these functions or use a framework that provides these function.

    Tesla DeLorean
    Guru
    May 26, 2019

    Some of the GNU/GCC​ chains provide a function reduced library which doesn't support floats. Review project settings for a check box item referring to printf or floats.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    T J
    Senior III
    May 26, 2019

    there is a switch when you start a project,

    select:

    NewLib-Nano with floating point support in printf

    not NewLibNano with floating point support in Printf and Scanf0690X000008wPa6QAE.jpg