I want to configure The Memory Protection Unit S12XMPUV1 to accomplish the following: Capture any illicit writes to the RAM containing the XGATE code. Capture any illicit writes by the XGATE to RAM not allocated to it. Capture any illicit writes by the S12 core to RAM not allocated to it. Capture any attempt by XGATE to execute code from FLASH/RAM not allocated to it for execution. Capture any attempt by S12 core to execute code from FLASH/RAM not allocated to it for execution.
can somebody give me a rough draft of the sequence on how this is done? i also want a function to MONITOR STACK OVERFLOW aside from capturing any illegal access errors from the MPU.
any algo, flowchart or rough diagram is appreciated...