PSoC 4 - Emulated EEPROM (v.2.2)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

This is the first time I am using Emulated EEPROM in PSoC4 and it is not working. I have attached my test project. Please help me to find where I am making mistake.

0 Likes
1 Solution
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

As the first parameter of Em_EEPROM_Read and Em_EEPROM_Write APIs, please use the logical Em_EEPROM address instead of the physical address. The API internally converts it to the actual physical address and updates data. If you want to read and write to the first location please use, Em_EEPROM_Read(0, cnt, 1u);  and  Em_EEPROM_Write(0, cnt, 1u);.

View solution in original post

0 Likes
2 Replies
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

As the first parameter of Em_EEPROM_Read and Em_EEPROM_Write APIs, please use the logical Em_EEPROM address instead of the physical address. The API internally converts it to the actual physical address and updates data. If you want to read and write to the first location please use, Em_EEPROM_Read(0, cnt, 1u);  and  Em_EEPROM_Write(0, cnt, 1u);.

0 Likes
Anonymous
Not applicable

Thanks a lot. It is working.

0 Likes