Skip to content

Commit

Permalink
soc: xtensa: esp32s3: Add external ram noinit section
Browse files Browse the repository at this point in the history
Add section to allocate memory of WiFi and NET stack in SPIRAM

Signed-off-by: Lucas Tamborrino <[email protected]>
  • Loading branch information
LucasTambor committed Jul 25, 2023
1 parent 33be1f9 commit d007997
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion soc/xtensa/espressif_esp32/esp32s3/default.ld
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,20 @@ SECTIONS
{
_ext_ram_bss_start = ABSOLUTE(.);
*(.ext_ram.bss*)
. = ALIGN(0x10000);
. = ALIGN(4);
_ext_ram_bss_end = ABSOLUTE(.);
} > ext_ram_seg

.ext_ram_noinit (NOLOAD) :
{
#if defined(CONFIG_ESP32_WIFI_NET_ALLOC_SPIRAM)
*libdrivers__wifi.a:(.noinit .noinit.*)
*libsubsys__net__l2__ethernet.a:(.noinit .noinit.*)
*libsubsys__net__lib__config.a:(.noinit .noinit.*)
*libsubsys__net__ip.a:(.noinit .noinit.*)
*libsubsys__net.a:(.noinit .noinit.*)
#endif
} > ext_ram_seg
#endif

/* Send .iram0 code to iram */
Expand Down

0 comments on commit d007997

Please sign in to comment.