Closed Jihao-Hu closed 6 months ago
I only know the very basics of NVM and your question sounds quite complex. Perhaps @kallemooo who implemented most of the NVM features might know more. However, my best recommendation is that you direct your question to your AUTOSAR platform vendor directly.
To do this you need to manually handle the read of the NVM data for the specific NVM block. Fot the NVM block set "RESTORE-AT-START" parameter to false, and use NvM_Read() to fetch data the data from the storage when needed.
But as @cogu writes the recommendation is that you direct your question to your AUTOSAR platform vendor directly.
Issue out of scope for this project.
Now to implement such a function when writing data to the NVM after shutdown, a wake-up source is detected, and the controller will wake up again at this time the ECU will be reseted again. and the data in NVM is incomplete. At this time, the RAM will reload the previous data in NVM after reset, but at this time we do not want to use Nvm_ReadAll () to read the previously stored data from NVM, but want to keep the last unsaved data in RAM