当前位置:网站首页>[AUTOSAR XIII NVM]
[AUTOSAR XIII NVM]
2022-07-03 00:50:00 【Ke Yuqian】
AutoSAR 13、 ... and NVM
1. NvM(Nonvolatile Memory Manager)

NvM Can manage Flash、EEPROM These memories , Have achieved unified management of different hardware :
- Queue management mechanism
- Power on / off storage processing
- Support data verification
- Write protection of data
- Redundant storage of data
1.1 Queue management mechanism
When there is data you want to save Memory When , because Flash and EEPROM You need to erase before writing , Faster than RAM A lot slower , So there will be data queuing .
• The queuing mechanism can be manually configured as FIFO Or queue with priority
• You can configure the depth of the queue
• Support immediate data (immediate data, That is, the data required to be written immediately , such as crash data) Fast write , That is, there is no need to queue
1.2 Power on / off storage processing
• When the power is on , To read NV The necessary data in
• When the power is off , Write the necessary data NV Inside
1.3 Support data verification
Mainly used CRC Check whether the data is wrong
• When the verification is wrong , Trigger use default data ( It can be used directly or CallBack)
1.4 Write protection of data
As we write Flash Unlock it first ; Another way is to set single write , Only one write is allowed
1.5 Redundant storage of data
The main thing is to increase the reliability of some key data
2. Fee
Fee(Flash EEPROM Emulation) It's right Falsh Imitation EEP An abstract concrete implementation of .
Flash It is abstracted into one by one Flash Sector,Flash Sector And divided into one by one Flash Page.
Flash Sector: Namely Flash Smallest erasable unit , It can also be configured to be larger
Flash Page: Fee Only through Flash Page To visit Flash, That is to say Fee The smallest unit of ,Flash Sector contain Flash Page.
Fee Would call Flash drive (FLS) To realize the real functions of erasing and writing hardware ; however Flash Due to life span , You can't always erase the same address Flash, therefore Fee It also automatically manages the address written , Try to write data evenly
Fee Yes Flash When writing , It will be backed up first , Then erase . That means we need at least two Flash Sector. The process is : The first thing to erase Sector All data is backed up to another Sector in , Then erase the Sector, The next one page One page Of write data , Until this Sector Write full
3. Ea
Ea(EEPROM Abstraction) It's right EEPROM The abstraction of , It also calls EEPROM The driver (EEP) To achieve the final operation .
It will, too consider EEPROM To make an equal share of the stored data . but Ea And Flash The difference is ,EEPROM There is no need to erase piece by piece , It's more flexible , Sure Write data at a fixed point . So it can put a Block Write several Memroy Locations Inside .
4. NVM Storage processing and Block

4.1 NVRAM Block
NVRAM Block Generally, it only contains 1 individual RAM Block、1 individual Administrative Block and 0/1 individual ROM Block. however NV Block It can contain more than one , It includes several NV Block, We will NVRAM Block There are three types :Native( normal )、Redundant( redundancy ) and Dataset( Data sets ).
- Native: That is, a RAM Block Save to the corresponding NV Block in
- Redundant: Will a RAM Block Save to two NV Block in , When one data fails, another can be used
- Dataset: Most support 255 individual NV Block, It's like an array , It can be used DataIndex To index the data

4.2 Fee Block
Fee Block Is in Fee Used in Block, It's called “Chunks” The way to do management .
One Chunk It can contain several Blocks, and Chunk They are connected in the form of a linked list ,Chunk Is one of the nodes

If NVRAM Block Of Block Length If so 16, that Fee Block Of Block Size We should add CRC length (CRC16 Add 2,CRC32 Add 4).
So if it is CRC32, that Fee Block Of Block Size It should be for 20.
Below Ea Block Is the same
4.3 Ea Block

边栏推荐
- 深度剖析数据在内存中的存储
- FAQ | FAQ for building applications for large screen devices
- 【AutoSAR 五 方法论】
- One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function
- Deep analysis of data storage in memory
- Nc17059 queue Q
- Leetcode-2115: find all the dishes that can be made from the given raw materials
- Briefly talk about other uses of operation and maintenance monitoring
- Win10 多种方式解决无法安装.Net3.5的问题
- leetcode-2280:表示一个折线图的最少线段数
猜你喜欢
随机推荐
指针进阶(一)
There is an unknown problem in inserting data into the database
[AUTOSAR I overview]
Initial order of pointer (basic)
【案例分享】让新时代教育发展与“数”俱进
University of Oslo: Li Meng | deep reinforcement learning based on swing transformer
An excellent orm in dotnet circle -- FreeSQL
【AutoSAR 七 工具链简介】
Leetcode-241: designing priorities for operational expressions
【JetCache】JetCache的配置说明和注解属性说明
【AutoSAR 四 BSW概述】
Leetcode-224: basic calculator
Preview word documents online
Arduino开发之按键检测与正弦信号输出
Briefly talk about other uses of operation and maintenance monitoring
Leetcode-871: minimum refueling times
How to systematically learn machine learning
Set up nacos2 X cluster steps and problems encountered
The "2022 China Digital Office Market Research Report" can be downloaded to explain the 176.8 billion yuan market in detail
Callback event after the antv X6 node is dragged onto the canvas (stepping on a big hole record)









