SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
Table 41-181 lists the memory-mapped registers for the MPU registers. All register offset addresses not listed in Table 41-181 should be considered as reserved locations and the register contents should not be modified.
| Offset | Acronym | Register Name | Write Protection | Section |
|---|---|---|---|---|
| D90h | MPU_TYPE | MPU Type Register | Go | |
| D94h | MPU_CTRL | MPU Control Register | Go | |
| D98h | MPU_RNR | MPU Region Number Register | Go | |
| D9Ch | MPU_RBAR | MPU Region Base Address Register | Go | |
| DA0h | MPU_RASR | MPU Region Attribute and Size Register | Go | |
| DA4h | MPU_RBAR_A1 | Alias of RBAR | Go | |
| DA8h | MPU_RASR_A1 | Alias of RASR | Go | |
| DACh | MPU_RBAR_A2 | Alias of RBAR | Go | |
| DB0h | MPU_RASR_A2 | Alias of RASR | Go | |
| DB4h | MPU_RBAR_A3 | Alias of RBAR | Go | |
| DB8h | MPU_RASR_A3 | Alias of RASR | Go |
Complex bit access types are encoded to fit into small table cells. Table 41-182 shows the codes that are used for access types in this section.
| Access Type | Code | Description |
|---|---|---|
| Read Type | ||
| R | R | Read |
| Write Type | ||
| W | W | Write |
| Reset or Default Value | ||
| -n | Value after reset or the default value | |
| Register Array Variables | ||
| i,j,k,l,m,n | When these variables are used in a register name, an offset, or an address, they refer to the value of a register array where the register is part of a group of repeating registers. The register groups form a hierarchical structure and the array is represented with a formula. | |
| y | When this variable is used in a register name, an offset, or an address it refers to the value of a register array. | |
MPU_TYPE is shown in Figure 41-164 and described in Table 41-183.
Return to the Summary Table.
MPU Type Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | |||||||
| R-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| IREGION | |||||||
| R-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| DREGION | |||||||
| R-8h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | SEPARATE | ||||||
| R-0h | R-0h | ||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-24 | RESERVED | R | 0h | Reserved |
| 23-16 | IREGION | R | 0h | Indicates the number of supported MPU instruction regions.
Always contains 0x00. The MPU memory map is unified and is described by the DREGION field. Reset type: CM.SYSRESETn |
| 15-8 | DREGION | R | 8h | Indicates the number of supported MPU data regions:
0x08 = Eight MPU regions. Reset type: CM.SYSRESETn |
| 7-1 | RESERVED | R | 0h | Reserved |
| 0 | SEPARATE | R | 0h | Indicates support for unified or separate instruction and date memory maps:
0 = unified. Reset type: CM.SYSRESETn |
MPU_CTRL is shown in Figure 41-165 and described in Table 41-184.
Return to the Summary Table.
MPU Control Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | |||||||
| R-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RESERVED | |||||||
| R-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| RESERVED | |||||||
| R-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | PRIVDEFENA | HFNMIENA | ENABLE | ||||
| R-0h | R/W-0h | R/W-0h | R/W-0h | ||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-3 | RESERVED | R | 0h | Reserved |
| 2 | PRIVDEFENA | R/W | 0h | Enables privileged software access to the default memory map:
0 = If the MPU is enabled, disables use of the default memory map. Any memory access to a location not covered by any enabled region causes a fault. 1 = If the MPU is enabled, enables use of the default memory map as a background region for privileged software accesses. When enabled, the background region acts as if it is region number -1. Any region that is defined and enabled has priority over this default map. If the MPU is disabled, the processor ignores this bit. Reset type: CM.SYSRESETn |
| 1 | HFNMIENA | R/W | 0h | Enables the operation of MPU during hard fault, NMI, and FAULTMASK handlers.
When the MPU is enabled: 0 = MPU is disabled during hard fault, NMI, and FAULTMASK handlers, regardless of the value of the ENABLE bit 1 = the MPU is enabled during hard fault, NMI, and FAULTMASK handlers. When the MPU is disabled, if this bit is set to 1 the behavior is Unpredictable. Reset type: CM.SYSRESETn |
| 0 | ENABLE | R/W | 0h | Enables the MPU:
0 = MPU disabled 1 = MPU enabled. Reset type: CM.SYSRESETn |
MPU_RNR is shown in Figure 41-166 and described in Table 41-185.
Return to the Summary Table.
MPU Region Number Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | REGION | ||||||||||||||||||||||||||||||
| R-0h | R/W-0h | ||||||||||||||||||||||||||||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-8 | RESERVED | R | 0h | Reserved |
| 7-0 | REGION | R/W | 0h | Indicates the MPU region referenced by the MPU_RBAR and MPU_RASR registers. The MPU supports 8 memory regions, so the permitted values of this field are 0-7. Reset type: CM.SYSRESETn |
MPU_RBAR is shown in Figure 41-167 and described in Table 41-186.
Return to the Summary Table.
MPU Region Base Address Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| ADDR | |||||||
| R/W-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| ADDR | |||||||
| R/W-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| ADDR | |||||||
| R/W-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| ADDR | VALID | REGION | |||||
| R/W-0h | R/W-0h | R/W-0h | |||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-5 | ADDR | R/W | 0h | Region base address field. The ADDR field is bits[31:N] of the MPU_RBAR. The region size, as specified by the SIZE field in the MPU_RASR, defines the value of N: N = Log2(Region size in bytes), If the region size is configured to 4GB, in the MPU_RASR, there is no valid ADDR field. In this case, the region occupies the complete memory map, and the base address is 0x00000000. The base address is aligned to the size of the region. For example, a 64KB region must be aligned on a multiple of 64KB, for example, at 0x00010000 or 0x00020000. Reset type: CM.SYSRESETn |
| 4 | VALID | R/W | 0h | MPU Region Number valid bit:
Write: 0 = MPU_RNR not changed, and the processor: updates the base address for the region specified in the MPU_RNR ignores the value of the REGION field 1 = the processor: updates the value of the MPU_RNR to the value of the REGION field updates the base address for the region specified in the REGION field. Always reads as zero. Reset type: CM.SYSRESETn |
| 3-0 | REGION | R/W | 0h | MPU region field:
For the behavior on writes, see the description of the VALID field. On reads, returns the current region number, as specified by the RNR. Reset type: CM.SYSRESETn |
MPU_RASR is shown in Figure 41-168 and described in Table 41-187.
Return to the Summary Table.
MPU Region Attribute and Size Register
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | XN | RESERVED | AP | ||||
| R-0h | R/W-0h | R-0h | R/W-0h | ||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RESERVED | TEX | S | C | B | |||
| R-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | |||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| SRD | |||||||
| R/W-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | SIZE | ENABLE | |||||
| R-0h | R/W-0h | R/W-0h | |||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-29 | RESERVED | R | 0h | Reserved |
| 28 | XN | R/W | 0h | Instruction access disable bit:
0 = instruction fetches enabled 1 = instruction fetches disabled. Reset type: CM.SYSRESETn |
| 27 | RESERVED | R | 0h | Reserved |
| 26-24 | AP | R/W | 0h | AP[2:0] Privileged permissions Unprivileged permissions Description 000 No access No access All accesses generate a permission fault 001 RW No access Access from privileged software only 010 RW RO Writes by unprivileged software generate a permission fault 011 RW RW Full access 100 Unpredictable Unpredictable Reserved 101 RO No access Reads by privileged software only 110 RO RO Read only, by privileged or unprivileged software 111 RO RO Read only, by privileged or unprivileged software Reset type: CM.SYSRESETn |
| 23-22 | RESERVED | R | 0h | Reserved |
| 21-19 | TEX | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 18 | S | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 17 | C | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 16 | B | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 15-8 | SRD | R/W | 0h | Subregion disable bits. For each bit in this field:
0 = corresponding sub-region is enabled 1 = corresponding sub-region is disabled Region sizes of 128 bytes and less do not support subregions. When writing the attributes for such a region, write the SRD field as 0x00. Reset type: CM.SYSRESETn |
| 7-6 | RESERVED | R | 0h | Reserved |
| 5-1 | SIZE | R/W | 0h | Specifies the size of the MPU protection region. The SIZE field defines the size of the MPU memory region specified by the RNR. as follows: (Region size in bytes) = 2(SIZE+1) Example SIZE field values: 0b00100 (4) 32B 5 Minimum permitted size 0b01001 (9) 1KB 10 - 0b10011 (19) 1MB 20 - 0b11101 (29) 1GB 30 - 0b11111 (31) 4GB 32 Maximum possible size Reset type: CM.SYSRESETn |
| 0 | ENABLE | R/W | 0h | Region enable bit. Reset type: CM.SYSRESETn |
MPU_RBAR_A1 is shown in Figure 41-169 and described in Table 41-188.
Return to the Summary Table.
Alias of RBAR
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| ADDR | |||||||
| R/W-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| ADDR | |||||||
| R/W-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| ADDR | |||||||
| R/W-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| ADDR | VALID | REGION | |||||
| R/W-0h | R/W-0h | R/W-0h | |||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-5 | ADDR | R/W | 0h | Region base address field. The ADDR field is bits[31:N] of the MPU_RBAR. The region size, as specified by the SIZE field in the MPU_RASR, defines the value of N: N = Log2(Region size in bytes), If the region size is configured to 4GB, in the MPU_RASR, there is no valid ADDR field. In this case, the region occupies the complete memory map, and the base address is 0x00000000. The base address is aligned to the size of the region. For example, a 64KB region must be aligned on a multiple of 64KB, for example, at 0x00010000 or 0x00020000. Reset type: CM.SYSRESETn |
| 4 | VALID | R/W | 0h | MPU Region Number valid bit:
Write: 0 = MPU_RNR not changed, and the processor: updates the base address for the region specified in the MPU_RNR ignores the value of the REGION field 1 = the processor: updates the value of the MPU_RNR to the value of the REGION field updates the base address for the region specified in the REGION field. Always reads as zero. Reset type: CM.SYSRESETn |
| 3-0 | REGION | R/W | 0h | MPU region field:
For the behavior on writes, see the description of the VALID field. On reads, returns the current region number, as specified by the RNR. Reset type: CM.SYSRESETn |
MPU_RASR_A1 is shown in Figure 41-170 and described in Table 41-189.
Return to the Summary Table.
Alias of RASR
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | XN | RESERVED | AP | ||||
| R-0h | R/W-0h | R-0h | R/W-0h | ||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RESERVED | TEX | S | C | B | |||
| R-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | |||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| SRD | |||||||
| R/W-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | SIZE | ENABLE | |||||
| R-0h | R/W-0h | R/W-0h | |||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-29 | RESERVED | R | 0h | Reserved |
| 28 | XN | R/W | 0h | Instruction access disable bit:
0 = instruction fetches enabled 1 = instruction fetches disabled. Reset type: CM.SYSRESETn |
| 27 | RESERVED | R | 0h | Reserved |
| 26-24 | AP | R/W | 0h | AP[2:0] Privileged permissions Unprivileged permissions Description 000 No access No access All accesses generate a permission fault 001 RW No access Access from privileged software only 010 RW RO Writes by unprivileged software generate a permission fault 011 RW RW Full access 100 Unpredictable Unpredictable Reserved 101 RO No access Reads by privileged software only 110 RO RO Read only, by privileged or unprivileged software 111 RO RO Read only, by privileged or unprivileged software Reset type: CM.SYSRESETn |
| 23-22 | RESERVED | R | 0h | Reserved |
| 21-19 | TEX | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 18 | S | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 17 | C | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 16 | B | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 15-8 | SRD | R/W | 0h | Subregion disable bits. For each bit in this field:
0 = corresponding sub-region is enabled 1 = corresponding sub-region is disabled Region sizes of 128 bytes and less do not support subregions. When writing the attributes for such a region, write the SRD field as 0x00. Reset type: CM.SYSRESETn |
| 7-6 | RESERVED | R | 0h | Reserved |
| 5-1 | SIZE | R/W | 0h | Specifies the size of the MPU protection region. The SIZE field defines the size of the MPU memory region specified by the RNR. as follows: (Region size in bytes) = 2(SIZE+1) Example SIZE field values: 0b00100 (4) 32B 5 Minimum permitted size 0b01001 (9) 1KB 10 - 0b10011 (19) 1MB 20 - 0b11101 (29) 1GB 30 - 0b11111 (31) 4GB 32 Maximum possible size Reset type: CM.SYSRESETn |
| 0 | ENABLE | R/W | 0h | Region enable bit. Reset type: CM.SYSRESETn |
MPU_RBAR_A2 is shown in Figure 41-171 and described in Table 41-190.
Return to the Summary Table.
Alias of RBAR
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| ADDR | |||||||
| R/W-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| ADDR | |||||||
| R/W-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| ADDR | |||||||
| R/W-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| ADDR | VALID | REGION | |||||
| R/W-0h | R/W-0h | R/W-0h | |||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-5 | ADDR | R/W | 0h | Region base address field. The ADDR field is bits[31:N] of the MPU_RBAR. The region size, as specified by the SIZE field in the MPU_RASR, defines the value of N: N = Log2(Region size in bytes), If the region size is configured to 4GB, in the MPU_RASR, there is no valid ADDR field. In this case, the region occupies the complete memory map, and the base address is 0x00000000. The base address is aligned to the size of the region. For example, a 64KB region must be aligned on a multiple of 64KB, for example, at 0x00010000 or 0x00020000. Reset type: CM.SYSRESETn |
| 4 | VALID | R/W | 0h | MPU Region Number valid bit:
Write: 0 = MPU_RNR not changed, and the processor: updates the base address for the region specified in the MPU_RNR ignores the value of the REGION field 1 = the processor: updates the value of the MPU_RNR to the value of the REGION field updates the base address for the region specified in the REGION field. Always reads as zero. Reset type: CM.SYSRESETn |
| 3-0 | REGION | R/W | 0h | MPU region field:
For the behavior on writes, see the description of the VALID field. On reads, returns the current region number, as specified by the RNR. Reset type: CM.SYSRESETn |
MPU_RASR_A2 is shown in Figure 41-172 and described in Table 41-191.
Return to the Summary Table.
Alias of RASR
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | XN | RESERVED | AP | ||||
| R-0h | R/W-0h | R-0h | R/W-0h | ||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RESERVED | TEX | S | C | B | |||
| R-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | |||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| SRD | |||||||
| R/W-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | SIZE | ENABLE | |||||
| R-0h | R/W-0h | R/W-0h | |||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-29 | RESERVED | R | 0h | Reserved |
| 28 | XN | R/W | 0h | Instruction access disable bit:
0 = instruction fetches enabled 1 = instruction fetches disabled. Reset type: CM.SYSRESETn |
| 27 | RESERVED | R | 0h | Reserved |
| 26-24 | AP | R/W | 0h | AP[2:0] Privileged permissions Unprivileged permissions Description 000 No access No access All accesses generate a permission fault 001 RW No access Access from privileged software only 010 RW RO Writes by unprivileged software generate a permission fault 011 RW RW Full access 100 Unpredictable Unpredictable Reserved 101 RO No access Reads by privileged software only 110 RO RO Read only, by privileged or unprivileged software 111 RO RO Read only, by privileged or unprivileged software Reset type: CM.SYSRESETn |
| 23-22 | RESERVED | R | 0h | Reserved |
| 21-19 | TEX | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 18 | S | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 17 | C | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 16 | B | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 15-8 | SRD | R/W | 0h | Subregion disable bits. For each bit in this field:
0 = corresponding sub-region is enabled 1 = corresponding sub-region is disabled Region sizes of 128 bytes and less do not support subregions. When writing the attributes for such a region, write the SRD field as 0x00. Reset type: CM.SYSRESETn |
| 7-6 | RESERVED | R | 0h | Reserved |
| 5-1 | SIZE | R/W | 0h | Specifies the size of the MPU protection region. The SIZE field defines the size of the MPU memory region specified by the RNR. as follows: (Region size in bytes) = 2(SIZE+1) Example SIZE field values: 0b00100 (4) 32B 5 Minimum permitted size 0b01001 (9) 1KB 10 - 0b10011 (19) 1MB 20 - 0b11101 (29) 1GB 30 - 0b11111 (31) 4GB 32 Maximum possible size Reset type: CM.SYSRESETn |
| 0 | ENABLE | R/W | 0h | Region enable bit. Reset type: CM.SYSRESETn |
MPU_RBAR_A3 is shown in Figure 41-173 and described in Table 41-192.
Return to the Summary Table.
Alias of RBAR
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| ADDR | |||||||
| R/W-0h | |||||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| ADDR | |||||||
| R/W-0h | |||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| ADDR | |||||||
| R/W-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| ADDR | VALID | REGION | |||||
| R/W-0h | R/W-0h | R/W-0h | |||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-5 | ADDR | R/W | 0h | Region base address field. The ADDR field is bits[31:N] of the MPU_RBAR. The region size, as specified by the SIZE field in the MPU_RASR, defines the value of N: N = Log2(Region size in bytes), If the region size is configured to 4GB, in the MPU_RASR, there is no valid ADDR field. In this case, the region occupies the complete memory map, and the base address is 0x00000000. The base address is aligned to the size of the region. For example, a 64KB region must be aligned on a multiple of 64KB, for example, at 0x00010000 or 0x00020000. Reset type: CM.SYSRESETn |
| 4 | VALID | R/W | 0h | MPU Region Number valid bit:
Write: 0 = MPU_RNR not changed, and the processor: updates the base address for the region specified in the MPU_RNR ignores the value of the REGION field 1 = the processor: updates the value of the MPU_RNR to the value of the REGION field updates the base address for the region specified in the REGION field. Always reads as zero. Reset type: CM.SYSRESETn |
| 3-0 | REGION | R/W | 0h | MPU region field:
For the behavior on writes, see the description of the VALID field. On reads, returns the current region number, as specified by the RNR. Reset type: CM.SYSRESETn |
MPU_RASR_A3 is shown in Figure 41-174 and described in Table 41-193.
Return to the Summary Table.
Alias of RASR
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
| RESERVED | XN | RESERVED | AP | ||||
| R-0h | R/W-0h | R-0h | R/W-0h | ||||
| 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| RESERVED | TEX | S | C | B | |||
| R-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | |||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
| SRD | |||||||
| R/W-0h | |||||||
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| RESERVED | SIZE | ENABLE | |||||
| R-0h | R/W-0h | R/W-0h | |||||
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 31-29 | RESERVED | R | 0h | Reserved |
| 28 | XN | R/W | 0h | Instruction access disable bit:
0 = instruction fetches enabled 1 = instruction fetches disabled. Reset type: CM.SYSRESETn |
| 27 | RESERVED | R | 0h | Reserved |
| 26-24 | AP | R/W | 0h | AP[2:0] Privileged permissions Unprivileged permissions Description 000 No access No access All accesses generate a permission fault 001 RW No access Access from privileged software only 010 RW RO Writes by unprivileged software generate a permission fault 011 RW RW Full access 100 Unpredictable Unpredictable Reserved 101 RO No access Reads by privileged software only 110 RO RO Read only, by privileged or unprivileged software 111 RO RO Read only, by privileged or unprivileged software Reset type: CM.SYSRESETn |
| 23-22 | RESERVED | R | 0h | Reserved |
| 21-19 | TEX | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 18 | S | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 17 | C | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 16 | B | R/W | 0h | TEX C B S Memory type Shareability Other attributes 0b000 0 0 x Strongly-ordered Shareable - 0 1 x Device Shareable - 1 0 0 Normal Not shareable Outer and inner write-through. No write allocate. 1 0 1 Shareable 1 1 0 Normal Not shareable Outer and inner write-back. No write allocate. 1 1 1 Shareable 0b001 0 0 0 Normal Not shareable Outer and inner noncacheable. 0 0 1 Shareable 0 1 x Reserved encoding - 1 0 x Implementation defined attributes. - 1 1 0 Normal Not shareable Outer and inner write-back. Write and read allocate. 1 1 1 Shareable 0b010 0 0 x Device Not shareable Nonshared Device. 0 1 x Reserved encoding - 1 x x Reserved encoding - 0b1BB A A 0 Normal Not shareable Cached memory, BB = outer policy, AA = inner policy. Encoding, AA or BB Corresponding cache policy 00 Non-cacheable 01 Write back, write and read allocate 10 Write through, no write allocate 11 Write back, no write allocate 1 Shareable and BB bits. Reset type: CM.SYSRESETn |
| 15-8 | SRD | R/W | 0h | Subregion disable bits. For each bit in this field:
0 = corresponding sub-region is enabled 1 = corresponding sub-region is disabled Region sizes of 128 bytes and less do not support subregions. When writing the attributes for such a region, write the SRD field as 0x00. Reset type: CM.SYSRESETn |
| 7-6 | RESERVED | R | 0h | Reserved |
| 5-1 | SIZE | R/W | 0h | Specifies the size of the MPU protection region. The SIZE field defines the size of the MPU memory region specified by the RNR. as follows: (Region size in bytes) = 2(SIZE+1) Example SIZE field values: 0b00100 (4) 32B 5 Minimum permitted size 0b01001 (9) 1KB 10 - 0b10011 (19) 1MB 20 - 0b11101 (29) 1GB 30 - 0b11111 (31) 4GB 32 Maximum possible size Reset type: CM.SYSRESETn |
| 0 | ENABLE | R/W | 0h | Region enable bit. Reset type: CM.SYSRESETn |