S32K146 cannot print float

cancel
Showing results for 
Search instead for 
Did you mean: 

S32K146 cannot print float

99 Views
Contributor II

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

80 Views
NXP Employee
NXP Employee

Hi, 

what is your STD C library? 

jiri_kral_0-1603717112543.png

 

BR, 

Jiri

0 Kudos

70 Views
Contributor II

hello,jiri

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

Can you explain why

tks,

gray

0 Kudos

59 Views
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

73 Views
Contributor II

21.png

hello

tks,

gray

0 Kudos