Skip to main content
alex_embedded
Associate III
April 18, 2019
Question

Updating fatfs in a project

  • April 18, 2019
  • 2 replies
  • 2082 views

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

This topic has been closed for replies.

2 replies

alex_embedded
Associate III
April 18, 2019

*UPDATE*

Just found the version that is in cubemx.

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

Tesla DeLorean
Guru
April 18, 2019

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..