EEPROM, address

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

EEPROM, address

502 Views
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.

Labels (1)
0 Kudos
2 Replies

389 Views
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 Kudos

389 Views
100asong
Contributor I

Okay,thanks for your help.

0 Kudos