EasyManuals Logo
Home>Texas Instruments>Microcontrollers>Tiva TM4C123GH6PM

Texas Instruments Tiva TM4C123GH6PM User Manual

Texas Instruments Tiva TM4C123GH6PM
352 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #147 background imageLoading...
Page #147 background image
Memory Protection Unit (MPU)
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_MPUEnable is a function pointer located at ROM_MPUTABLE[0].
Parameters:
ui32MPUConfig is the logical OR of the possible configurations.
Description:
This function enables the Cortex-M4 memory protection unit. It also configures the default
behavior when in privileged mode and while handling a hard fault or NMI. Prior to enabling the
MPU, at least one region must be set by calling ROM_MPURegionSet() or else by enabling
the default region for privileged mode by passing the MPU_CONFIG_PRIV_DEFAULT flag to
ROM_MPUEnable(). Once the MPU is enabled, a memory management fault is generated for
any memory access violations.
The ui32MPUConfig parameter should be the logical OR of any of the following:
MPU_CONFIG_PRIV_DEFAULT enables the default memory map when in privileged
mode and when no other regions are defined. If this option is not enabled, then there
must be at least one valid region already defined when the MPU is enabled.
MPU_CONFIG_HARDFLT_NMI enables the MPU while in a hard fault or NMI exception
handler. If this option is not enabled, then the MPU is disabled while in one of these
exception handlers and the default memory map is applied.
MPU_CONFIG_NONE chooses none of the above options. In this case, no default mem-
ory map is provided in privileged mode, and the MPU will not be enabled in the fault
handlers.
Returns:
None.
14.2.1.3 ROM_MPURegionCountGet
Gets the count of regions supported by the MPU.
Prototype:
uint32_t
ROM_MPURegionCountGet(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_MPURegionCountGet is a function pointer located at ROM_MPUTABLE[2].
Description:
This function is used to get the number of regions that are supported by the MPU. This is the
total number that are supported, including regions that are already programmed.
Returns:
The number of memory protection regions that are available for programming using
ROM_MPURegionSet().
April 8, 2013 147

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments Tiva TM4C123GH6PM and is the answer not in the manual?

Texas Instruments Tiva TM4C123GH6PM Specifications

General IconGeneral
BrandTexas Instruments
ModelTiva TM4C123GH6PM
CategoryMicrocontrollers
LanguageEnglish

Related product manuals