PSoC4: Emulated EEPROM | Cypress Semiconductor
PSoC4: Emulated EEPROM
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.