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.

NAND Driver Support Atomic Sector Write Question

Other Parts Discussed in Thread: AM3517, AM3505

Hi,

I am using BSP_WINCE_ARM_A8_01_02_00 with AM3505/AM3517. I am using the same NAND chip with LogicPD AM3517 EVM. The NAND chip is Micron MT29F4G16 and it works as expected.  I am planning to use WinCE transaction-safe extended FAT (TexFAT) file system which requires atomic sector write operations.

I browsed through the BSP source code and looked for the codes for where the flash driver support the atomic sector write operations. Look like when g_bUseFlashIOCTLs is true the driver will set RequestFlags = FLASH_SECTOR_REQUEST_FLAG_WRITE_THROUGH ||FLASH_SECTOR_REQUEST_FLAG_ATOMIC.  However, I don't see g_bUseFlashIOCTLs  ever set.

My questions are:

1. Where is a good place to set g_bUseFlashIOCTLs?

2. Is it safe to use?

3. Will it satisfy TexFAT?

Thanks,

Dennis

 

Thanks,

Dennis Nguyen

  • Please disregard the g_bUseFlashIOCTLs comment. This code section is for the test code only. If I read the BSP code correctly, the NAND driver should support atomic sector write operations due to FMD_WriteSector() indicates direct memory write to NAND and “NonatomicSector” registry is not used in BSP. If you have any comment on TexFAT, please response.

    Thanks,

    Dennis