I want to use the stack pointer monitor to determine which thread crashed the system as explained in the following discussions
But it seems there is no stack pointer monitor in RA4M3. Can anyone suggest an equivalent mechanism to trace the same thing?
The Cortex M33 has the stack limit checking as part of the CPU core, so there is no need for a separate peripheral
Arm Cortex-M33 Devices Generic User Guide r1p0
The Core will generate a UsageFault exception :-
Did you enable the fault handlers :-
https://developer.arm.com/documentation/100235/0100/The-Cortex-M33-Peripherals/System-Control-Block/System-Handler-Control-and-State-Register
SCB->SHCSR |= (SCB_SHCSR_USGFAULTENA_Msk…