Forum Discussion

baymaxPP's avatar
baymaxPP
Copper Contributor
Sep 27, 2023

LevelX NandFlash Problem

The page size of nand flash used is 8KB, a block has 128 pages, a total of 10 * 1024 blocks are used, but when _lx_nand_flash_open function is used to open, it is found that the opening fails. According to my code trace, it was found that the LX_NAND_PAGE_TYPE_ERASE_COUNT_TABLE branch in the _lx_nand_flash_open function caused an error when page_index=1. But this value is actually written using the _lx_nand_flash_format function, Because the _lx_nand_flash_metadata_build function gets page_count=2 (page_count= (nand_flash ->) when erasing counts. lx_nand_flash_block_status_table_size + (nand_flash -> lx_nand_flash_bytes_per_page - 1)) / nand_flash -> lx_nand_flash_bytes_per_page;) I would like to ask, does levelX not support such a large Nand-Flash? Or is there something wrong with my configuration?

No RepliesBe the first to reply

Resources