当前位置:网站首页>[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

边栏推荐
- 利亚德:Micro LED 产品消费端首先针对 100 英寸以上电视,现阶段进入更小尺寸还有难度
- Leetcode-2280: represents the minimum number of line segments of a line graph
- kubernetes资源对象介绍及常用命令(五)-(NFS&PV&PVC)
- 【AutoSAR 五 方法论】
- 奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习
- Tensorflow 2. Chapter 15 of X (keras) source code explanation: migration learning and fine tuning
- Vulkan is not a "panacea"“
- [shutter] image component (the placeholder | transparent_image transparent image plug-in is loaded into the memory)
- Rust字符串切片、结构体和枚举类
- Leetcode-849: maximum distance to the nearest person
猜你喜欢

Is there a free text to speech tool to help recommend?

Linux软件:如何安装Redis服务

Liad: the consumer end of micro LED products is first targeted at TVs above 100 inches. At this stage, it is still difficult to enter a smaller size

百度智能云牵头打造智能云综合标准化平台

【AutoSAR 九 C/S原理架构】

图解网络:什么是虚拟路由器冗余协议 VRRP?

Callback event after the antv X6 node is dragged onto the canvas (stepping on a big hole record)

antv x6节点拖拽到画布上后的回调事件(踩大坑记录)

AEM: Nanlin fan Ben et al. - plant rhizosphere growth promoting bacteria control soybean blight

tail -f 、tail -F、tailf的区别
随机推荐
[shutter] image component (the placeholder | transparent_image transparent image plug-in is loaded into the memory)
[applet project development -- JD mall] user defined search component of uni app (middle) -- search suggestions
Problèmes de configuration lex & yacc & Bison & Flex
瑞萨RZ/G2L ARM开发板存储读写速度与网络实测
How to find out the currently running version of Solr- How do I find out version of currently running Solr?
About qbytearray storage hexadecimal and hexadecimal conversion
Arduino开发之按键检测与正弦信号输出
Array and collection performance comparison
如何系统学习机器学习
tail -f 、tail -F、tailf的区别
【雅思阅读】王希伟阅读P1(阅读判断题)
leetcode-1964:找出到每个位置为止最长的有效障碍赛跑路线
[jetcache] jetcache configuration description and annotation attribute description
为什么网站打开速度慢?
Vulkan并非“灵药“
Leetcode-2280: represents the minimum number of line segments of a line graph
[case sharing] let the development of education in the new era advance with "number"
[AUTOSAR I overview]
node_ Modules cannot be deleted
The "2022 China Digital Office Market Research Report" can be downloaded to explain the 176.8 billion yuan market in detail