Hi ,
We are working on KL03 processor (with KDS 3.0.0). We learnt how to make processor expert code and just trying to make simple hello_world printing code. Its working fine but float value is not printing so we change the properties of code as per screenshot, then it is showing some errors,
Our project code is as per the attachment.
Please guide how to print float value in PE code.
Original Attachment has been moved to: print.zip
Solved! Go to Solution.
David's demo is great. just for supplement, with PE+KSDK, to print floating number, make sure to have floating enabled in preprocessor.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks to DavidS and ZhangJennie
Now its working,:smileyhappy:
DavidS plz, can you suggest any solution?
David's demo is great. just for supplement, with PE+KSDK, to print floating number, make sure to have floating enabled in preprocessor.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi
I ever made video of how to how to use printf to print floating value in KDS3.0
see attached.
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!
-----------------------------------------------------------------------------------------------------------------------
Zhang,
we tried your method but still It's giving the error.
Hello syed,
To use printf()
with floating point, the option "-u _printf_float" needs to be added to the linker options,
about the detail information please refer to here :
printf() and scanf() with GNU ARM Libraries | MCU on Eclipse
Hope it helps
Alice
Hi Alice,
thanks for your reply.
I added "-u _printf_float" in properties of our project, but it's not working as you can see in my project code.