您好,欢迎访问三七文档
当前位置:首页 > 中学教育 > 初中教育 > NAND Flash坏块管理专题研究-黄铭
ShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-101NANDFlash10012010-5-10--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------1NANDFLASH…………………………………………….21.1NANDFLASH………………………………………21.2NANDFLASHs3c410……………………………..31.3NANDFLASH…………………………………………41.4NANDFLASH…………………………………....61.5NANDFLASH…………………………………………..72NANDFLASH……………………………………………..82.1NANDFLASH……………………………………………82.1NANDFLASH…………………………………………102.2NANDFLASH…………………………………………...113NANDFLASH……………………………………………133.1NANDFLASH……………………………………...133.2NANDFLASH………………………………...14ShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-1021NANDFLASH1.1NANDFLASH1fs2410,NANDFLASHk9f1208u0m64M8bit1page512B,1block32page4096BlockK9F1208U0M2K9F1208U0MI/O0~I/O78I/O//CLEALE/CE,ShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-103/RE/WE/WPR/B01VCCVSSN.C1.2NANDFLASHs3c410NANDFLASHcpus3c2410ShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-1048I/Os3c2410DATA0–DATA78NANDFLASH6R/B,/RE,/WE,/CE,CLE,ALES3C2410R/nB,nFRE,nFWE,nCE,CLE,ALE,/WP/wp/WP1.3NANDFLASH1NANDFLASHK9F1208U0MS3C2410K9F1208U0M,S3C2410nandflashNANDFALSH3TACLS,TWRPH0,TWRPH1NANDFLASH3NANDFLASHShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-1052NANDFLASHTACLSCLE&ALECLE/ALETACLSCLE/ALECLE/ALEk9f1208u0mtclstals10ns10nsminTWRPH0/WEPLUSEWIDTH/WEk9f1208u0mtwp25nsminTWRPH1/WEhigtholdtime(/WE)k9f1208u0mtWH15nsminNOTE:1.IftCS10ns,tWP=35ns,otherwisetWP=minimum25ns.1.4NANDFLASHNFCONFNANDFALSHECCShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-106NFCONF[11]:nandflash0NANDFLASH1NFCONF[15]:NANDFLASH0NANDFLAS1NANDFLASNFCMD8NFADDR8NFDATA8NFSTATNANDFLASHNFSTAT[0]0:11.5NANDFLASH1K9F1208U0M528Mbit131072528512B+16B(OOB16BOOB512~527NANDFlash,1device=4096blocks1block=32pages;1=528(512)+OOB(1616OOBOutofBandNANDFlash512NANDFlash00h/01h/NANDFlashShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-107NANDFLASH2@K9F1208UOM512@256@00h@00h@A8=00H=0122NANDFlash1)OOB517ShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-108FFOOBOOBNANDFlashECC2NANDFLASH2.1NANDFLASH1NANDFLASHI/O0~I/O7NANDFLASH8I/ONANDFLASH:PageProgram(True):ShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-109PageProgram(Dummy)42I/O2.1NANDFLASHNANDFLSHNANDFLASHShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-1010NANDFLASHShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-101160HD0HI/O601flashI/O=02.2NANDFLASH1NANDFLASH64M26I/O8I/O,4ShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-1012NFADDR=addr&0xff8NFADDR=(addr9)&0xff98NFADDR=(addr17)&0xff1716NFADDR=(addr25)&0xff25242NANDFLASH3NANDFLASHShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-10133NANDFLASH3.1NANDFLASH1.NANDFlashNANDMemoryArrayNAND/PageProgramBlockEraseStatusRegister2.1ShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-1014pagesparearea6byte0xff2NANDFlashBlockErasePageProgrampagesparearea6Byte0xff3shortbbt[4095]NANDFLASH0-4095BBTbadblocktablebbtblock0nandbootbbtbbtbbtnandnandbbt3.2NANDFLASH1nand_crate_bbt()shotbbt[4095],NANDFlash0---4095bbt40952NANDFLASHShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-1015flash31FLASH2flash3flashflash4oob005bbt[0],bbt[1]……bbt[4095],NANDFLASH0,1,…..,4095.NANDFALSH4,5NANDFLASH44bbt[4]=5,;25bbt[4]=6for(i=1;ibadnum_block;i++){//bbt[blockID-i]=blockID+(badnum_block-i);}ShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-1016409540944093…..…..76543210bbt[4095]409540944093…..…..76543210NANDFLASH4096bbt[0]bbt[1]………..ShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-1017()409540944093…..…..76543210bbt[4095]409540944093…..…..76543210NANDFLASH4096bbt[0]bbt[1]………..ShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-101812()NAND_eraseBlock()Nand_bbt_ctreateBbtIsValid()Bbt[blockID]=blockID+num_blockNand_isBadBlock()NAND_markBlockBad()Truefalse3ShenzhenFarsightInc.10012010-5-10————————————————————————————————————————————10012010-5-101923for(block_ID=0;block_ID+4095;block_ID++)NAND_IsBadBlock()Bbt[block_ID]=block_ID+badnum_block;True3Bbt[block_ID]~bbt[4095]0xffffNAND_WritePagebbt1Nand_readPage()bbtbbtIsValid=1
本文标题:NAND Flash坏块管理专题研究-黄铭
链接地址:https://www.777doc.com/doc-4042326 .html