uos3 / obc-firmware

UoS³ Flight Computer Firmware
https://uos3.github.io/obc-firmware/
MIT License
5 stars 5 forks source link

Enable MPU to watch memory sections #3

Open philcrump opened 7 years ago

philcrump commented 7 years ago

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.