Espressif ESP32-S2 Programming Manual page 1431

Table of Contents

Advertisement

Chapter 4. API Guides
_iram_text_start = ABSOLUTE(.);
/* Marker referencing iram0_text */
mapping[iram0_text]
_iram_text_end = ABSOLUTE(.);
} > iram0_0_seg
Suppose the generator collected the fragment definitions below:
[sections:text]
.text+
.literal+
[sections:iram]
.iram1+
[scheme:default]
entries:
text -> flash_text
iram -> iram0_text
[scheme:noflash]
entries:
text -> iram0_text
[mapping:freertos]
archive: libfreertos.a
entries:
* (noflash)
Then the corresponding excerpt from the generated linker script will be as follows:
.iram0.text
:
{
/* Code marked as runnning out of IRAM */
_iram_text_start
/* Placement rules generated from the processed fragments, placed where
marker was in the template */
*(.iram1 .iram1.*)
*libfreertos.a:(.literal .text
_iram_text_end
=
}
>
iram0_0_seg
*libfreertos.a:(.literal .text .literal.* .text.*)
Rule generated from the entry * (noflash) of the freertos mapping fragment. All text sections
of all object files under the archive libfreertos.a will be collected under the target iram0_text
(as per the noflash scheme) and placed wherever in the template iram0_text is referenced by a
marker.
*(.iram1 .iram1.*)
Rule generated from the default scheme entry iram -> iram0_text. Since the default scheme
specifies an iram -> iram0_text entry, it too is placed wherever iram0_text is referenced
by a marker. Since it is a rule generated from the default scheme, it comes first among all other rules
collected under the same target name.
The linker script template currently used is esp_system/ld/esp32s2/sections.ld.in; the generated output
script sections.ld is put under its build directory.
Espressif Systems
=
ABSOLUTE(.);
.literal.*
ABSOLUTE(.);
1420
Submit Document Feedback
.text.*)
(continued from previous page)
the␣
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents

Save PDF