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
I can format my card, but after creating 2 files i got lfs.c:2072:debug: Bad block at 0x1if I try to create third file
EDIT 2 :format doesn't work, right now, I always got -28 LFS_ERR_NOSPC error code from lfs_format and comming from format command I have :
lfs.c:2072:debug: Bad block at 0x0
lfs.c:2078:warn: Superblock 0x0 has become unwritable
So for now, I'm not sure about my erase function W25NXX_Erase_Block128Kand/or my lfs_config
EDIT 3 : Ok so I have news, for now I can format/mount and create files on my w25n01 chip. But After creating 6 files when I'm trying to create next file I got corrupt pair adress (I think this happen when I pass to next block), so right now I'm not sure about how to use block offset and size
Hi all,
I'm trying to use littlefs instead of fatfs but i'm stuck. My hardware :
For w25n I'm using this driver https://github.com/masoud-babaabasi/W25N01-flash-library/tree/main/W25N_SPI_dual for the moment i'm working with fatfs.
So I've added littlefs library to my project and I've created littlfs fonction like that :
and here is my configuration
in my main I'm trying to create file example
I never see my debug message
end format
, what i'm doing bad ?EDIT :
with these configuration
I can format my card, but after creating 2 files i got
lfs.c:2072:debug: Bad block at 0x1
if I try to create third fileEDIT 2 :format doesn't work, right now, I always got
-28 LFS_ERR_NOSPC
error code fromlfs_format
and comming from format command I have :So for now, I'm not sure about my erase function
W25NXX_Erase_Block128K
and/or mylfs_config
EDIT 3 : Ok so I have news, for now I can format/mount and create files on my w25n01 chip. But After creating 6 files when I'm trying to create next file I got corrupt pair adress (I think this happen when I pass to next block), so right now I'm not sure about how to use
block offset and size
If I add offset like that :
I got error as soon as I try to create file and if I remove offset like that :
I can create 6 files but for the seven I got errors :
here is my configuration :
The text was updated successfully, but these errors were encountered: