Skip to main content
Visitor II
January 6, 2021
Question

FATFS f_open returns invalid file name

  • January 6, 2021
  • 2 replies
  • 1735 views

Hi all

I'm reading wave files from sd-card using FATFS library. So far everything is working fine but if I want to open any file whose name contains any number for e.g.

8BitAudio.wav, Audio8Bit.wav etc (here the number is 8)

the f_open function returns me invalid file name. Is it a common thing that f_open doesn't like numbers in a file name or do I have to configure something in the FATFS middleware (.ioc file) to solve this problem.

Thanks

    This topic has been closed for replies.

    2 replies

    Graduate II
    January 6, 2021

    Can't say I've tried this myself.

    ST usually ships a very old version, might want to check that first.

    Check that long file names are enabled.

    Mr ZEEAuthor
    Visitor II
    January 6, 2021

    I was thinking of enabling the long file names before but didn't play around with this bit because "8BitAudio" (9 chars only) doesn't look long. Anyways enabling long file names does the trick. Thanks