![]() |
nRF5 SDK
v15.2.0
|
Choose documentation: | nRF5 SDK | S112 SoftDevice API | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API |
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_CLI_CMDS is used to enable commands. To view the available commands, run mpu –help
.