This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM263P4-Q1: How to Stop/Suspend a Task from an Exception Handler

Part Number: AM263P4-Q1

When calling an RTOS/SDK task-stop API (e.g., vTaskSuspend, TaskP_destruct) from an exception handler (Data Abort / Prefetch Abort / Undefined Exception), the call does not return. How can we stop/suspend a task from an exception handler or from RTOS hook functions (e.g., vApplicationStackOverflowHook, vApplicationMallocFailedHook)?