Skip to main content
Visitor II
June 9, 2009
Question

problem with SPRINTF()

  • June 9, 2009
  • 4 replies
  • 1063 views
Posted on June 09, 2009 at 23:19

problem with SPRINTF()

    This topic has been closed for replies.

    4 replies

    amorenoAuthor
    Visitor II
    February 9, 2009
    Posted on February 09, 2009 at 12:51

    Sirs, I need you help.

    For long time I’m having randomize problems with my STR711 and IAR EWARM 4.41. They are related to SPRINTF().

    Usually it worsk fine but when I modify some part of code, then another part code containing a SPRINTF() fails.

    Does anybody had or have problems with this function?

    Any advice?

    I'm thinking to do my own source code for this function :(

    Really desperate issue.

    Thanks

    ALFA.

    [ This message was edited by: amoreno on 09-02-2009 18:03 ]

    Visitor II
    February 10, 2009
    Posted on February 10, 2009 at 09:07

    This could be caused by stack overflow.

    Visitor II
    April 9, 2009
    Posted on April 09, 2009 at 12:18

    Hi, did you solve the sprintf problem ? I am having same problem with ARM9, an I don't think is a stack overflow problem

    Regards,

    paolo

    June 9, 2009
    Posted on June 09, 2009 at 23:19

    Did you solve the problem with sprintf ?

    I'm having an odd result using the %f to convert a float value. But it works fine with decimal values:

    sprintf(buffer,''Number: %d'',anInteger); <--- Works fine.

    sprintf(buffer,''Decimal: %f'',aFloat); <--- a 0.0 is returned

    Mark