NandFlash bad block management method

A bad block and block number technology, applied in the field of NandFlash bad block management, can solve the problems of increased memory capacity and large memory, and achieve the effects of strong adaptability, high production efficiency and strong versatility

Active Publication Date: 2013-02-13
FEITIAN TECHNOLOGIES
View PDF4 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The inventor finds in the process of realizing the present invention that there are at least the following defects in the prior art: the method of directly

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
  • NandFlash bad block management method
  • NandFlash bad block management method
  • NandFlash bad block management method

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0048] Example one

[0049] See figure 1 The embodiment of the present invention provides a NandFlash bad block management method, and the method specifically includes:

[0050] Step S1: Check whether the initial bad block scan flag is set, if yes, go to step S3 directly, otherwise go to step S2;

[0051] Step S2: Perform an initial bad block scan, find replacement blocks for the scanned bad blocks, and generate a corresponding record to write into the bad block replacement area, and set the initial bad block scan flag after the initial bad block scan is completed;

[0052] Step S3: Create a bitmap, set the values ​​of all data bits in the bitmap to the first preset value, read the records in the bad block replacement area, and compare the bitmap with the The value of the data bit corresponding to each bad block is set to the second preset value for bitmap marking, and the block operation request is waited for after the bitmap marking is completed;

[0053] Wherein, the creation of the...

Example Embodiment

[0063] Example two

[0064] The embodiment of the present invention provides a NandFlash bad block management method. The method specifically includes four parts: initial bad block scanning, bitmap creation and marking, block operation, and bitmap update. This embodiment separately performs initial bad block scanning and Bitmap creation and marking are described as a process, and block operations and bitmap update are described as a process.

[0065] See figure 2 , The initialization process of bad block scanning and bitmap creation and marking includes the following steps:

[0066] Step 101: Check whether the initial bad block scan flag is set, if yes, go to step 114, otherwise go to step 102;

[0067] Wherein, the initial bad block scan flag is used to identify whether the initial bad block scan is completed, the initial scan flag is in a reset state when the NandFlash leaves the factory, and is set when the initial bad block scan is completed.

[0068] Step 102: Locate the first bl...

Example Embodiment

[0116] Example three

[0117] The embodiment of the present invention provides a NandFlash bad block management method. The method specifically includes four parts: initial bad block scanning, bitmap creation and marking, block operation, and bitmap update. This embodiment separately performs initial bad block scanning and Bitmap creation and marking are described as a process, and block operations and bitmap update are described as a process.

[0118] The initial bad block scanning and the bitmap creation and marking process are the same as the method in the second embodiment, and will not be repeated here;

[0119] See Figure 4 , The block operation and bitmap update process includes the following steps:

[0120] Step 301: When the block operation request is received, check whether the NandFlash unavailable flag is set, if yes, it will prompt that NandFlash is unavailable and the operation has failed, otherwise, go to step 302;

[0121] Step 302: Determine whether the block number ...

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 a NandFlash bad block management method and belongs to the field of memories. The method comprises the following steps of: performing initial bad block scanning, looking for a substitutive block for the scanned bad block, generating corresponding record and writing the record in a bad block substitution region, creating a bitmap list after the initial bad block scanning, performing bitmap marking on the record in the bad block substitution region, judging whether the block related in the operation request is bad block according to the mark in the bitmap when receiving a block operation request, if so, looking for the substitutive block of the bad block and operating the substitutive block, if not, operating the current block, adding or amending the record in the bad block record if the bad block appears during the operation process, and adding the mark of the new bad block in the bitmap list. The NandFlash bad block management method has the beneficial effects of supporting high capacity NandFlash chips under the condition of occupying small internal memory and improving the access speed of the NandFlash chips.

Description

technical field [0001] The invention belongs to the field of memory, in particular to a NandFlash bad block management method. Background technique [0002] NandFlash is a kind of Flash memory, which uses a non-linear macro-cell mode inside, which provides a cheap and effective solution for the realization of solid-state large-capacity memory. NandFlash memory has the advantages of large capacity and fast rewriting speed, and is suitable for the storage of large amounts of data, so it has been more and more widely used in the industry, such as embedded products including digital cameras, MP3 walkman memory cards, small and exquisite U disk, etc. [0003] NandFlash has the possibility of bad blocks when it is used for the first time, and bad blocks will also be generated during use. Currently, the method of establishing a mapping table is used to manage bad blocks of NandFlash. [0004] The inventor found in the process of realizing the present invention that at least the f...

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): G06F12/06
Inventor 陆舟于华章
Owner FEITIAN TECHNOLOGIES
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