S32K146 cannot print float

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

S32K146 cannot print float

2,002 次查看
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

标记 (4)
0 项奖励
回复
4 回复数

1,983 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

what is your STD C library? 

jiri_kral_0-1603717112543.png

 

BR, 

Jiri

0 项奖励
回复

1,973 次查看
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 项奖励
回复

1,962 次查看
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 项奖励
回复

1,975 次查看
gravity_one
Contributor III

21.png

hello

tks,

gray

0 项奖励
回复