Page 1 of 1

How to handle a FreeRTOS task crash.

Posted: Tue Nov 23, 2021 5:48 am
by brahmajit
Hi,
I'm looking for a way to handle FreeRTOS task crash and gracefully restart the task after freeing the resources. I would be helpful if someone helped, I've tried googling but nothing came up. I even looked for any relevant API in ESP32's FreeRTOS documentation wiki, may be I've missed something please feel free to point out.

Thanks in advanced.

Re: How to handle a FreeRTOS task crash.

Posted: Tue Nov 23, 2021 6:47 am
by ESP_Sprite
You can't. A FreeRTOS task is not an Unix or Windows process: while processes live in separate memory spaces, tasks share a memory space (same as threads under Windows/Unix/...). There is no way of telling what memory belongs to which task, and as such if a task does not clean up its own memory, no way of externally doing that for them.