PSoC4: Emulated EEPROM

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

cross mob
ShVy_264716
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

Hi All

   

I am currently working on Emulated EEPROM based project in which I am having a variable with data type "static const uint8 CYCODE" and I initialize it with value 0u. On certain event in my main code, I change the value of this variable and I want to retain this same value on power reset. But it is not happening at the moment. When I restart the device with power reset, I again end getting the value 0u. Is it mandatory to initialize this variable with some value? I think yes, because that only gives me output atleast once till power is ON though it is also a fact that after power reset I loose that value.

   

In short I need to have a variable in Emulated EEPROM that is independant of power cycles. Please provide a solution to this ASAP.

   

 

   

Regards

   

Shaunak

0 Likes
8 Replies