2 Replies Latest reply on Jul 12, 2019 8:52 AM by RoBe_1502026

    ModusToolbox 1.1 sscanf

    RoBe_1502026

      Hi,

      I am trying to convert an entry from the usart (2 char buffer ) which represents a number into the uint8 value.

      I have tried atoi() - i knows its not the recommended option just a habbit to try first.

      then I tried sscanf() but with each, I get an error 'undefined reference to 'sscanf' and 'atoi' (tried separately )

      I even enabled the   newlib-nano to see if that works. because I am not using floats, I did not enable that option.

      Does anyone have a suggestion? I have looked on the forums and not much helped. Most messages recommend using sscanf()

       

      Thanks!

      Rob