cancel
Showing results for 
Search instead for 
Did you mean: 

FatFS on STM32U0XX and external flash

RB4020
Associate II

I'm a fresher as a Firmware engineer. I'm currently working on dataloggers. I'm using STM32U083C-DK board which contains STM32U083MCT6 MCU. I've written the code for the basic functionality of the device i.e sleep and wakeup logic using STM32CubeIDE.

Now, I need to communicate with an external flash memory (W25Q32JVSIQ).

Help me with integrating and modifying the necessary files in the FatFS.

So, after going through some searching, I got to know that I need to integrate FatFS with my project (on STM32CubeIDE) first and then do SPI communication with the W25Q32JVSIQ.

So, till now, I've done these things:

  1. I've downloaded the FatFs module (ff15.zip) from http://elm-chan.org/fsw/ff/arc/ff15.zip
  2. And extracted the contents to a location accessible by the STM32CubeIDE project.
  3. Copied the necessary source files (ff.c, ffsystem.c, ffunicode.c, diskio.c, ff.h, ffconf.h, diskio.h) from the FatFs source folder (ff15/source) into the STM32CubeIDE project directory.

Now, what should I do?

I think, I need to modify the ffconf.h file and Set Up Low-Level Disk I/O Functions.

So, can anyone help me by providing your files for reference or any other references or examples to go through?

1 REPLY 1
SHs
ST Employee

Hello @RB4020 ,

Welcome to ST Community.

A similar topic has been answered, please refer to this thread: Need to Access External Flash memory as File System

 
 
Please close this topic by clicking on “Accept as solution" button if it fully answered your question.