Fix bug for reserved memory regions

1. Release 16KB memory of reserved regions to heap
2. Modify the dram_seg address of bootloader to 0x3FFF8000, size is 16K
This commit is contained in:
jiangguangming 2019-09-05 19:00:14 +08:00
parent bd29202520
commit c057c141eb
2 changed files with 3 additions and 3 deletions

View file

@ -16,8 +16,8 @@ MEMORY
/* IRAM POOL1, used for APP CPU cache. Bootloader runs from here during the final stage of loading the app because APP CPU is still held in reset, the main app enables APP CPU cache */
iram_loader_seg (RWX) : org = 0x40022000, len = 0x2000 /* 8KB, APP CPU cache */
iram_seg (RWX) : org = 0x40024000, len = 0x4000 /* 16KB, IRAM */
/* 12k at the end of DRAM, after ROM bootloader stack */
dram_seg (RW) : org = 0x3FFF5000, len = 0x3000
/* 16k at the end of DRAM, after ROM bootloader stack */
dram_seg (RW) : org = 0x3FFF8000, len = 0x4000
}
/* Default entry point: */

View file

@ -122,7 +122,7 @@ extern int _data_start_xtos;
These are removed from the soc_memory_regions array when heaps are created.
*/
//ROM data region
SOC_RESERVE_MEMORY_REGION(0x3fff8000, (intptr_t)&_data_start_xtos, rom_data_region);
SOC_RESERVE_MEMORY_REGION(0x3fffc000, (intptr_t)&_data_start_xtos, rom_data_region);
// TODO: soc_memory_layout: handle trace memory regions - IDF-750