Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By oezcanacar
#54499
oezcanacar wrote:Hi,

that did not work for me. For the hello world sample I see a lot of garbage on the terminal. If I change the baud rate to 78600, this is seen:

Code: Select allchksum 0xcc
load 0x3ffe8380, len 332, room 4
tail 8
chksum 0xdd
csum 0xdd
rf_cal[0] !=0x05,is 0xFF

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 27304, room 16
tail 8
chksum 0x0a
load 0x3ffe8000, len 884, room 0
tail 4
chksum 0xcc
load 0x3ffe8380, len 332, room 4
tail 8
chksum 0xdd
csum 0xdd
rf_cal[0] !=0x05,is 0xFF

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 27304, room 16
tail 8
chksum 0x0a
load 0x3ffe8000, len 884, room 0
tail 4
chksum 0xcc
load 0x3ffe8380, len 332, room 4
tail 8
chksum 0xdd
csum 0xdd
rf_cal[0] !=0x05,is 0xFF

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 27304, room 16
tail 8
chksum 0x0a
load 0x3ffe8000, len 884, room 0
tail 4
chksum 0xcc
load 0x3ffe8380, len 332, room 4
tail 8
chksum 0xdd
csum 0xdd
rf_cal[0] !=0x05,is 0xFF



Any idea, how to eliminate this issue?

Thanks



Turns out, that the base address of the eagle.irom0text.bin file is set wrong in Makefile.

Should be 40000 and not 10000

ifeq ($(app), 0)
$(ESPTOOL) -p $(ESPPORT) -b $(BAUD) write_flash $(flashimageoptions) 0x00000 $(FW_BASE)/eagle.flash.bin 0x40000 $(FW_BASE)/eagle.irom0text.bin
else
ifeq ($(boot), none)
$(ESPTOOL) -p $(ESPPORT) -b $(BAUD) write_flash $(flashimageoptions) 0x00000 $(FW_BASE)/eagle.flash.bin 0x40000 $(FW_BASE)/eagle.irom0text.bin
User avatar
By Singman
#54514 I'm using that kit under windows but I should modify a few batch because tools are under a dir named ESP8266 :D
BTW, I need a reference to know what base address to use when using different boards (I have ESP8266-12E 4Mb and ESP8266-100 8Mb).
User avatar
By CARPP
#54515 This is my flashinit segment in the Makefile (address of "esp_init_data_default.bin" already was at 0x3fc000):

flashinit:
$(vecho) "Flash init data:"
$(vecho) "Default config (Clear SDK settings):"
$(vecho) "blank.bin-------->0x3e000"
$(vecho) "blank.bin-------->0x3fc000"
$(vecho) "esp_init_data_default.bin-------->0x3fc000"
$(ESPTOOL) -p $(ESPPORT) write_flash $(flashimageoptions) \
0x3e000 $(SDK_BASE)/bin/blank.bin \
0x3fc000 $(SDK_BASE)/bin/esp_init_data_default.bin \
0x3fe000 $(SDK_BASE)/bin/blank.bin



And this:

SPI_SIZE_MAP ?= 4


Changing the SPI_SIZE_MAP didn't do anything :(
User avatar
By hdrut
#54517 Take a good look at your code:

$(vecho) "blank.bin-------->0x3fc000"
$(vecho) "esp_init_data_default.bin-------->0x3fc000" - See more at: posting.php?mode=reply&f=9&t=820#sthash.Wb5G7Ltq.dpuf


you are apparently writing both files to same address 0x3fc000.

Try using the addresses I suggested.