You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Issue:
Noticing mount point creation fails on running samples/subsys/fs/littlefs code example.
Platform:
PSOC6(cy8cproto_062_4343w)
Created the partition changes:
storage_partition: storage_partition@150000{
compatible = "soc-nv-flash";
reg = <0x150000 DT_SIZE_K(128)>;
};
But on booting the code example mount creation fails with error : Superblock 0x0 has become unwritable
Below is the complete error log:
*** Booting Zephyr OS build v4.2.0-1766-g9e2beaa24328 ***
Sample program to r/w files on littlefs
Area 0 at 0x150000 on qspi_flash@40420000 for 131072 bytes
I: LittleFS version 2.11, disk version 2.1
I: FS at qspi_flash@40420000:0x150000 is 2 0x10000-byte blocks with 512 cycle
I: partition sizes: rd 16 ; pr 16 ; ca 64 ; la 32
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:1424: Corrupted dir pair at {0x0, 0x1}
W: can't mount (LFS -84); formatting
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:6086: lfs_format(0x80028dc, 0x8002860 {.context=0x10015b90, .read=0x100113b3, .prog=0x10011397, .erase=0x10011383, .sync=0x100111a9, .read_size=16, .prog_size=16, .block_size=65536, .block_count=2, .block_cycles=512, .cache_size=64, .lookahead_size=32, .read_buffer=0x800372c, .prog_buffer=0x80036ec, .lookahead_buffer=0x80036cc, .name_max=0, .file_max=0, .attr_max=0})
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:1842: lfs_dir_commitcrc lfs_alloc LFS_ERR_CORRUPT
W: WEST_TOPDIR/modules/fs/littlefs/lfs.c:2176: Superblock 0x0 has become unwritable
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:2431: lfs_dir_relocatingcommit lfs_dir_splittingcompact state : -28
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:2518: lfs_dir_orphaningcommit lfs_dir_relocatingcommit ERROR state : -28
E: WEST_TOPDIR/modules/fs/littlefs/lfs.c:2697: lfs_dir_commit ERROR
E: format failed (LFS -28)
E: fs mount error (-28)
FAIL: mount id 0 at /lfs1: -28
Please me in solving this issue.
Beta Was this translation helpful? Give feedback.
All reactions