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] [September 2015 Threads] Stack Overflow problemPosted by tmostad on September 9, 2015 I have a running app that has a significant amount of code in main and I am trying to split off some of into a separate task but I an encountering a stack overflow. I have assigned a lot more stack to the new task than the main task had when in incoorporated the same code. I commented out the main loop of the new task and it starts fine so this is definitely a stack requirment of the executing code. I suppose I'll try commenting out parts of the new task to see if there is something within it causing the stack to overflow but it is still perplexing that this same code ran fine winthin main. Any ideas?
Stack Overflow problemPosted by edwards3 on September 9, 2015 Could it be something in your new or old task is causing a data corruption now they are split from each other, and the data that is being corrupted happens to be the task stack? So not a real stack overflow?
Stack Overflow problemPosted by richard_damon on September 9, 2015 Often if main() overrun the stack, it might just hit the tail of the heap which might not make cause any problem (Depends on the compiler/linker). A task will have its stack created on the 'heap' and if it overflows will tend to be right next to something important.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|