You are here

Emulated Eeprom | Cypress Semiconductor

Emulated Eeprom

Summary: 2 Replies, Latest post by Bob Marlowe on 21 Oct 2016 03:43 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
sezeraslan93_1812381's picture
User
1 post

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. 

Malik Bathusha's picture
User
2 posts

Hi,

Before Write Data into EEPROM ..Just Erase the EEPROM then write the data.,

user_1377889's picture
User
9583 posts

@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

Log in to post new comments.