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] [January 2006 Threads] Data Aborts, unexpected results, crashes!Posted by Janaka on January 12, 2006 First of all let me say that FreeRTOS is a Great project!
Problem: I was doing some USB stuff on a AT91SAM7S64 when I was getting Data Aborts (dabtvec), Prefech Aborts (pabtvec) and other unexpected results and eventual crashes (hangups).
Cause: Lack of task stack space. I was setting the task stacks to 100 (in SAM7 it is 100x4 bytes). My estimations of local variable calculations were correct BUT the GOTCHA was the functional depth. I totally ignored the stack usage when functions are called. As you get deeper it uses more stack to store your parameters etc.
Solution: Increased the stack size. Its working like a charm since then!
Cheers
RE: Data Aborts, unexpected results, crashes!Posted by Nobody/Anonymous on January 13, 2006 Thanks for the feedback.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|