I was hoping to call uxTaskGetSystemState() from my stack overflow and hard fault functions, but I get a configAssert().
Near the bottom of uxTaskGetSystemState(), there is a call to xTaskResumeAll(), and taskENTER_CRITICAL() calls vPortEnterCritical(), which asserts because we are in an interrupt context.
uxTaskGetSystemState() is a great function! I was hoping to use it for more troubleshooting information when I had a fault or bug.
Thanks for any help!
Atmel SAM4S from IAR.