hello
I am writing a test that tests the MPU configuration. If a violate a MPU-region-setting, I get a data-abort, as expected.
I have been searching for a code-example, that shows, how data-aborts are handled. Is something like this available?
If not, I would appreciate a code-snippet that shows the following:
1 detect the reason for the data-abort (e.g. MPU-fault)
2 depending on the reason, continue execution of the MPU-test or
3 reset the processor
4 after the reset of the processor, the program shall be able to figure out what the reset reason was. By readind the SYSESR register I only get limited information, Is there a way of determining the reset reason in more detail (e.g. MPU-Fault causing data-abort)?
Best regards
Flurin