failed to printf float value

hardware : nRF52840DK-52840

SDK : NCSV1.7.1

IDE:Visual Studio Code

I wanted  to  printf float value , so  I set    CONFIG_CBPRINTF_FB_SUPPORT=y    in my prj.conf file, my application code succeeded to printf  float value.

then I wanted ot use sqrt and acos in math.h , so I set   CONFIG_NEWLIB_LIBC=y  and I could use these math function.but the printf float value failed

for example , I  printf("test data %f",0.5) in my application , I only get         test data    without 0.5 in my log out

is there any configuration I need to set ,when I use newlib_libc and also want to printf float value ?

Parents Reply Children
Related