Quality RTOS & Embedded Software

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


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 ]    [ 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.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

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.


Careers

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

Renesas

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