esp32: Allow fixed static RAM size and DRAM heap size

Merges https://github.com/espressif/esp-idf/pull/3222
This commit is contained in:
Gautier Seidel
2019-03-25 15:45:57 +01:00
committed by Angus Gratton
parent 5274739fff
commit 542e544faa
6 changed files with 46 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ extern soc_reserved_region_t soc_reserved_memory_region_end;
These variables have the start and end of the data and static IRAM
area used by the program. Defined in the linker script.
*/
extern int _data_start, _bss_end, _iram_start, _iram_end;
extern int _data_start, _static_data_end, _iram_start, _iram_end;
/* static DRAM & IRAM chunks */
static const size_t EXTRA_RESERVED_REGIONS = 2;
@@ -68,7 +68,7 @@ static void s_prepare_reserved_regions(soc_reserved_region_t *reserved, size_t c
/* Add the EXTRA_RESERVED_REGIONS at the beginning */
reserved[0].start = (intptr_t)&_data_start; /* DRAM used by data+bss */
reserved[0].end = (intptr_t)&_bss_end;
reserved[0].end = (intptr_t)&_static_data_end;
reserved[1].start = (intptr_t)&_iram_start; /* IRAM used by code */
reserved[1].end = (intptr_t)&_iram_end;