Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

Using vTaskDelete(), memory remain allocated

Posted by Nobody/Anonymous on February 2, 2007
Hi,
When I call vTaskDelete(NULL) to suicide task, it passes to 'delete' status (i can look it by vTaskList()) but allocated memory is not freed (like i'd want).
Someone can help me?

I am using:
heap3
and
#define INCLUDE_vTaskPrioritySet1
#define INCLUDE_uxTaskPriorityGet1
#define INCLUDE_vTaskDelete1
#define INCLUDE_vTaskCleanUpResources1
#define INCLUDE_vTaskSuspend1
#define INCLUDE_vTaskDelayUntil1
#define INCLUDE_vTaskDelay1
#define INCLUDE_xTaskGetCurrentTaskHandle 1

Bye.

RE: Using vTaskDelete(), memory remain allocated

Posted by Nobody/Anonymous on February 2, 2007
memory is free by prvCheckTasksWaitingTermination in idle task

RE: Using vTaskDelete(), memory remain allocated

Posted by Nobody/Anonymous on February 5, 2007
Thank you a lot.
Your hint reminded me that I used a while(1) in the idle task => prvCheckTasksWaitingTermination never was called.

Thanks again.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS