NOR-FLASH data storage method, computer device and storage medium

A NOR-FLASH and data storage technology, applied in computing, electrical digital data processing, data processing input/output process, etc., can solve the problems of reduced product life, reduced FLASH service life, high frequency of key data modification, etc., to achieve wear and tear Uniform, life-enhancing effect

Active Publication Date: 2019-08-27
牧星机器人(江苏)有限公司
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] (5) The erasing life of each SECTOR/BLOCK of NOR-FLASH is about 100,000 times, and the erasing or writing operation on the SECTOR/BLOCK can no longer be performed after the erasing times are exceeded;
[0008] (6) The write operation can only change the data in the storage unit from 1 to 0, and cannot change from 0 to 1, so the write operation must first perform an erase operation on the SECTOR or BLOCK where the storage unit is located;
[0013] (1) When writing critical data (such as the FAT table of the FAT file system), if the power failure occurs immediately after erasing the data, the original data in the SECTOR/BLOCK

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • NOR-FLASH data storage method, computer device and storage medium
  • NOR-FLASH data storage method, computer device and storage medium
  • NOR-FLASH data storage method, computer device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0084] See attached figure 1 , in the present invention, the storage space of NOR-FLASH is divided into two main areas, occupy the control area (MasterArea) of a small amount of NOR-FLASH storage space and occupy the user area (UserArea) of remaining a large amount of storage space. Among them, the control area accounts for about 1 / 128 of the total storage space. This area is used to store some important data information, which includes labels (Label), the first static mapping table (Mapping0), and the second static mapping table (Mapping1) , reserved area (Reserved) and log area (Log); user area (UserArea) is used to store user data, which is composed of base remap sector group (Base Remap Sectors) and extended remap sector group (Extended Remap Sectors). Both the mapped sector group and the extended mapped sector group include a number of remapped sectors (Remap Sector).

[0085] The overall idea of ​​the technical solution of the present invention is as follows: when the u...

no. 2 example

[0154] For ease of understanding, the data storage process of NOR-FLASH and its wear leveling and power-off recovery are described below in combination with specific examples:

[0155] In this embodiment, the parameters of the conversion software FTL are: the number of logical sectors is 4, and the number of mapped sectors is 8, that is, the number of mapped sectors is 4 more than that of logical sectors to achieve wear balance.

[0156] The process of writing data in this embodiment is as follows: write logical sectors 0, 1, 0, 2, 0, 3, 0, 1, 0, 3 in sequence.

[0157] The following is a step-by-step description of the process of writing data:

[0158] (1) Data situation after initialization

[0159] The initialized data is attached Figure 12 As shown, the penultimate item data of the dynamic mapping table (Mapping), the first static mapping table (Mapping0) and the second static mapping table (Mapping1) are their respective serial numbers (Sequence), and the log area (Log...

no. 3 example

[0210] The present invention also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a multi- A server cluster composed of servers), etc. The computer device in this embodiment at least includes but is not limited to: a memory, a processor, and the like that can be communicatively connected to each other through a system bus. An executable program is stored in the memory, and the processor runs the executable program in the memory to realize the above-mentioned NOR-FLASH data storage method.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an NOR-FLASH data storage method, a computer device and a storage medium. The NOR-FLASH is divided into a control region and a user region, and the method comprises the following steps of applying for writing the sector data into an idle mapping sector from the user region according to a dirty bitmap; updating the dirty bitmap, a recovery bitmap and a dynamic mapping table;writing the mapping relation between a logical sector number and a mapping sector number into a log area, wherein if the log area is full before writing, the dynamic mapping table is backed up to thestatic mapping table, and the log area is erased. According to the NOR-FLASH data storage method, the computer device and the storage medium provided by the invention, by setting the dirty bitmap, the recovery bitmap and the dynamic mapping table, the sector of the NOR-FLASH is planned and managed, the limited abrasion uniformity of the sector in the NOR-FLASH is realized, and the service life ofthe NOR-FLASH can be prolonged; by setting the log records to record the data writing process and utilizing the static mapping table to back up the data of the dynamic mapping table, the data cannotbe lost when power failure occurs during data writing.

Description

technical field [0001] The invention relates to the technical field of data reading and writing, in particular to a NOR-FLASH data storage method, computer equipment and a storage medium. Background technique [0002] Usually we need to save the file data to the storage medium, and FLASH is often used as the storage medium in the embedded system. FLASH can be divided into two types according to its characteristics, NAND-FLASH and NOR-FLASH. The data access of NOR-FLASH has the following characteristics: [0003] (1) The access operation of NOR-FLASH is divided into erase / read / write; [0004] (2) The smallest data unit that can be manipulated by reading data is a byte, which can access any address on the NOR-FLASH; [0005] (3) NOR-FLASH is divided into several BLOCKs (64KB or larger), each BLOCK contains several SECTORs (4KB or 8KB), and each SECTOR contains several PAGEs (256 bytes); [0006] (4) Erase data Data is carried out according to SECTOR or BLOCK or even the en...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F3/06G06F11/14
CPCG06F3/0616G06F3/0644G06F3/0679G06F11/1479
Inventor 姜勇汪文俊谢受浪
Owner 牧星机器人(江苏)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products