S32K146 cannot print float

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

S32K146 cannot print float

1,463 Views
gravity_one
Contributor III

14.png

hello,

Use S32DS own “ hello world ”example, add “sprintf (bufxx,%d--%f,987,3.14f)” ,but bufxx Only int data, no float data。

BRS,

gray

0 Kudos
4 Replies

1,444 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

what is your STD C library? 

jiri_kral_0-1603717112543.png

 

BR, 

Jiri

0 Kudos

1,434 Views
gravity_one
Contributor III

hello,jiri

It is right to compile according to the selection on your picture!

Can you explain why

tks,

gray

0 Kudos

1,423 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

NewLib nano is more compact and there are missing some features - like float point printing. You can find more details for example here: https://imagecraft.com/blog/2019/04/embedded-gcc-libraries-newlib-vs-nanolib/ .  

 

BR, 

Jiri 

0 Kudos

1,436 Views
gravity_one
Contributor III

21.png

hello

tks,

gray

0 Kudos