I am using the NXP MCU Tools toolchain with Gnu Make Builder in the MCUXpresso IDE. I am able to use printf statements generally while debugging, but floating point specifiers (%f) do not print. I have enabled PRINTF_FLOAT_ENABLE=1 in the preprocessor (see below), but that makes no difference. I also have the Floating point mode set to "FPv4-SP (Hard ABI)." How can I get a floating point number to print using printf?
Solved! Go to Solution.
Remove the symbol "CR_INTEGER_PRINTF" from the preprocessor settings, then clean/rebuild.
For more information, see section 13.5.1,"Redlib printf variants" in the supplied MCUXpresso IDE v10.1. User Guide.
Regards,
MCUXpresso IDE Support
For me this helped:
Remove the symbol "CR_INTEGER_PRINTF" from the preprocessor settings, then clean/rebuild.
For more information, see section 13.5.1,"Redlib printf variants" in the supplied MCUXpresso IDE v10.1. User Guide.
Regards,
MCUXpresso IDE Support
I have the same problem, follow the case.