Andes Workshop
https://forum.andestech.com/

float to String in Andes FreeRTOS
https://forum.andestech.com/viewtopic.php?f=12&t=1041
Page 1 of 1

Author:  jimmy [ Wed Dec 26, 2018 4:26 pm ]
Post subject:  float to String in Andes FreeRTOS

Using library of vsprintf/sprintf in FreeRTOS may cause problem because of malloc issue. malloc in library doesn't know FreeRTOS heap/stack. we add ftoa function ( in main_blinky.c file )without vsprintf/sprintf which can convert float to string in attached project. attached picture is running result.

Attachments:
ftoa_freeRTOS.zip [7.34 MiB]
Downloaded 4403 times
2018-12-26_141704.PNG
2018-12-26_141704.PNG [ 6.16 KiB | Viewed 69076 times ]

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/