Hi all, I am facing some issues when enabling SMART FS and I'd like to know if this is an expected behavior or maybe a bug on NuttX.
First issue: - If I use the following sequence: 1. smart_initialize() 2. nx_mount() nx_mount throws errors like: sector not allocated and no low level format. To fix it, all I need to do is to format it by calling mksmartfs /dev/smart0 and I can reset and have my mount point correctly mounted. Second issue: If I run flash_eraseall just like the following sequence it will throw an I/O error when writing to a file in the recent created mount point. mksmartfs /dev/smart0 mount -t smartfs /dev/smart0 /temp echo "TESTE" > /temp/teste cat /temp/teste umount /temp flash_eraseall /dev/smart0 mksmartfs /dev/smart0 mount -t smartfs /dev/smart0 /another_temp echo "TESTE" > /another_temp/teste P.S: The error happened on ESP32C3 DevKit and also on simulator. To reproduce the error, you basically need to enable the following configs: CONFIG_FS_SMARTFS CONFIG_MTD_SMART CONFIG_SYSTEM_FLASH_ERASEALL Thanks, Sara.