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

Printf() Floats in nrf52832

Hello,

I've gone through the other posts regarding printf() with floats (devzone.nordicsemi.com/.../) and I still can't seem to get float to print. Currently, printf() of floats prints a blank. I've declared in system_nrf52.c "#define __FPU_USED 1". However, it doesn't seem as though the FPU nor printf() of "%f" works. My makefile already contains:

"-mfloat-abi=hard -mfpu=fpv4-sp-d16"

and

"LDFLAGS += -u _printf_float"

yet still no results. What else am I missing? I'm using Eclipse Neon (v3) with gcc.

Please advise....

Related