Task Delete issue in free Rtos

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Task Delete issue in free Rtos

1,896 次查看
Vamsi421
Contributor II

Hi,

I am using NXPS32k344 Board in my project. In my project  i am using free rtos to run my program. In my program i am running three different tasks with different priorities, while i am trying to delete one of my Task using  vTaskDelete(NULL) function my program is stucked  at  configASSERT( pv == NULL ); in heap_1.c file.

0 项奖励
回复
1 回复

1,867 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Vamsi421,

The answer is in the screenshot you posted (heap_1.c)

/* Memory cannot be freed using this scheme. See heap_2.c, heap_3.c and
* heap_4.c for alternative implementations, and the memory management pages of
* https://www.FreeRTOS.org for more information. */

Use heap_2, for example.

danielmartynek_0-1721386471685.png

 

Regards,

Daniel

 

0 项奖励
回复