esp32: SPIRAM Support
Adds SPIRAM support for ESP32 Configures k_heap for SPIRAM memory range Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
This commit is contained in:
parent
61a2e8cee3
commit
67d2368398
3 changed files with 182 additions and 2 deletions
|
@ -45,6 +45,9 @@ MEMORY
|
|||
drom0_0_seg(R): org = 0x3F400020, len = 0x400000-0x20
|
||||
rtc_iram_seg(RWX): org = 0x400C0000, len = 0x2000
|
||||
rtc_slow_seg(RW): org = 0x50000000, len = 0x1000
|
||||
#if defined(CONFIG_ESP_SPIRAM)
|
||||
ext_ram_seg(RW): org = 0x3F800000, len = CONFIG_ESP_SPIRAM_SIZE
|
||||
#endif
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
IDT_LIST(RW): org = 0x3ebfe010, len = 0x2000
|
||||
#endif
|
||||
|
@ -250,6 +253,15 @@ _net_buf_pool_list = _esp_net_buf_pool_list;
|
|||
. = ALIGN(4);
|
||||
} GROUP_LINK_IN(RAMABLE_REGION)
|
||||
|
||||
#if defined(CONFIG_ESP_SPIRAM)
|
||||
.ext_ram.bss (NOLOAD):
|
||||
{
|
||||
_ext_ram_data_start = ABSOLUTE(.);
|
||||
*(.ext_ram.bss*)
|
||||
_ext_ram_data_end = ABSOLUTE(.) + CONFIG_ESP_SPIRAM_SIZE;
|
||||
} > ext_ram_seg
|
||||
#endif
|
||||
|
||||
SECTION_PROLOGUE(_RODATA_SECTION_NAME,,ALIGN(20))
|
||||
{
|
||||
_rodata_start = ABSOLUTE(.);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue