How to definition of a var in EEPROM?

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

How to definition of a var in EEPROM?

627 Views
xiaoli
Contributor I

In the PRM file, EEPROM_DATA is placed at address 0x800.

EEPROM = READY_ONLY 0x800 To ...

PLACEMENT

...

EEPROM_DATA INTO EEPROM

 

In th asm file,

EEPROM_DATA :SECTION

byte_800: DS $7A0

                 DS $5E               ; Here if DS $4E is ok

WORD_FFE: DS 2

 

In the map file,

if Change DS $5E to $4E, can see byte_800 is @addr 0x800, and WORD_FFE is @other address.

but if DS $5E, There is an error,  A1102. How can i definition of a var in EE byte_800 at addr 0x800, and WORD_FFE at addr 0xFFE?

 

Anyone help? Thank you very much.

Labels (1)
0 Kudos
2 Replies

545 Views
xiaoli
Contributor I

solve.

i have the wong define of the prm file:

EEPROM = READY_ONLY 0x800 To the last addr of my project.

so it is solve.

Thank you all the same.

0 Kudos

545 Views
trytohelp
NXP Employee
NXP Employee

What is the architecture used ?

Have a great day,
Pascal
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos