The microcontroller's Memory Protection Unit (MPU) should be configured to watch for Stack/Heap/other access violations (eg. overflows).
On a violation it will throw a memory fault exception, this could be handled by the program to either disable a process, report an error, or trigger a reset.
The microcontroller's Memory Protection Unit (MPU) should be configured to watch for Stack/Heap/other access violations (eg. overflows).
On a violation it will throw a memory fault exception, this could be handled by the program to either disable a process, report an error, or trigger a reset.