Hello,
We have a 2-year old custom board that was developed with Kinetis K22FX512 MCU.
I'm doing code re-engineering and maintenance of its firmware inside Kinetis Design Studio IDE for 1.5 years to add new features as requested for the product's enhancements and upgrades.
All these years, all the numeric data are integers.
Now, I am required to change of the16-bit integer data to floating point, e.g. instead of 999 seconds, I'm converting to 99.9 minutes. This way, timer can go above 16+ minutes in 16-bit as well as for limit 3-character display that can only show 3 digit positions.
Before altering anything about this data, I had to first try defining, declaring and printing a floating point variable.
I searched previous posts on this forum about "PRINTF_FLOAT_ENABLE" and such. I found about 3 threads from 2015 about the matter and tried them all out, changing "settings" in project's property in compiler and linker sections. However, none of them works. I get the same result as those posts reported, whereby only "f" is printed in place of the %f in the printf() function. I even #included <float.h> standard C library but still the same problem. Only character "f" prints on the debug console.
Does anyone else know how to fix this problem for this MCU in KDS?
Thanks for your help.
MI