cancel
Showing results for 
Search instead for 
Did you mean: 

Updating fatfs in a project

alex_embedded
Associate III

Hi All,

I have downloaded the latest version of the fatfs library from

http://elm-chan.org/fsw/ff/00index_e.html

I have a project with the fatfs middleware running, the project was created via cubemx. So far I have had no issues with the librabry, however I would like to update to the latest version. Simply copying the files over is causing a long list of errors, not in my code but in the files for the middleware.

How do I find out what version of fatfs I am currently on, and how do I properly update to the latest version?

Thanks all for your time! :D

2 REPLIES 2
alex_embedded
Associate III

*UPDATE*

Just found the version that is in cubemx.

I am currently using R0.11, and I want to update to R0.13c

The FatFs model changed a bit. You'll have to remove the current source files, replace with the new equivalents, and port the diskio.c layer to match the new model. The configuration file is also different.

You'd want to use the new version for large EXFAT volumes, seen issues here with 200/400 GB cards

diskio.c

diskio.h

ff.c

ff.h

ffconf.h

ffsystem.c

ffunicode.c

integer.h

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..