- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Executing Task delete causes an infinite loop in portFORCE_INLINE static void vPortRaiseBASEPRI( void ) of "portmacro.h".
The "#define INCLUDE_vTaskDelete" is 1 in "FreeRTOSConfig.h".
Please tell me how to resolve.
Best regards,
Yocchi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yocchi-san,
Thank you for sharing the simple project for us to easily debug!
The reason the FreeRTOS application reaches a fault condition is because you are using vTaskDelete() with Heap 1 memory allocation scheme. Heap 1 does not support task delete function -
I changed the memory allocation scheme to Heap 4 and added code to delete the task only once and vTaskDelete() API worked for me. I have attached the entire project for your reference.
Hope this helps,
Thanks and Regards,
Rakshith M B
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yocchi-san,
Thank you for sharing the simple project for us to easily debug!
The reason the FreeRTOS application reaches a fault condition is because you are using vTaskDelete() with Heap 1 memory allocation scheme. Heap 1 does not support task delete function -
I changed the memory allocation scheme to Heap 4 and added code to delete the task only once and vTaskDelete() API worked for me. I have attached the entire project for your reference.
Hope this helps,
Thanks and Regards,
Rakshith M B
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Rakshith M B-san,
Thank you very much.
I was able to task delete by selecting heap_4.c.
Best regards,
Yocchi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yocchi-san,
Thank you for the update on the thread. Glad your issue is resolved
Best Regards,
Rakshith M B
Rakshith M B