S32K146 cannot print float

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

S32K146 cannot print float

1,469件の閲覧回数
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,450件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

what is your STD C library? 

jiri_kral_0-1603717112543.png

 

BR, 

Jiri

0 件の賞賛

1,440件の閲覧回数
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,429件の閲覧回数
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,442件の閲覧回数
gravity_one
Contributor III

21.png

hello

tks,

gray

0 件の賞賛