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] [July 2007 Threads] vTaskDeletePosted by Chaks on July 4, 2007 I have created two task. first task i want to delete from second task's entry function. but i m not able to delete it.
What can be the reasons?
RE: vTaskDeletePosted by embeddedc on July 4, 2007 What did you try doing? How do you know its not deleted?
Are you letting the idle task get some processing time?
RE: vTaskDeletePosted by Chaks on July 5, 2007 I varified from task list that it is still alive. why idle task should get CPU time?
RE: vTaskDeletePosted by Patrick DEFLANDRE on July 5, 2007 This is what we can read from the FreeRTOS API vTaskDelete page :
NOTE: The idle task is responsible for freeing the kernel allocated memory from tasks that have been deleted. It is therefore important that the idle task is not starved of microcontroller processing time if your application makes any calls to vTaskDelete (). Memory allocated by the task code is not automatically freed, and should be freed before the task is deleted.
See the demo application file death. c for sample code that utilises vTaskDelete ().
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|