Hi Ken, Thank you. I'll appreciate to know the results of your tests. I am also performing more tests than this one and I am experiencing issues that I still don't know if it is related to SMART FS, or some NuttX module or even the chip I am using. The issues are intermittent, what makes it harder to identify the cause.
Em sex., 6 de ago. de 2021 às 15:21, Ken Pettit <petti...@gmail.com> escreveu: > Hi Sara, > > I'm not sure SmartFS was ever tested with this particular sequence where > the volume is erase and then re-mounted to a different location. If I > get a chance this weekend, I will take a look at it since you have a > very specific test sequence. > > Ken > > On 8/5/21 3:48 PM, Sara da Cunha Monteiro de Souza wrote: > > 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. > > > >