esp32: Add config options in Kconfig.board, remove _heap_start symbol
This commit adds config options for supporting multiple memory allocation using k_malloc() Update west.yml with hal_espressif change Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
This commit is contained in:
parent
67d2368398
commit
a24707a4bd
2 changed files with 29 additions and 2 deletions
|
@ -22,12 +22,40 @@ config ESP32_BT_RESERVE_DRAM
|
|||
default 0xdb5c if BT
|
||||
default 0
|
||||
|
||||
config ESP_HEAP_MEM_POOL_REGION_1_SIZE
|
||||
int "Internal DRAM region 1 mempool size"
|
||||
default 49152
|
||||
help
|
||||
ESP32 has two banks of size 192K and 128K which can be used
|
||||
as DRAM, system heap allocates area from region 0.
|
||||
This configuration can be used to add memory from region 1
|
||||
to heap and can be allocated using k_malloc.
|
||||
|
||||
config ESP_SPIRAM
|
||||
bool "Support for external, SPI-connected RAM"
|
||||
help
|
||||
This enables support for an external SPI RAM chip, connected in
|
||||
parallel with the main SPI flash chip.
|
||||
|
||||
config ESP_HEAP_MIN_EXTRAM_THRESHOLD
|
||||
int "Minimum threshold for external RAM allocation"
|
||||
default 8192
|
||||
range 1024 131072
|
||||
depends on ESP_SPIRAM
|
||||
help
|
||||
Threshold to decide if memory will be allocated from DRAM
|
||||
or SPIRAM. If value of allocation size is less than this value,
|
||||
memory will be allocated from internal RAM.
|
||||
|
||||
config ESP_HEAP_SEARCH_ALL_REGIONS
|
||||
bool "Search for all available heap regions"
|
||||
depends on ESP_SPIRAM
|
||||
default y
|
||||
help
|
||||
This configuration enables searching all available heap
|
||||
regions. If the region of desired capability is exhausted,
|
||||
memory will be allocated from other available region.
|
||||
|
||||
menu "SPI RAM config"
|
||||
depends on ESP_SPIRAM
|
||||
|
||||
|
|
|
@ -468,7 +468,6 @@ __shell_root_cmds_end = __esp_shell_root_cmds_end;
|
|||
*(.noinit)
|
||||
*(".noinit.*")
|
||||
. = ALIGN (8);
|
||||
_heap_start = ABSOLUTE(.);
|
||||
} GROUP_LINK_IN(RAMABLE_REGION_1)
|
||||
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue