Download Print this page

Espressif ESP32 Technical Reference Manual page 619

Hide thumbs Also See for ESP32:

Advertisement

27 Memory Management and Protection Units (MMU, MPU)
Name
Size
4 MB
V Addr
0
4 MB
V Addr
1
4 MB
V Addr
2
4 MB
V Addr
3
1 MB
V Addr
4
4 MB
V Addr
RAM
* The configuration entries for address range 0x4000_0000 ~ 0x403F_FFFF are implemented and doc-
umented as if it were a full 4 MB address range, but it is not accessible as such. Instead, the address range
0x4000_0000 ~ 0x400C_1FFF accesses on-chip memory. This means that some of the configuration entries
for V Addr
will not be used.
1
External Flash
For flash, the relationships among entry numbers, virtual memory ranges, and PIDs are detailed in Tables
10
and 27-11, which for every memory region and PID combination specify the first MMU entry governing the
mapping. This number refers to the MMU entry governing the very first page; the entire region is described by
the amount of pages specified in the 'count' column.
These two tables are essentially the same, with the sole difference being that the APP_CPU entry numbers are
2048 higher than the corresponding PRO_CPU numbers. Note that memory regions V Addr
only accessible using PID 0 and 1, while V Addr
VAddr
Count
64
V Addr
0
64
V Addr
1
64
V Addr
2
64
V Addr
3
16
V Addr
4
VAddr
Count
64
V Addr
0
64
V Addr
1
64
V Addr
2
64
V Addr
3
16
V Addr
4
As these tables show, virtual address V Addr
Espressif Systems
Table 27-9. Virtual Address for External Memory
Boundary address
Low
0x3F40_0000
0x4000_0000
0x4040_0000
0x4080_0000
0x3F40_0000
0x3F80_0000
can only be accessed by PID 2 ~ 7.
4
Table 27-10. MMU Entry Numbers for PRO_CPU
0/1
2
0
-
64
-
128
256
192
320
-
1056
Table 27-11. MMU Entry Numbers for APP_CPU
0/1
2
2048
-
2112
-
2176
2304
2240
2368
-
3104
can only be used by processes with a PID of 0 or 1. There
1
619
Submit Documentation Feedback
High
0x3F7F_FFFF
0x403F_FFFF
0x407F_FFFF
0x40BF_FFFF
0x3F4F_FFFF
0x3FBF_FFFF
First MMU entry for PID
3
4
5
-
-
-
-
-
-
384
512
640
448
576
704
1072
1088
1104
First MMU entry for PID
3
4
5
-
-
-
-
-
-
2432
2560
2688
2496
2624
2752
3120
3136
3152
Page quantity
64
64*
64
64
16
128
27-
and V Addr
are
0
1
6
7
-
-
-
-
768
896
832
960
1120
1136
6
7
-
-
-
-
2816
2944
2880
3008
3168
3184
ESP32 TRM (Version 5.2)

Advertisement

loading
Need help?

Need help?

Do you have a question about the ESP32 and is the answer not in the manual?