cogu / autosar

A set of python modules for working with AUTOSAR XML files
MIT License
380 stars 165 forks source link

AUTOSAR NVM configuration #68

Closed Jihao-Hu closed 6 months ago

Jihao-Hu commented 4 years ago

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

cogu commented 4 years 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.

kallemooo commented 4 years ago

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.

cogu commented 6 months ago

Issue out of scope for this project.