I have downloaded the ESP8266 SDK from https://github.com/pfalcon/esp-open-sdk.
After installing it, I also installed the:
https://github.com/Superhouse/esp-open-rtos.git (not sure if I had to install it).
Inside the esp-open-rtos/examples/blinky folder, there is the make file that points to:
include ../../common.mk
On the common.mk file, there is the following target:
flash: all
$(ESPTOOL) -p $(ESPPORT) --baud $(ESPBAUD) write_flash $(ESPTOOL_ARGS) \
0x0 $(RBOOT_BIN) 0x1000 $(RBOOT_CONF) 0x2000 $(FW_FILE) $(SPIFFS_ESPTOOL_ARGS)
This is actually the following command:
esptool.py -p /dev/ttyUSB0 --baud 115200 write_flash -fs 32m -fm qio -ff 40m \
0x0 ../../bootloader/firmware_prebuilt/rboot.bin 0x1000 ../../bootloader/firmware_prebuilt/blank_config.bin 0x2000 ./firmware/blink.bin
My question is, why it uploads data at 0x2000 address?
If I look at the Esspressif manual (http://espressif.com/sites/default/files/documentation/2a-esp8266-sdk_getting_started_guide_en.pdf), there is nowhere stating about address 0x2000 either in the OTA firmware or the Non-OTA firmware.
Personally, for my 4 MBytes ESP board (Adafruit Huzzah), I would expect the tool to flash my software to either 0x1000 address, or something like address 0x81000.
Why is the blink.bin loaded at 0x2000 address? Am I missing something?
Thank you very much.