Emulated EEPROM Query

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

Emulated EEPROM Query

751 Views
vmore
Contributor I

The values in normal EEPROM on 1st reset after programming can be defined.

But what about Emulated EEPROM. I checked, it is random after programming the controller.

How can I initialize Emulated EEPROM to a defined state?

Labels (1)
0 Kudos
3 Replies

529 Views
kef
Specialist I

What MCU family are you talking about? S12XE? You need to partition DFLASH first. Until you do it, you have only DLFASH at 0x100000'G and random emulation RAM at 0x13F000'G. After you partition DFLASH, part or all of emulation RAM will stop being random, it (EEPROM partition) will be all 0xFF until you write your own values there. But to make emulated EEPROM writeable, on each reset you need to set up flash clock divider (FCLKDIV) properly and execute Enable EEPROM Emulation command (FCMD=0x13).

 

0 Kudos

529 Views
vmore
Contributor I

Thank you for the reply.

Yes I am talking about S12XE family.

Are you sure the buffer RAM for EEPROM access is initialised to 0xFF after partitioning the D-Flash?

Because I do not find it anywhere in the datasheet.

0 Kudos

529 Views
kef
Specialist I

Yes, I'm sure that emulated EEPROM (EEE RAM) is all 0xFF after partitioning. Though this is not mentioned directly, but (D)FLASH erased state is all 0xFF. It would make little sense to program all EEE to 0 after partitioning.

0 Kudos