当前位置:网站首页>[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
边栏推荐
- 百度智能云牵头打造智能云综合标准化平台
- 关于XML一些介绍和注意事项
- Array common operation methods sorting (including ES6) and detailed use
- Unity learns from spaceshooter to record the difference between fixedupdate and update in unity for the second time
- Arduino开发之按键检测与正弦信号输出
- AttributeError: ‘tuple‘ object has no attribute ‘layer‘问题解决
- Leetcode-2115: find all the dishes that can be made from the given raw materials
- Leetcode-849: maximum distance to the nearest person
- 【AutoSAR 一 概述】
- Vulkan performance and refinement
猜你喜欢
Gan model architecture in mm
Linux软件:如何安装Redis服务
Lu Zhe, chief scientist of Shiping information: building data and personnel centered security capabilities
Web2.0 giants have deployed VC, and tiger Dao VC may become a shortcut to Web3
Introduction and use of ftrace tool
图解网络:什么是虚拟路由器冗余协议 VRRP?
RK3568开发板评测篇(二):开发环境搭建
【小程序项目开发-- 京东商城】uni-app之自定义搜索组件(中)-- 搜索建议
Sentry developer contribution Guide - configure pycharm
指针初阶(基础)
随机推荐
Unity learns from spaceshooter to record the difference between fixedupdate and update in unity for the second time
Meaning of Tencent cloud free SSL certificate extension file
使用jenkins之二Job
[AUTOSAR II appl overview]
Rust字符串切片、结构体和枚举类
Logback configuration file
Key detection and sinusoidal signal output developed by Arduino
2022中国3D视觉企业(引导定位、分拣场景)厂商名单
【AutoSAR 十三 NVM】
leetcode-2280:表示一个折线图的最少线段数
Leetcode 294. Flip game II (game theory)
Automated defect analysis in electronic microscopic images
Leetcode-871: minimum refueling times
lex && yacc && bison && flex 配置的問題
Win10 多种方式解决无法安装.Net3.5的问题
leetcode-224:基本计算器
[overview of AUTOSAR four BSW]
leetcode-1964:找出到每个位置为止最长的有效障碍赛跑路线
Test shift right: Elk practice of online quality monitoring
Two common methods and steps of character device registration