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] [December 2005 Threads] xTaskResumeAll - Endless loopPosted by Nobody/Anonymous on December 19, 2005 I'm using LPC2148 and freeRTOSV3.2.4.
It works fine for a whole bunch of tasks. But if I start now anothoer one I get into this while loop in xTaskResumeAll after a while:
/* If any ticks occurred while the scheduler was suspended then they should be processed now. This ensures the tick count does not slip, and that any delayed tasks are resumed at the correct time. */ if( uxMissedTicks > ( unsigned portBASE_TYPE ) 0 ) { while( uxMissedTicks > ( unsigned portBASE_TYPE ) 0 ) { vTaskIncrementTick(); --uxMissedTicks; }
It doesn't return from this loop anymore, so RTOS is blocked. I'm just starting a simple task more like:
for(;;) { vTaskDelay(20); }
If i don't start this task, my application works fine. I don't have an idea what I have done wrong.
Can you help me?
Thanks, Stefan
RE: xTaskResumeAll - Endless loopPosted by Nobody/Anonymous on December 19, 2005 Most likely memory corruption. Check the stacks of your tasks have not overflowed. Also, try stepping through the creation of the offending task to check it can obtain the memory it requires.
RE: xTaskResumeAll - Endless loopPosted by John W. on December 20, 2005 I agree.
You said you allocated a whole bunch of tasks. Each task takes stack space - you can deplete available memory with too many tasks.
How many tasks have you created? What is the amount of stack space allocated for each task? How much memory can your application address?
These types of problems are usually simple to figure out - so that's the good news I suppose. The bad news is that you many not be able to allocate all of the tasks you require with the memory available.
Good Luck, John W.
RE: xTaskResumeAll - Endless loopPosted by Nobody/Anonymous on December 20, 2005 Thanks a lot. I'll check out the memory allocation and I'm sure I'll get this thing working. Thanks for helping me, kind regards Stefan
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|