Skip to main content
karthikainala
Associate II
September 1, 2014
Question

floating point values convesion issue in stm32 using IAR

  • September 1, 2014
  • 1 reply
  • 584 views
Posted on September 01, 2014 at 22:22

i am using sprintf and snprintf  functions to convert float to string in IAR using stm32l series,

but it converts successfully if we add it in example code given by IAR , but when i add the code in the project created by me it shows null value. what configurations do i need to add in IAR so that float conversions are done.
    This topic has been closed for replies.

    1 reply

    Andrew Neil
    Super User
    September 2, 2014
    Posted on September 02, 2014 at 08:52

    ''what configurations do i need to add in IAR so that float conversions are done''

    What does the IAR

    printf()

    documentation tell you?

    Take a look through the project settings for the IAR example; compare them to yours...
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.