ABSTRACT

This chapter discusses the ARM Cortex-M4 memory protection unit (MPU). It provides an overview about the MPU and discusses all control registers used for the MPU. The chapter discusses the MPU-related API functions provided by the MSPWare Peripheral Driver Library. In some simple applications, the MPU can be programmed to protect certain memory regions only, for example, to make some memory regions read only. In MSP432P401R MCU system, the memory map and the programming split the memory map into different regions. In most real applications, the MPU is not required. By default, the MPU is disabled and the MCU system works as if the MPU does not exists. The MSPWare Peripheral Driver Library provides 11 MPU-related API functions to configure, enable, set, and get required memory regions for the MPU. A real example project is provided to illustrate how to use the MPU to perform desired protection functions for the selected memory regions.