debug_printf not printing floating point numbers

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

debug_printf not printing floating point numbers

1,127 次查看
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?  

标签 (1)
0 项奖励
2 回复数

567 次查看
FeibiaoZhou
Contributor II

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

0 项奖励

567 次查看
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 项奖励