debug_printf not printing floating point numbers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

debug_printf not printing floating point numbers

1,101 Views
peter_fenn
Contributor V

In bare-metal KDS3 + KSDK1.2 project using debug_printf, all the remedial steps described in previous posts were tried but none of these fixed the issue.
Finally got float numbers to print correctly by uncommenting the #define PRINTF_FLOAT_ENABLE   1 in the print_scan.h file under the SDK\platform\utilities\src folder!

- What is the correct method (ie.from KDS IDE settings) to get this to work?  

Labels (1)
0 Kudos
2 Replies

541 Views
FeibiaoZhou
Contributor II

True. Other methods do not work to me and only Peter's method does. KDS3.0+KSDK1.3, MQX light.

0 Kudos

541 Views
DavidS
NXP Employee
NXP Employee

Hi Peter,

Check this post that towards the bottom shows how to add in #define in the Properties of the project.

If you try it let us know if this is successful or not.

printf() with float values

Regards,

David

0 Kudos