Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

NANDFLASH management method based on FAT file system

A management method and file system technology, applied in the field of NANDFLASH management based on the FAT file system, can solve the problems of consuming CPU resources, slowing down the system speed, and increasing the storage space, so as to improve reliability and stability, shorten the development cycle, The effect of simple method

Inactive Publication Date: 2010-03-10
IPGOAL MICROELECTRONICS (SICHUAN) CO LTD
View PDF0 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] 1. Due to the problem of the bad block table and the mapping table, its algorithm becomes relatively complicated, and the amount of code increases, which consumes a lot of CPU resources and slows down the system;
[0012] 2. Because it needs to establish a bad block table and a mapping table, the storage space it consumes will also increase

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 management method based on FAT file system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] Such as figure 1 Shown, a kind of NANDFLASH management method based on FAT file system, at first is to detect each block in NANDFLASH, find out bad block, then handle bad block, convert the physical address of bad block into cluster number, finally in In the FAT table, the cluster number of the bad block is marked; the value of the mark must be greater than the maximum cluster number in the FAT table, in order to make the mark value not repeat with the effective cluster number, and in this way, it will never be written into the file It will not be written to this cluster.

[0028] The conversion of the physical address of the bad block into the cluster number is carried out by the bad block processing program, and the converted code is:

[0029] for(i=0; i

[0030] {

[0031] BadClusNum[i]=BadBlkNum*ClusPerBlk+2;

[0032]}

[0033] Among them, ClusPerBlk represents the number of clusters per block; BadClusNum represents the cluster number correspo...

Embodiment 2

[0042]When NAND FLASH is formatted, the computer will calculate the relevant information according to the capacity of FLASH and put it into DBR. FAT divides the FLASH space according to a certain number of sectors, each sector is 512Bytes, and multiple sectors constitute a " cluster". The following structure is the detailed information in DBR:

[0043] #define UINT8 unsigned char

[0044] #define UINT16 unsigned int

[0045] #define UINT32 unsigned long

[0046] typedef struct

[0047] {

[0048] UINT8 jmpBoot[3]; / *jump instruction * /

[0049] UINT8 OEMName[8]; / *Manufacturer name * /

[0050] UINT16 BytsPerSec; / *Bytes per sector * /

[0051] UINT8 SecPerClus; / *Number of sectors per cluster * /

[0052] UINT16 RsvdSecCnt; / * Number of reserved sectors * /

[0053] UINT8 NumFATs; / *Number of FAT tables * /

[0054] UINT16 RootEntCnt; / *The maximum number of files in the root directory, which is 0 in FAT32 * /

[0055] UINT16 TotSec16; / * Total num...

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 an NANDFLASH management method based on an FAT file system, which comprises the following steps: firstly, detecting each block in an NANDFLASH, finding out a failed block; secondly, processing the failed block, converting a physical address of the failed block into a cluster number; thirdly, making the cluster number of the failed block in an FAT table, wherein the marked value is more than the biggest cluster number in the FAT table. A failed block table and a mapping list are established independently, but the information of the failed block is marked on the FAT table, the method for processing on the file system is suitable for equipment based on the FAT file system, is simple, has less code amount and shorter development period without consuming large CPU resources and storage space and can effectively improve the reliability and the stability of the system.

Description

technical field [0001] The invention relates to the application of NANDFLASH, in particular to a NANDFLASH management method based on the FAT file system. Background technique [0002] The FAT file system is a file management method proposed by Microsoft in the early days, and it is mostly used on PDA devices now. Due to the structure and process of Nandflash, there is a difference between the Nandflash-based FAT file system and the hard disk-based FAT file system. The FAT file system under Nandflash can be roughly divided into the following parts: [0003] (1), DBR area: For NANDFLASH, the most important is the BPB (BIOS Parameter Block) area, which is located in the 53 bytes after the jump instruction, manufacturer logo and OS version number in the DBR area, which records the file system. Relevant information, such as: Nandflash type, version number, bytes per sector, sectors per cluster, Nandflash capacity, etc. In addition, there are logical partition table and main b...

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): G06F17/30
Inventor 唐伟
Owner IPGOAL MICROELECTRONICS (SICHUAN) CO LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More