FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [February 2017 Threads]
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,
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
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,
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
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.