Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Simultaneously opened files in FatFS?

Hi there!

Back again with another question. Now that I've finaly managed to get the Bitmap image to show on the display (ST7735), I noticed the playback of audio from the SD card stops when the image is opened and being written to the display.

In contrary of the ESP-IDF, in which one can easily define the maximum amount of simultaneously opened files, I couldn't find such a setting with the nRF5 SDK. Does anyone have a clue where I could find such a setting?

Oh and by the way, I'm using the nRF5 SDK with the SDK for Mesh and FreeRTOS.

Kind regards,

Jochem

Parents Reply Children
  • Hi Awneil,

    Yep, that's true. I checked ffconf.h in external/fatfs/src and made sure _FS_LOCK is set to at least 2. I found some more configuration variables that someone had succes with, but to no avail.

    #define _FS_TINY 0
    #define _FS_READONLY 0 
    #define _FS_MINIMIZE 1 
    #define _USE_STRFUNC 2 
    #define _USE_FASTSEEK 1 
    #define _CODE_PAGE 1 
    #define _FS_RPATH 1 
    #define _VOLUMES 1
    #define _MAX_SS 512
    #define _WORD_ACCESS 0 
    #define _FS_SHARE 0

    No luck. The problem remains the same.

    Kind regards,

    Jochem

Related