While debugging my last problem I noticed that process stack limit (psplim) is also used on the supporting architectures(CM23 and CM33 with trustzone), but connected ISRs went to default handlers instead of going to vApplicationStackOverflowHook.
Are there any plans to directly handle those ISRs in the future?
Although maybe it is best to let the application developer handle those exceptions directly. So the ARMv8-M port would continue not to call vApplicationStackOverflowHook() at all. FreeRTOS isn’t really involved in detecting stack overflow on this platform, so that’s one way to look at it.
Well it is involved already because it DOES set psplim (what I do appreciate since there is no way this could be sensibly added from outside the kernel). So starting from there I think it would only be a logical completion to also offer a default Usage Fault Handler implementation which maps back to the standard interface.
I think in the moment configCHECK_FOR_STACK_OVERFLOW
is only overhead on the CM33 port since there is no way to reach this without faulting before.