How to format a float to string | Cypress Semiconductor
How to format a float to string
i would like to format a floating number to a string for transfer and also display as CyU3PDebugPrint function doesn't support floating. I try to call sprintf to do so, but error occure while linking. The error message is as below.
C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\arm-none-eabi\lib\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text+0x18): undefined reference to `_sbrk'
collect2: ld returned 1 exit status
cs-make: *** [tttt.elf] Error 1
How could I solve this problem or is there another way to display a float?