- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using CY8C4124LQI-443 Psoc 4100 family in my project. I need to use emulated eeprom. There is an example in psoc. But I have problem when I use. I want to read the data written on eeprom after restart the system.
I use this command CY_GET_REG8(adress); or Data = (*((uint8 *) (adres)));. Data read is 0.
What is the problem of this? Can anyone explain the detail of this? (I think after I close the system, Data written is deleted by the microcontroller.?)
Thanks for helping.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Malik, this is emulated eeprom which is flash memory. Smallest amount to write is a Row which will be erased automatically before writing.
Reading from emulated eeprom is done easiest by assigning the address to a pointer of the underlying type.
I normally use a structure which contains additionally some housekeepign data as number of writes to eeprom and a "Magic Number" which indicates that the structure has been written at least once.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Before Write Data into EEPROM ..Just Erase the EEPROM then write the data.,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Malik, this is emulated eeprom which is flash memory. Smallest amount to write is a Row which will be erased automatically before writing.
Reading from emulated eeprom is done easiest by assigning the address to a pointer of the underlying type.
I normally use a structure which contains additionally some housekeepign data as number of writes to eeprom and a "Magic Number" which indicates that the structure has been written at least once.
Bob