Difference between Hex and Hex Integer

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

Difference between Hex and Hex Integer

ソリューションへジャンプ
957件の閲覧回数
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 解決策
944件の閲覧回数
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 返信
945件の閲覧回数
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.