Closed aod-ad closed 3 years ago
UINT _lx_nand_flash_block_reclaim(LX_NAND_FLASH *nand_flash) { ... if (obsolete_pages == nand_flash->lx_nand_flash_pages_per_block) ... }
obsolete_pages cannot exceed (nand_flash->lx_nand_flash_pages_per_block-1), Because the first page is used as the mapping list.
Thank you for the feedback, this is a bug in the code. We will fix it.
This is fixed in Azure RTOS release 6.1.8
UINT _lx_nand_flash_block_reclaim(LX_NAND_FLASH *nand_flash) { ... if (obsolete_pages == nand_flash->lx_nand_flash_pages_per_block) ... }
obsolete_pages cannot exceed (nand_flash->lx_nand_flash_pages_per_block-1), Because the first page is used as the mapping list.