In the NAND flash block driver(WINCE700\platform\common\src\soc\COMMON_TI_V1\COMMON_TI_AMXX\BLOCK\NAND\fmd.c), in function FMD_WriteSector(), the code to write bad block status to spare area is commented, why?
The code snippet is:
BOOL FMD_WriteSector( SECTOR_ADDR sector, UCHAR *pBuffer,
SectorInfo *pSectorInfo, DWORD sectors ) {
...
if (pSectorInfo != NULL){
// Fill in rest of spare area info (we already have ECC from above)
// sa.swBadBlock = pSectorInfo->bBadBlock;
memcpy(sa.reserved1, &pSectorInfo->dwReserved1, sizeof(sa.reserved1));
memcpy(sa.reserved2, &pSectorInfo->wReserved2, sizeof(sa.reserved2));
sa.oemReserved = pSectorInfo->bOEMReserved;
}
...
}