Skip to main content
ABatt.1
Associate III
May 23, 2021 11:10 AM UTC
Solved

How to update FATFS on STM32F103 Package ?

Hi to all,

I need to update from FatFS from R0.11 to R0.12c

In R0.12c there are new implementations compared to 0.11.

I see that for the STM32F401 the FATFS is in version 0.12c.

Is there a way to update the library for the STM32F103 as well?

Thank you.

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
May 23, 2021 1:27 PM UTC

Both are still rather stale.

Older versions should be easy enough to substitute. Replace all the middleware files, and review the settings and match those up.

The newer version s (0.13 / 0.14) will take more effort to adjust the DISKIO layer.

Use a merge tool to understand the differences

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

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
May 23, 2021 1:27 PM UTC

Both are still rather stale.

Older versions should be easy enough to substitute. Replace all the middleware files, and review the settings and match those up.

The newer version s (0.13 / 0.14) will take more effort to adjust the DISKIO layer.

Use a merge tool to understand the differences

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ABatt.1
ABatt.1Author
Associate III
Jul 4, 2021 3:56 PM UTC

HI,

Thanks for your help.

substitute folder in repository works fine ( a part that Cube MX continue in use old ffconf.h, I need to update file every time I regenerate project in Cube MX).

Now I'm facing a hardFault every time was called function validate() in f_Write().

Other fuction works fine: I'm able to mount FAT and create a file.

This is independent of what versione of FATFS I use.

I'm investigating on why hardfault are generated. Someone have some suggestions?