fix(esp8266): Fix esp8266 load RTC segment when reset from deep sleep

Now only 1MB flash is mapped to SoC bus.
This commit is contained in:
dongheng
2019-03-15 10:04:39 +08:00
parent 3c68b66934
commit eef781f9b9
4 changed files with 56 additions and 11 deletions

View File

@ -178,10 +178,17 @@
#define IRAM_SIZE (48 * 1024)
#define FLASH_BASE (0x40200000)
#define FLASH_SIZE (16 * 1024 * 1024)
#define FLASH_SIZE (1 * 1024 * 1024)
#define RTC_SYS_BASE (0x60001000)
#define RTC_SYS_SIZE (0x200)
#define RTC_USER_BASE (0x60001200)
#define RTC_USER_SIZE (0x200)
#define IS_DRAM(a) ((size_t)(a) >= DRAM_BASE && (size_t)(a) < (DRAM_BASE + DRAM_SIZE))
#define IS_IRAM(a) ((size_t)(a) >= IRAM_BASE && (size_t)(a) < (IRAM_BASE + IRAM_SIZE))
#define IS_FLASH(a) ((size_t)(a) >= FLASH_BASE && (size_t)(a) < (FLASH_BASE + FLASH_SIZE))
#define IS_USR_RTC(a) ((size_t)(a) >= RTC_USER_BASE && (size_t)(a) < (RTC_USER_BASE + RTC_USER_SIZE))
#endif //_EAGLE_SOC_H_