A storage method and reading method for storing user data in flash

A user data and data technology, applied in the direction of memory system, electrical digital data processing, memory address/allocation/relocation, etc., can solve the problems of data loss, data Flash usage time is not long, etc., and achieve the effect of improving the service life
CN105426317BActive Publication Date: 2018-10-23浙江卓奥科技股份有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
浙江卓奥科技股份有限公司
Publication Date
2018-10-23

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The present invention relates to a storage method for storing user data into a Flash and a read method. The storage method is characterized in that: N to-be-stored user data with a fixed length are packaged into data packets, each data packet comprises a peltier, N user data and a check code from the front to the rear sequentially, and the data packets are sequentially stored in the Flash. The storage method provided by the present invention adopts a method of erasing one block for one time, and then dividing the block into partitions, and storing the user data sequentially, and when the partitions are full of the user data, erasing a block again, and sequentially storing the user data according to the partitions again, and according to such a cycle, the service life of the flash is greatly improved. Compared with the prior art, the present invention has the advantages that: the storage method provided by the present invention can preferably avoid an accidental loss existing in user data storage or avoid a premature failure of storage units, and can also correctly and quickly identify the last stored user data.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to a storage method and a reading method for storing user data in Flash. Background technique

[0002] Home appliance control boards often need to save some user data, such as control target temperature, working mode, and so on. In the early days, EEPROM was used to store user data. EEPROM has the advantages of fast storage speed and many times of repeated erasing (up to 1 million times), but it is expensive. With the development of MCU process technology, the space of ROM (hereinafter referred to as Flash) of MCU is getting bigger and bigger, and the production cost is low. The disadvantage of Flash is that the erasing speed is slow, and the number of repeated erasing and writing is small, most of which are less than 10,000 times. Because the Flash space is large, this is just to make up for the problem of fewer erasing times; for example, if 2bytes of user data are stored in 2K Flash space, it can be written 10 million times (...

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