A method and system for erasing and writing data based on a norflash chip

A data writing and data technology, applied in memory systems, electrical digital data processing, memory address/allocation/relocation, etc. Longevity and balanced erasing effect

Active Publication Date: 2022-03-22
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the prior art, the data erasing and writing of the NorFlash chip is performed by recording the sector erasing time stamp to realize the equalization of each sector, but this method is very easy to cause the sector The inaccuracy of the erasing and writing time stamps recorded in the internal memory makes the erasing and writing of a certain sector too frequent when the back-calibration span is relatively large, which violates the original intention of sector-balanced erasing. Each sector time stamp needs to be erased and written to each sector, which takes a long time. At this time, once the system is abnormally powered off, it is very easy to cause flash data loss.

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
  • A method and system for erasing and writing data based on a norflash chip
  • A method and system for erasing and writing data based on a norflash chip
  • A method and system for erasing and writing data based on a norflash chip

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0054] see below figure 1 , figure 1 It is a flow chart of a method for erasing and writing data based on a NorFlash chip provided by the embodiment of the present application.

[0055] Specific steps can include:

[0056] S101: When the data to be written that needs to be written to the target physical sub-sector is detected, query the first erasi...

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 present application discloses a data erasing method based on a NorFlash chip. The data erasing method includes: when detecting data to be written that needs to be written to the target physical sub-sector, querying the first physical sub-sector of the target First erase and write situation, and calculate the second erase and write situation of all physical sub-sectors; Based on mathematical statistics, judge whether the target physical sub-sector meets the preset condition according to the first erase and write situation and the second erase and write situation; Write the data to be written into the target physical sub-sector; if not, set the physical sub-sector with the least number of erasing times among all physical sub-sectors as the best physical sub-sector, and write the data to be written into The best physical subsector. The method can realize balanced erasing and writing of each sector in the NorFlash chip, and prolong the service life of the NorFlash chip. The application also discloses a data erasing system based on a NorFlash chip, which has the above beneficial effects.

Description

technical field [0001] The invention relates to the field of data storage, in particular to a method and system for erasing and writing data based on a NorFlash chip. Background technique [0002] Because the NorFlash chip allows applications to run directly on-chip, has higher transmission efficiency and cost-effectiveness, and has the characteristics of not losing data when power is turned off, many embedded products use the NorFlash chip as a storage device for applications and important data. [0003] According to the principle of flash programming, only 1 can be written as 0, but 0 cannot be written as 1. Therefore, before flash programming, the data of the corresponding storage unit needs to be erased first. At present, the erasing method provided by the flash chip includes sector There are two types of erase (Sector Erase) and chip erase (Chip Erase). Therefore, before writing data to a flash storage unit, the sector where the storage unit is located must be erased fi...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/02
CPCG06F12/0246G06F2212/7211
Inventor 候志立
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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