diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-03 15:40:53 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-03 15:45:14 +0300 |
commit | 8d2bcaf3cdf5f908dd44bf822b65d807c8215bcc (patch) | |
tree | f9385db2274cb7765cacd899756d6d4eae5352a1 /esp8266/Makefile | |
parent | 9698a60591b47798e24040d61df809f9d6e3584b (diff) | |
download | micropython-8d2bcaf3cdf5f908dd44bf822b65d807c8215bcc.tar.gz micropython-8d2bcaf3cdf5f908dd44bf822b65d807c8215bcc.zip |
esp8266: Minimize gap between Inst/DataRAM segments and FlashROM segment.
With .rodata being in FlashROM now, gap can be much smaller now. InstRAM
can be max 32K, and with segment headers, that already makes it more than
32K. Then there's some .data still, and the next Flash page boundary is
0x9000. That figure should be more or less future-proof.
TODO: Refactor makeimg to take FlashROM segment offset from file name.
Diffstat (limited to 'esp8266/Makefile')
-rw-r--r-- | esp8266/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile index 3bb63dd873..6790d5f744 100644 --- a/esp8266/Makefile +++ b/esp8266/Makefile @@ -150,7 +150,7 @@ $(BUILD)/frozen.c: $(wildcard $(SCRIPTDIR)/*) $(CONFVARS_FILE) deploy: $(BUILD)/firmware-combined.bin $(ECHO) "Writing $< to the board" #$(Q)esptool.py --port $(PORT) write_flash 0 $< - $(Q)esptool.py --port $(PORT) --baud $(BAUD) write_flash --flash_size=8m 0 $(BUILD)/firmware.elf-0x00000.bin 0x10000 $(BUILD)/firmware.elf-0x10000.bin + $(Q)esptool.py --port $(PORT) --baud $(BAUD) write_flash --flash_size=8m 0 $(BUILD)/firmware.elf-0x00000.bin 0x9000 $(BUILD)/firmware.elf-0x0[1-f]000.bin reset: echo -e "\r\nimport pyb; pyb.hard_reset()\r\n" >$(PORT) @@ -158,7 +158,7 @@ reset: $(BUILD)/firmware-combined.bin: $(BUILD)/firmware.elf $(ECHO) "Create $@" $(Q)esptool.py elf2image $^ - $(Q)$(PYTHON) makeimg.py $(BUILD)/firmware.elf-0x00000.bin $(BUILD)/firmware.elf-0x10000.bin $@ + $(Q)$(PYTHON) makeimg.py $(BUILD)/firmware.elf-0x00000.bin $(BUILD)/firmware.elf-0x0[1-f]000.bin $@ $(BUILD)/firmware.elf: $(OBJ) $(ECHO) "LINK $@" |