littlefs-project / littlefs

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

Integration problem with external SPI Flash - W25Q16JV #787

Open smitpatel30 opened 1 year ago

smitpatel30 commented 1 year ago

Hello Developer... I am currently working on creating a file system inside W25Q16JV SPI Flash. I need to mount that flash with LFS API. But I don't know the optimum path to resolve this problem. I had installed all the pre-requisities(lfs.h,lfs.c) in my STM32CubeIDE. I have some concerns in programming the parameters of "cfg" strucuture . In that structure there are four parameters namely ;-

  1. read
  2. sync
  3. prog
  4. erase.

Now , In these four parameters I have call my functions , defined by W25Q16JV library. I completely don't know how should I sync my external flash with little fs in order to create a file system inside it. I am programming the flash using STM32F104RE with STM32CubeIDE...

noomio commented 1 year ago

Start with SPI flash datasheet?