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




Loading

FreeRTOS-Plus-FAT >

Posted by plek324 on February 29, 2016

When NOT using long file name, compile errors occur on ffdir.c, because in two occasions ffconfigLFNSUPPORT is not checked on it's value, but whether it is defined or not. But by including "FreeRTOSFATConfigDefaults.h" ffconfigLFN_SUPPORT is always defined.


FreeRTOS-Plus-FAT >

Posted by heinbali01 on February 29, 2016

Hi Peter,

Thanks very much for noticing this, you are right. this is a configuration (ffconfigLFN_SUPPORT == 0) that was tested less often.

In ff_dir.c, about line 1221, please change the following:

-#if defined( ffconfigLFN_SUPPORT )
+#if( ffconfigLFN_SUPPORT != 0)

That is the only occurrence I see in "FreeRTOS+FAT Labs Build 160112" that I encountered. Did you see a second one?

I just tested a project with:

#define ffconfigLFN_SUPPORT         0

but it works just as well.

Regards.


FreeRTOS-Plus-FAT >

Posted by plek324 on March 1, 2016

Hi, it seems that you have differend code that I. I have build 160112 here. At line line 1221 in ff_dir.c I have:

~~~~ 1221:#ifndef ffconfigLFNSUPPORT 1222: BaseTypet xLFNCount; 1223:#endif ~~~~ I changed this to:

~~~~

if( ffconfigLFN_SUPPORT==0 )
BaseType_t xLFNCount;
endif

~~~~

And there is also a reference on line 556: ~~~~ #if defined( ffconfigLFNSUPPORT ) { xLFNTotal = 0; } #endif /* ffconfigLFNSUPPORT / ~~~~ which I changed to: ~~~~ #if ( ffconfigLFN_SUPPORT!=0 ) { xLFNTotal = 0; } #endif / ffconfigLFN_SUPPORT */ ~~~~

With those two changes I was able to build the project. I haven't tested anything else, as I have to write a SPI driver to get any futher.


[ 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