-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add linker script for external ram for esp32s3
- Loading branch information
1 parent
bb58446
commit fca600f
Showing
7 changed files
with
94 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
|
||
SECTIONS { | ||
.external.data : | ||
{ | ||
_external_data_start = ABSOLUTE(.); | ||
_external_no_heap_start = ABSOLUTE(.); | ||
. = ALIGN(4); | ||
*(.external.data .external.data.*) | ||
_external_data_end = ABSOLUTE(.); | ||
} > psram_seg AT > RODATA | ||
|
||
.external.bss (NOLOAD) : | ||
{ | ||
_external_bss_start = ABSOLUTE(.); | ||
. = ALIGN(4); | ||
*(.external.bss .external.bss.*) | ||
_external_bss_end = ABSOLUTE(.); | ||
} > psram_seg | ||
|
||
.external.noinit (NOLOAD) : | ||
{ | ||
. = ALIGN(4); | ||
*(.external.noinit .external.noinit.*) | ||
} > psram_seg | ||
|
||
/* must be last segment using psram_seg */ | ||
.external_heap_start (NOLOAD) : | ||
{ | ||
. = ALIGN (4); | ||
_external_heap_start = ABSOLUTE(.); | ||
} > psram_seg | ||
} | ||
|
||
_external_ram_start = ABSOLUTE(ORIGIN(psram_seg)); | ||
_external_ram_end = ABSOLUTE(ORIGIN(psram_seg)+LENGTH(psram_seg)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* This section is required to skip flash rodata sections, because `psram_seg` | ||
* and `drom_seg` are on the same bus | ||
*/ | ||
|
||
SECTIONS { | ||
.ext_ram_dummy (NOLOAD) : | ||
{ | ||
. = ORIGIN(psram_seg) + (_rodata_reserved_end - _rodata_dummy_start); | ||
|
||
/* Prepare the alignment of the section above | ||
*/ | ||
|
||
. = ALIGN(0x10000); | ||
} > psram_seg | ||
} | ||
INSERT BEFORE .external.data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ SECTIONS { | |
{ | ||
. = ALIGN(4); | ||
*( .rodata_wlog_*.* ) | ||
_rodata_reserved_end = ABSOLUTE(.); | ||
. = ALIGN(4); | ||
} > RODATA | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters