Hi Rasika,
Ok.
If you're using Processor Expert (PEx) I think you want to use the IntEEPROM (Internal EEPROM) bean.
If it's not the case let me know.
Some Information associated to the bean:
+++++++++++++++
Version specific information for HCS12X derivatives that supports Emulated EEPROM feature
D-Flash and buffer RAM Memory
Before Emulated EEPROM can be used, D-Flash and Buffer RAM area must be partitioned. Partitions are defined by Emulated EEPROM properties (see help of the properties). Partitioning will not take effect unless Partition method is called or Partition D-flash in init property is set (Partitions can be created only in special mode).
The range of addressess selected in Address range properties is checked when writting to corresponding area. The other memory range is set to maximum available memory, i.e. when Address range targets to D-Flash (D-Flash begins at global address 0x100000) then selected range is checked on all writes to D-Flash, but maximum available buffer RAM range is checked on all writes to buffer RAM (end of Buffer RAM is at global address 0x13FFFF). And vice versa, when Address range targets to Buffer RAM then selected range is checked on all writes to Buffer RAM, but maximum available D-Flash range is checked on all writes to D-Flash. Size of buffer ram for Emulated EEPROM area is defined only by the property "Buffer RAM sector count for Emulated EEPROM (ERPART)".
EraseEeprom method doesn't implement mass erase. Sector erase is used instead. The method erases all available sectors for D-Flash user partition.
The memory type the component is writing to (D-Flash or Emulated EEPROM - buffer RAM) is determined by an Address passed as the parameter of SetXX/GetXX methods. If the address targets to the buffer RAM, simple write to a RAM memory is performed and completed on exit of the write method, i.e. waiting settings selected by SetWait method or Wait enabled in init. property is not used (ignored) and Busy method returns always FALSE. When a write to Buffer RAM (Emulated EEPROM) occurs, interrupts are not used and OnWriteEnd and OnWritePageEnd events are not invoked.
+++++++++++++++
I don't have specific example on my hand.
I need to work on it.
Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------