I need to identify, which task has been interrupted.
Normally this functionality is not necessary, but in the protection fault handler it is very useful to know which task has been failed before restarting device. The failing task name could be recorded and reported after restart.
/** This function returns a current task name. */
const signed portCHAR *xCurrentTaskGetNameFromISR(void)
if(pxCurrentTCB==NULL) return NULL;
I am not sure whether it is possible to suspend this task (if a task is not critical e.g. www server) and continue with normal operation.