CORTEX_MPU Example Description

Presentation of the MPU feature. This example configures a memory area as privileged read-only, and attempts to perform read and write operations in different modes.

If the access is permitted LED4 is toggling. If the access is not permitted, a memory management fault is generated and LED4 is ON.

To generate an MPU memory fault exception due to an access right error, press user button.

Notes

Using STM32CubeIDE debugger, when hard fault is generated user shall press the debugger “Run” button to continue the execution

Keywords

MPU, interrupt, MPU memory fault exception,

Directory contents

Hardware and Software environment

How to use it ?

In order to make the program work, you must do the following :