cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

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

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

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
Anonymous
Not applicable

Thanks a lot. It is working.

0 Likes