S32K148 IAR - print 64bit values

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

S32K148 IAR - print 64bit values

跳至解决方案
1,184 次查看
jakub_mielczare
Contributor III

Hello,

Does IAR compiler for S32K148 support printing 64bit integers (%lld, %llu, %llx) with snprintf() function?

I have a strange behavior in my application. When I add one global uint32_t variable, then snprintf() prints 64bit integers with %lld incorrectly (shifted). When I remove this additional variable or add one more global uint32_t then it prints the 64-bt int with %lld correctly.

32-bit integers are printed correctly in both cases.

Any idea what could be the cause?

标签 (1)
标记 (1)
0 项奖励
1 解答
1,163 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Jakub,

after short discussion with our S32DS expert, our recommendation is to forward this to IAR as we can't help here.

Regards,

Lukas

在原帖中查看解决方案

0 项奖励
1 回复
1,164 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Jakub,

after short discussion with our S32DS expert, our recommendation is to forward this to IAR as we can't help here.

Regards,

Lukas

0 项奖励