I have a system based on Altera's MAX10 device that is doing the following tasks:
- receives the data and stores it on an on-chip flash memory only once.
- reads all the data from on-chip flash, stores it into a 2D register and relays it to another system at a certain frequency.
The first part (i.e. reads all the data from on-chip flash, stores it into a 2D register) of the 2nd task is performed only once, but if the system resets it again needs to read from the flash. Now how can I check if the system has been reset, and after reset whether it earlier saved any data in the memory or not. Further I don't want to perform a flash read operation to check whether the system has been reset or not and whether the data has been saved in the memory or not, because of its time cost. Would appreciate any ideas.