littlefs-project / littlefs

A little fail-safe filesystem designed for microcontrollers
BSD 3-Clause "New" or "Revised" License
4.9k stars 770 forks source link

examples about use BDs provided (in particular lfs_filebd) #983

Open mastupristi opened 1 month ago

mastupristi commented 1 month ago

could you provide some examples on using the block devices I find in the bd directory, specifically filebd?

I have tried to make do with the example https://github.com/littlefs-project/littlefs?tab=readme-ov-file#example but so far I am getting segfault. By the way, I don't know how to populate the struct lfs_filebd_config structure and whether these values should be the same (or related) as those already written in the example in the struct lfs_filebd_config structure

best regards Max

geky commented 1 week ago

Hi @mastupristi, thanks for creating an issue.

This would be good to do eventually. In general the bd layers need some TLC.