-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Expected behavior:
I have an rpi-pico program where littlefs is used. I want to prepare the filesystem in my PC and then flash this filesystem into the rpi-pico. After filesystem is flashed into rpi-pico, rpi-pico has read/write access to this prepared filesystem.
Rpi-pico should be able to write to the prepared filesystem
Actual behavior:
Rpi-pico cannot write to the filesystem. When it does, filesystem is corrupted.
Information about the issue:
Rpi-pico needs to erase blocks (fill it with 0xFF values) before write. littlefs-fuse does not do that. When I put breakpoint into
my "prog" function in rpi-pico and examine data in the flash at that place, it still contains some data and it is not erased.
It would be nice to implement erase function and fill blocks with value 0xFF. It can be optional by commandline argument.
Maybe some flashes need to fill blocks with 0x00 too.