levelx
levelx copied to clipboard
When should lv_nand_flash_format be called?
Hi, I'm not sure whether it's a duplicate question. I find sample code demo_filex_nand_flash.c cannot work as ram disk is not formated before.
The sample code erases the ram disk in the beginning. But it's not formated by function lv_nand_flash_format. So lx_nand_flash_open would fail as no valid signature is found. https://github.com/eclipse-threadx/levelx/blob/34616e26e793bd5041624922c7a5becdf113a3ad/samples/demo_filex_nand_flash.c#L102
Is it needed to call lv_nand_flash_format in the sample code?