feat(esp8266): Add rtc segment in ld file

This commit is contained in:
Wu Jian Gang
2018-06-01 15:29:10 +08:00
parent 5ce23a7039
commit 58e6abc3ad
2 changed files with 22 additions and 4 deletions

View File

@ -18,8 +18,17 @@
MEMORY
{
dport0_0_seg : org = 0x3FF00000, len = 0x10
dram0_0_seg : org = 0x3FFE8000, len = 0x18000
iram1_0_seg : org = 0x40100000, len = 0x8000
irom0_0_seg : org = 0x40201010, len = 0xE0000
dport0_0_seg : org = 0x3FF00000, len = 0x10
/* All .data/.bss/heap are in this segment. */
dram0_0_seg : org = 0x3FFE8000, len = 0x18000
/* Functions which are critical should be put in this segment. */
iram1_0_seg : org = 0x40100000, len = 0x8000
/* It is actually mapped to flash. */
irom0_0_seg : org = 0x40201010, len = 0xFF000 - 0x10
/* RTC memory, persists over deep sleep. */
rtc_seg : org = 0x60001200, len = 0x200
}