Difference between Hex and Hex Integer

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

Difference between Hex and Hex Integer

跳至解决方案
1,171 次查看
skseofh
Contributor II

Hi

I'm using S32 Design Studio for ARM.

In Debug mode, Memory Monitor can show memory value in many ways like Floating Point, Traditional...

skseofh_0-1602025644970.png

 

But I can't understand the difference between Hex and Hex Integer.

The value in two mode seems different.

 

Could you explain why those are different?

0 项奖励
回复
1 解答
1,158 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, the difference is in the shown endianness.

ARM is a little endian core. If you store varibale 'AABBCCDD', the data are stored in the memory as 'DDCCBBAA' if you present addresses from left to right and from up an down i.e. the same way as written text or how memory dump window in the design studio. It is HEX format.

HEX INTEGER shows it in reverse as 'AABBCCDD' that is presentation like originally stored data. It could be useful with the debug but you must take into account that presented byte ordering is actually incorrect.

 

在原帖中查看解决方案

1 回复
1,159 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, the difference is in the shown endianness.

ARM is a little endian core. If you store varibale 'AABBCCDD', the data are stored in the memory as 'DDCCBBAA' if you present addresses from left to right and from up an down i.e. the same way as written text or how memory dump window in the design studio. It is HEX format.

HEX INTEGER shows it in reverse as 'AABBCCDD' that is presentation like originally stored data. It could be useful with the debug but you must take into account that presented byte ordering is actually incorrect.