How to handle a FreeRTOS task crash.

brahmajit
Posts: 24
Joined: Wed Sep 08, 2021 10:31 am

How to handle a FreeRTOS task crash.

Postby brahmajit » Tue Nov 23, 2021 5:48 am

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.

ESP_Sprite
Posts: 9749
Joined: Thu Nov 26, 2015 4:08 am

Re: How to handle a FreeRTOS task crash.

Postby ESP_Sprite » Tue Nov 23, 2021 6:47 am

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.

Who is online

Users browsing this forum: No registered users and 129 guests