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

float to String in Andes FreeRTOS
http://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 3560 times
2018-12-26_141704.PNG
2018-12-26_141704.PNG [ 6.16 KiB | Viewed 59460 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/