littlefs-project / littlefs

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

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

Open mastupristi opened 6 months ago

mastupristi commented 6 months 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 5 months ago

Hi @mastupristi, thanks for creating an issue.

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