Emulated EEPROM Query

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Emulated EEPROM Query

1,301 次查看
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?

标签 (1)
0 项奖励
回复
3 回复数

1,079 次查看
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 项奖励
回复

1,079 次查看
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 项奖励
回复

1,079 次查看
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 项奖励
回复