How NvM Works Internally

Micael Coutinho,autosarbswnvm

Learn what happens to your NvM variable from the moment you write it

NvM (Non-Volatile Memory) is a specific type of memory that gets "somehow" stored at a certain point in time, in such a way that after a soft or a hard reset, the values you wrote are magically... there! If you are like us and do not like black magic, today is the time when we find out what happens to your variable from the moment you write it until the moment your code reads it back, a few power cycles later.

So, we already have overviewed NvM, in our article NvM Overview (opens in a new tab). Feel free to take a look into it, as we will complement on the knowledge from there, although, it's not mandatory. Let's start from the bottom, just like a Drake song.

Just as a final thought, the states for a RAM block in the NvM are described below:

NvM RAM block state machine, in the Autosar Layered architecture { w: 795, h: 737 }

FIM interaction with other modules, in the Autosar Layered architecture

Alright, now that you understand the internals of the NvM module, we hope you can tame this beast and use it to your advantage!

Author: Micael Coutinho (opens in a new tab)

References:

© AutosarToday —@LinkedIn