Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training


How to enable support for long filenames

Posted by bartjes on September 19, 2016

I've found the FreeRTOS +FAT with optional support of long filenames (http://www.freertos.org/FreeRTOS-Plus/FreeRTOSPlusFAT/index.html) so that was my trigger to start evaluating it on my Nordic NRF52 eval kit. I use Eclipse & GCC on a Windows 7 64-bit machine to evaulate the FreeRTOS version 9.0.0 FAT functionality. A Micro-SD card holder has been hand-soldered (including pull-up resistors) onto some GPIO pins that are configured for SPI use on the Nordic platform.

The RAM driver example worked so I used that to create an (micro-) SD card driver over SPI, also working fine now. However, any file I create has uppercase characters when viewed in Windows explorer and I cannot seem to use filenames longer than 8 characters + 3 character extension. I can live with uppercase filenames but really would like to use longer filenames than this. I found that increasing FMAXNAME to 100 characters in fatsl.h does not bring a solution.

So the main question is: How do I enable the 'optional' support for long filenames ?

How to enable support for long filenames

Posted by rtel on September 19, 2016

I think you might be confusing two different file systems.

FreeRTOS+FAT has optional long file name support: http://www.freertos.org/fat

but fatsl.h is not a FreeRTOS+FAT header file, it is a "FreeRTOS+FAT SL" header file: http://www.freertos.org/fatsl

The SL stands for 'Super Lean', and is limited in functionality. Despite its similar name, the code base has nothing in common with the full FAT file system implementation as its a completely different code base.

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

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists