Hello. I am using MDK5 now. (stm32f2xx) When I used MDK4 before, I set nand configuration for NAND Page Data Layout.
//////////////////////////////////////////////////////////////////////////// static U32 Init (NAND_DRV_CFG *cfg) {
/* Setup OneNAND Page Layout */ cfg->PgLay->Pos_LSN = 2; cfg->PgLay->Pos_COR = 1; cfg->PgLay->Pos_BBM = 0; cfg->PgLay->Pos_ECC = 8; cfg->PgLay->SectInc = 512; cfg->PgLay->SpareOfs = 2048; cfg->PgLay->SpareInc = 16;
/* Init NAND Driver Peripheral */ /* ... */ return RTV_NOERR; }
http://www.keil.com/support/man/docs/rlarm/rlarm_fs_cfgspare.htm
////////////////////////////////////////////////////////////////////////////
Can I use nand configuration in MDK5?
I used a Micron NAND(MT29F8G08ABACA / 1GByte) and its features is like this
- Page size x8: 4320 bytes (4096 + 224 bytes) – Block size: 64 pages (256K + 14K bytes) – Device size: 8Gb: 4096 blocks 1 page = (4K + 224 bytes) 1 block = (4K + 224) bytes x 64 pages = (256K + 14K) bytes Minimum required ECC : 8-bit ECC per 540 bytes of data