From 3e05df7fd1038d1e733559a7c180ac7da20b2aa6 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 12 May 2017 15:58:19 +0300 Subject: esp8266/modesp: flash_user_start: Use value from linker script. Make esp8266_common.ld export size reserved to all code segments, and use that in esp.flash_user_start() implementation. --- esp8266/esp8266_common.ld | 2 ++ 1 file changed, 2 insertions(+) (limited to 'esp8266/esp8266_common.ld') diff --git a/esp8266/esp8266_common.ld b/esp8266/esp8266_common.ld index 1da835681..bc983df70 100644 --- a/esp8266/esp8266_common.ld +++ b/esp8266/esp8266_common.ld @@ -19,6 +19,8 @@ EXTERN(_KernelExceptionVector) EXTERN(_NMIExceptionVector) EXTERN(_UserExceptionVector) +_firmware_size = ORIGIN(irom0_0_seg) + LENGTH(irom0_0_seg) - 0x40200000; + PROVIDE(_memmap_vecbase_reset = 0x40000000); /* Various memory-map dependent cache attribute settings: */ -- cgit v1.2.3