This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

One question of Adeneo WEC7 BSP for AM335x: Why the bad block status is not written into spare area in the NAND flash FMD driver?



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;
        }

    ...

}