As a beginner I am just trying to understand the basic examples provided with the KDS 3.0.0 (with KL03 processor).
I was going through the "adc_lptmr_trigger" code. I just tried float value printing in this program but it is not printing, I followed the steps given by DavidS it was working good in hello_world example but not working here.
1. what should I do to get float value result?
2. Is there any way by which I can print float value in any code?
The support of float numbers in printf can be enabled by using linker options. For example, when you create a new Kinetis Project in KDS 3.0.0 (with KSDK 1.3.0 and Processor Expert) you can find the option in the Properties of the project, see the following screenshot:
Please note that when this options is enabled the target code (memory footprint) is significantly increased.
I also made a demo code on this related. see attached video, can this help you?
Have a great day, Jennie Zhang
----------------------------------------------------------------------------------------------------------------------- Note: If this post answers your question, please click the Correct Answer button. Thank you! -----------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------- Note: If this post answers your question, please click the Correct Answer button. Thank you! -----------------------------------------------------------------------------------------------------------------------