Skip to content

lfs_fuse_bd_erase should be implemented #33

@messani

Description

@messani

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions