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

FAT-SL Exception in Demo code when F_FS_THREAD_AWARE = 1

Posted by trexmsuee on February 6, 2017

Hi Guys,

I'm fairly new to FreeRTOS. My development environment is:

Atmel Studio 7.0 Atmel SAME70-XPLD demo board (with SAME70Q21 Cortex -M7 processor) FreeRTOS 9.0.0 Percepio Trace 3.1 Using heap_3.c

I will need multiple tasks to access the file system on an uSD card. I've incorporated FAT-SL into my project, and got the default sample code, using the RAM drive, up and running.

Problem ->> if I set FFSTHREAD_AWARE == 1, I get a call to vApplicationStackOverflowHook.

To narrow this down, an exepction is being thrown (somewhere in the bowels of the RTOS), in prvCreateDemoFilesUsingfwrite(), contained within vCreateAndVerifySampleFiles(). I can comment this, and the associated prvVerifyDemoFileUsingfread() out, and it works fine. In other words, I can still leave in prvCreateDemoFileUsingfputc() and prvVerifyDemoFileUsingfgetc() (this is the code used to create the nested subdirectories).

Also, if FFSTHREAD_AWARE = 0, the entirity of the demo code works fine.

I've tired tuning parameters in configfatsl.h, to no avail. I'm unable to exactly pinpoint the exact cause of the exeception, within the sequence of prvCreateDemoFilesUsingfwrite().

I'm assuming this is some issue associated with the port to the -M7. But at this point, I'm getting over my head.

I'd greatly appreciate any advice, or additional troubleshooting steps, anyone could offer.

Thanks much,


FAT-SL Exception in Demo code when F_FS_THREAD_AWARE = 1

Posted by rtel on February 6, 2017

If the stack overflow hook is being called then a task has overflowed its stack. Increase the size of the stack allocated to the offending task: http://www.freertos.org/Stacks-and-stack-overflow-checking.html


FAT-SL Exception in Demo code when F_FS_THREAD_AWARE = 1

Posted by trexmsuee on February 7, 2017

Hi - I changed the stack size of the Idle task to 256 bytes, and all appears happy with the world! I should have thought of this!

I do appreciate your prompt reply!

Best Regards,


FAT-SL Exception in Demo code when F_FS_THREAD_AWARE = 1

Posted by tlafleur on February 7, 2017

A stack of 256 bytes is NOT very large... you may want to turn on FreeRTOS run time stat's during development to watch the stack sizes in your project.

On Tue, Feb 7, 2017 at 12:17 PM, GeraldG trexmsuee@users.sf.net wrote:

Hi - I changed the stack size of the Idle task to 256 bytes, and all appears happy with the world! I should have thought of this!

I do appreciate your prompt reply!

Best Regards,

FAT-SL Exception in Demo code when FFSTHREAD_AWARE = 1

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/freertos/discussion/382005/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~

Tom Lafleur

Attachments

alternate (1745 bytes)


[ 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