Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for flash balanced storage

A balanced and data storage technology, applied in the direction of preventing unauthorized use of memory, input/output to record carriers, etc., can solve problems such as limited applicability, irretrievable data, complex data processing, etc., and achieve high reliability , long service life effect

Active Publication Date: 2017-06-13
AUTEL HUNAN CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] As above, the first solution has limited applicability and once the data is lost after power failure, it cannot be retrieved, so the default value can only be used
The disadvantage of the second solution is that the unit used to save the address will still be saturated due to frequent erasing and writing, which will affect the life of the entire memory chip and cannot fundamentally solve the problem of prolonging the service life of the FLASH memory.
And every time you write data, you need to update the content (save address and data) in two places, so the data processing after power failure will be more complicated

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
  • Method and system for flash balanced storage
  • Method and system for flash balanced storage
  • Method and system for flash balanced storage

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The present invention will be further described below in conjunction with the accompanying drawings.

[0043] see figure 1 -2, the method for Flash balanced storage provided by the present invention, the method comprises the following steps:

[0044] Step 11, check whether the sector to be written currently has an erase mark, if not, format the current sector and place the mark;

[0045] Step 12, check whether the current sector is the first time to write data, if so, first format the next sector of the current sector and set the erasure flag EARSE_FLAG, and then set the write use flag USED_FLAG in this sector;

[0046] Step 13, judge whether the remaining space of the current sector is enough to write the current data packet, if the space is enough, write the data to the current location and update the current operation address g_SectorInfo.cur_addr; if the space is not enough, jump to the next sector ;

[0047] Step 14, check whether the written data verification c...

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 relates to a method and system used for Flash balance storage. The method includes the following steps that first, whether an erase flag exists or not in a current sector in which writing will be performed is checked, and if not, the current sector is formatted, and a flag is set; second, whether data are written in the current sector for the first time or not is checked, if yes, a next sector of the current sector is formatted firstly, the ERASE_FLAG is set, and then a USED_FLAG is written into the sector; third, whether the remaining space of the current sector is enough for writing a current data package or not is judged, and if the space is enough, the data are written into the current position, and the current operating address g_SectorInfo.cur_addr is updated; if the space is not enough, the operation skips into the next sector; fourth, whether the written-in data can pass verification or not is checked, and if not, the operation skips into the next sector, and the first step is executed.

Description

technical field [0001] The invention relates to a method and a system for balanced storage of Flash. Background technique [0002] With the rapid development of electronic technology today, the application of embedded micro-control technology in the field of electronic measurement and industrial control is becoming more and more extensive. Usually in monitoring and control systems, some system status data, operating parameters or measurement data need to be stored in non-volatile memory (Flash). [0003] FLASH memory is an erasable, non-volatile storage element developed on the basis of EPROM (Electrically Erasable Programmable Read-Only Memory) and EEPROM (Electrically Erasable Programmable Read-Only Memory) manufacturing technology . There are two types of FLASH memory used in embedded systems, one is a FLASH chip extended outside the MCU (micro control unit), which usually sends commands and data according to a specific timing to achieve read, write and erase operations...

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): G06F3/06G06F12/14
Inventor 潘相熙杨文罗永良闫浩谷韬
Owner AUTEL HUNAN CO LTD