- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yeah,
I read in a few posts the lib is too big for a small memory.
I found some code that works.
Rob Berry
R&J control
When the power fails...
We won't!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Off the bat, have you added "#include<stdio.h>" at the top of your file? Check if that solves your issue.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yeah,
I read in a few posts the lib is too big for a small memory.
I found some code that works.
Rob Berry
R&J control
When the power fails...
We won't!