debug_printf not printing floating point numbers

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

debug_printf not printing floating point numbers

1,155件の閲覧回数
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 返答(返信)

595件の閲覧回数
FeibiaoZhou
Contributor II

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

0 件の賞賛

595件の閲覧回数
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 件の賞賛