The MPU (Memory Protection Unit) driver module is a driver for ARM Cortex-M Memory Protection Unit (MPU).
MPU has multiple regions which can be used to detect access to a block of RAM memory (for example, to detect stack violation). The module manages access to regions and validates input parameters. Command Line Interface commands can be used to get the current state of MPU regions.
In order to protect a block of memory, an MPU region must be created. Destroying the region removes protection and releases the region.
The macro NRF_MPU_LIB_CLI_CMDS is used to enable commands. To view the available commands, run mpu –help
.