This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Printing float number with nrf_cli_fprintf function

I am using the nRF52840 dongle to gather data via peripherals and send it via a serial port similarly as the cli example, for that I'm using the nrf_cli_fprintf() function. For integer is working fine but errors appear when i try to print a float value, no value is printed there.

I am setting in the Makefile: 

LDFLAGS += -u _printf_float

LDFLAGS += --specs=nano.specs -lc -lnosys

Is there anything else needed? I know we can make some workaround to print the float value but I wanted to try this way first. 

Thank you in advance. 

Parents Reply Children
No Data
Related