Skip to content

Commit

Permalink
Clarify the Flash MMU usage in README.md, update esp32h2 memory layou…
Browse files Browse the repository at this point in the history
…t *.svg, move section .rodata1 to .rodata
  • Loading branch information
roma-jam committed Sep 20, 2023
1 parent 0041ed1 commit 2581f91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ The run-time memory layout and flash binary image layout shown above are achieve

![img/esp32h2-directboot.svg](img/esp32h2-directboot.svg)

ROM bootloader maps the 0 – 4 MB region of flash to the CPU address space: to the "ROM" region using the data cache and the instruction cache.
ROM bootloader maps the 0 – 4 MB region of flash to the CPU address space using the cache and the Flash MMU.

The memory layout can be found in liker script ([ld/esp32h2/memory.ld](ld/esp32h2/memory.ld)).

Expand Down
2 changes: 1 addition & 1 deletion img/esp32h2-directboot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 1 addition & 6 deletions ld/esp32h2/common.ld
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,10 @@ SECTIONS

.rodata :
{
*(.rodata .rodata.* .srodata .srodata.* .sdata2 .sdata2.* .gnu.linkonce.r.*)
*(.rodata .rodata1 .rodata.* .srodata .srodata.* .sdata2 .sdata2.* .gnu.linkonce.r.*)
*(.rela.data .rela.data.* .rela.gnu.linkonce.r.*)
} > rom

.rodata1 :
{
*(.rodata1)
} > rom

.init_array :
{
PROVIDE_HIDDEN (__init_array_start = .);
Expand Down

0 comments on commit 2581f91

Please sign in to comment.