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 26, 2023
1 parent e027520 commit 2cd6bd6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions soc/xtensa/espressif_esp32/esp32s3/default.ld
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,17 @@ SECTIONS
. = 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 2cd6bd6

Please sign in to comment.