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 件の賞賛
返信