Data error correction method and device on flash storage medium
A technology of storage medium and error correction method, applied in the field of data storage, can solve problems such as increasing the complexity of user code, lack of error correction mechanism for key metadata, and data confusion.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] This embodiment implements transparent storage and backup of user data. In order to realize data backup, the physical sector needs to be divided into two parts, one is the externally visible physical primary sector, and the other is the physical backup sector used for backup. Each physical primary sector has a unique corresponding physical backup sector. The physical backup sector is invisible to users. The physical backup sector and the physical primary sector have a fixed offset relationship on the flash.
[0050] Such as Figure 5A As shown, the data writing process is as follows:
[0051] Step 501: When the user needs to write data, allocate a physical master sector for the user data according to the size of the user data to be written, and at the same time allocate the right to use the physical backup sector corresponding to the physical master sector;
[0052] Step 502: Calculate the ECC code according to the sector size;
[0053] Step 503: Write the user data ...
Embodiment 2
[0070] This embodiment implements double backup of metadata.
[0071] Such as Figure 5C As shown, for a device with complex sector management, in addition to the ECC code being backed up as part of the metadata, it is also necessary to implement double backup of metadata for other metadata.
[0072] Such as Figure 5D As shown, the following process needs to be adopted for reading any metadata:
[0073] Step 521: read the first metadata from the physical master sector dedicated to saving metadata;
[0074] Step 522: Read the second metadata from the physical backup sector corresponding to the physical master sector dedicated to saving metadata;
[0075] Step 523: Perform self-error correction processing on the read first metadata and second metadata.
Embodiment 3
[0077] This embodiment describes the method adopted for self-correction of primary and secondary data.
[0078] Flash has the feature of erasing first and then writing. After erasing, the stored bit is read as 1, and after writing, 1 can be programmed as 0. This feature makes the bit flip on Flash from 1 to 0, so this is Provides a simple and effective method for data error correction, such as Figure 5E As shown, the error correction process is as follows:
[0079] Step 531: read data from the physical master sector, called master data;
[0080] Step 532: read data from the physical backup sector, called backup data;
[0081] Step 533: Perform a OR operation on the corresponding bits of the primary data and the backup data to obtain data after self-error correction processing. The bit-OR operation means that as long as one of the two bits is "1", the result of the bit-OR is "1", otherwise the result of the bit-OR is "0".
[0082] This error correction algorithm can correc...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com