Memory Protection Unit (MPU)
enabled, a default memory map is applied. If this feature is not enabled, then a memory manage-
ment fault is generated if the MPU is enabled and no regions are configured and enabled. The MPU
can also be set to use a default memory map when in the Hard Fault or NMI handlers, instead of
using the configured regions. All of these features are selected when calling ROM_MPUEnable().
When the MPU is enabled, it can be disabled by calling ROM_MPUDisable().
14.2 Functions
Functions
void ROM_MPUDisable (void)
void ROM_MPUEnable (uint32_t ui32MPUConfig)
uint32_t ROM_MPURegionCountGet (void)
void ROM_MPURegionDisable (uint32_t ui32Region)
void ROM_MPURegionEnable (uint32_t ui32Region)
void ROM_MPURegionGet (uint32_t ui32Region, uint32_t ∗pui32Addr, uint32_t ∗pui32Flags)
void ROM_MPURegionSet (uint32_t ui32Region, uint32_t ui32Addr, uint32_t ui32Flags)
14.2.1 Function Documentation
14.2.1.1 ROM_MPUDisable
Disables the MPU for use.
Prototype:
void
ROM_MPUDisable(void)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_MPUTABLE is an array of pointers located at ROM_APITABLE[20].
ROM_MPUDisable is a function pointer located at ROM_MPUTABLE[1].
Description:
This function disables the Cortex-M4 memory protection unit. When the MPU is disabled, the
default memory map is used and memory management faults are not generated.
Returns:
None.
14.2.1.2 ROM_MPUEnable
Enables and configures the MPU for use.
Prototype:
void
ROM_MPUEnable(uint32_t ui32MPUConfig)
146 April 8, 2013