EEPROM, address

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

EEPROM, address

1,092 次查看
100asong
Contributor I

Hi, Dear,

      

        For EEPROM, how to put long variables address in aligned position?

        For example:

        Variable X 's address is 0x803(logical address), I hope that X's address is 0x804.

        How to complete it ?

 

BR.

标签 (1)
0 项奖励
回复
2 回复数

979 次查看
kef
Specialist I

In PRM file you can tell linker how you want data to be aligned. For example

 

      EEPROM        = NO_INIT       0x0C00 TO   0x0FEF ALIGN 4;

makes all data aligned to 4 byte boundary. To align just long's:

 

      EEPROM        = NO_INIT       0x0C00 TO   0x0FEF ALIGN 1 [4:4];

Look for ALIGN in Built Tolls Utilities help

0 项奖励
回复

979 次查看
100asong
Contributor I

Okay,thanks for your help.

0 项奖励
回复