2016-11-15 07:08 AM
Hi, Chan has updated FatFs to version 0.12B but the bundled FatFs in CubeF0-F7 are all sitting on v0.11.
The reason I want to update to 0.12B is because of exFAT support for USB Flash memory.I have tried to work out what changes were made to the original Chan FatFs library to port it over to STM32 MSC but it seems the ST implementation is based on some other sub branch somewhere between version 0.10C an 0.11 bot not exactly any of these. Does ST Plan to update the bundled FatFs library?If not, what where the steps involved in creating the ST version of the library in terms of what was the source code used for the starting point and what modifications were made?Any help on this would be greatly appreciated.Regards,Bob.2016-11-15 10:36 AM
Historically most of the platform specific portions of FatFs have been in the DISKIO.C file, where it reads/writes blocks/sectors to the underlying media.
2017-01-09 06:49 PM
As I just came here because I had the same question:
Does that mean I can overwrite the provided FatFS files with the new ones from elm-chan and manually implement the ST drivers for my SD card?
Has anybody done this successfully?
2017-03-14 08:31 AM
I actually have the same problem. I tested the 0.12c version supporting the exFAT filesystem and it seems to work fine.
The problem is the licencing, exFAT must be licenced by Microsoft and I'm quite sure it's not for free...Are you aware of any ST-Microsoft agreement about that?2017-03-14 06:39 PM
Dear Valentin,
I migrated FatFs v0.12c with latest patch on CubeF7v1.6.0 and works fine.
Just swap older one for newer one(may be little change need on ffconf.h).Best Regards,
Nemui.2017-03-16 05:04 AM
Integration of newer FatFS-Versions is not a Problem, yes.
But the Hint to the Licence is really important for commercial or in other Way distributed Products. You can disable the exFAT-Support in the File ffconf.h with
#define _FS_EXFAT 0�?�?�?
keep it at 0
This should solve the Licence-Problem ... or not? In optimized Code the exFAT-Parts should be not compiled in. In not optimized Code they (maybe) compiled in but not used. So I'm not really sure about a possible Infringement.
2017-03-16 06:29 AM
>This should solve the Licence-Problem ... or not?
It should, in fact the FatFS website (
) indicates this:----Note that the exFAT is a patent of Microsoft Corporation. The exFAT function of FatFs is an implementation based on US. Pat. App. Pub. No. 2009/0164440 A1. FatFs module can swich the exFAT on/off by configuration option. When enable the exFAT on the commercial products, you will need to be licensed by Microsoft depends on the final destination of the products.----