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?
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).
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.
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.
Retrieving data ...