current location:Home>News>Technical Topics

Latest News

Contact Us

Address: 3F , Blg 7 West, Sinosteel Building,Maque Industry Village Nanshan,Shenzhen,518057,Guangdong

Phone: +86-755-26971006

Mobile: 13751075276

Email: sales@acroview.com

Analyze the programming structure of NAND Flash

Time:2020-11-21   Visits:1481

Analyze the programming structure of NAND Flash

In the previous article, we introduced the difference between NAND Flash and NOR Flash. From the perspective of structure and principle, the ROM-like structure of NOR Flash makes it easy to program. Therefore, many engineers are used. If the cost is not too high, NAND Flash simply cannot survive.

NAND Flash is more and more popular with consumers due to its low price and large storage capacity, especially consumers who need to store large amounts of data. What should be paid attention to when programming NAND Flash?

Partition

The essence of defining a partition is to define how data will be written to NAND Flash, and data of different contents is written to the corresponding address. General users will have multiple areas, such as boot, kernel, fs, user and other partitions.

Partition description: partition address range (start block, end block), image file size (Image Size).

Partition data storage: the mirror file is stored from the starting block of the partition. If there are bad blocks in the partition, the bad block processing strategy will be used to replace the bad blocks until the end of the mirror file. If the partition is not good enough to store the mirror file, then Burning failed.

The following figure is a schematic diagram of the image file partition burning with skipped bad blocks:

剖析NAND Flash的编程结构

ECC in the spare area (OOB)

ECC exists in the Spare Area of each page of NAND. It allows the external system to find out whether the data in the main area is incorrect. In most cases, the ECC algorithm can correct errors, and bad blocks may also occur in NandFlash in use, so ECC is very necessary.

Different users may use different ECC algorithms. Generally speaking, the ECC algorithm is provided by the processor supplier. If the ECC algorithm is not included in the programmer software, the user needs to provide the ECC algorithm source code.

If the user does not use the imported file, but uses the method of reading the master, and there is no dynamic data, the ECC algorithm can be ignored, because the spare area in the master has already calculated the ECC, and the spare area of the master is directly changed Just copy to other chips.

Bad Block Management (Bad Block Management)

The bad block handling strategy defines how the algorithm should deal with bad blocks. The basic bad block handling strategies include skipping bad blocks, replacing tables (Reserve Block Area, RBA), and so on.

● Hard copy

In fact, hard copy means nothing is dealt with when encountering bad blocks, no matter the good block or the bad block is burned directly, even if the verification data is inconsistent, no error will be reported;

剖析NAND Flash的编程结构

● Skip bad blocks

To skip the bad block is to jump to the next good block to burn when encountering a bad block;

剖析NAND Flash的编程结构
● 替换表

就是预留一些块作为保留块,是用于替换坏块用,当遇到坏块时,在保留区中选一个块来替换,将原来写到坏块的数据写到替换块中。

剖析NAND Flash的编程结构

● BBT (Bad block table)

In fact, it is to skip bad blocks, and then write a bad block table (Bad block table) in the designated location of the Nand flash memory. The figure below is the structure diagram of BBT.

剖析NAND Flash的编程结构

Transfer from: Zhiyuan Electronics


Hot tags:

烧录器| ic烧录机| IC自动烧录机| 芯片烧录设备| 自动化烧录器| 全自动ic烧录机| IC自动化烧录器| 万用型烧录器| IC自动烧写器| 在线自动化烧录机| ic芯片烧录机厂家| 芯片自动烧录器| 芯片自动烧录机| 自动编程烧录器| 全自动芯片烧写器| 全自动在线烧录机| 自动ic烧录机厂家| 自动化ic烧录机| 芯片烧录器厂家| 全自动在线烧录机|
memory ic programmer_Production Programmers_eMMC Programmer

Dear, scan to add WeChat as a friend