EEPROM, address

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

EEPROM, address

1,120件の閲覧回数
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 返答(返信)

1,007件の閲覧回数
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 件の賞賛
返信

1,007件の閲覧回数
100asong
Contributor I

Okay,thanks for your help.

0 件の賞賛
返信