Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


FreeRTOS+FAT SL: limited to one open file???

Posted by thkusch on January 21, 2014


I'm trying the FreeRTOS+FAT SL on an Atmel SAM3. I used another FS library until now but it's quite dated and discontinued. The scenario is that up to 100 files have to be kept opened. After a test run and a closer look on the f_open function I noticed that it won't work. The downloadable version of FAT SL is only able to have one file opened at a time. I cannot find any information about this limitation on the freertos web page nor am I able to find any information if there is a commercial "unlocked" version. Does anyone have an idea?

Best regards, Thomas

FreeRTOS+FAT SL: limited to one open file???

Posted by rtel on January 21, 2014

The file system you are looking at is the 'super lean' system. As in all file systems (and networking stacks, etc.) there are engineering trade offs that can be made between performance, functionality and footprint. The super lean version is at the extreme of minimising the footprint. There are other file systems in the family that compromise the footprint (i.e. use more ROM and RAM) to improve performance, and even provide some fail safe functionality and in those you can open multiple files and multiple volumes - but they are not free I'm afraid (nor are they provided by Real Time Engineers Ltd directly).


FreeRTOS+FAT SL: limited to one open file???

Posted by xz8987f on January 22, 2014

Looks like you are using the 'Petite FAT File System' (http://elm-chan.org/fsw/ff/00indexp.html) which has several limitations. If you want to open multiple files/etc, you need the full-blown FatFS (http://elm-chan.org/fsw/ff/00indexe.html)

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers


STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner