Skip to main content
Visitor II
May 22, 2020
Question

FATFS using long file names

  • May 22, 2020
  • 4 replies
  • 1355 views

Is anyone out there using STM32FCube w/ fatfs with LFN (long file names) ? My project works, but I can only get a small file name to work. I have tried all of the settings in FFCONF.h and added ccsbcs.c file.

    This topic has been closed for replies.

    4 replies

    Graduate II
    May 22, 2020

    Last time I check Cube it had bundled a quite stale version of FatFs, 3 years old. When I can I use the newer version with HAL directly as the one provided corrupts large volumes.

    Issues with creating, opening or directories?

    Visitor II
    May 23, 2020

    Like Clive I use a fully updated FATFS and long file name definitely works perfectly. The only thing missing in the latest version is support for relative pathnames with an exFAT format disk but I've engineered a way round this by tracking the working directory external to FATFS.

    LBarn.1Author
    Visitor II
    May 23, 2020
    • Ok, what is the latest version and where can I get it?
    Graduate II
    May 23, 2020
    LBarn.1Author
    Visitor II
    May 27, 2020

    Thanks for your help. I had a few changes to make and finally got a successful compile. Still having some issues. What changes to ffconf.h need to be made for long file names and multiple directories?