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

User avatar
By hdrut
#54451
CARPP wrote:Same thing here! I updated to the latest release from CHERTS (23th of august). Code compiles and uploads successfully but i get only garbage on my serial terminal. Any help / fix is very much appreciated.



I solved my problems by changing Makefile parameter SPI_SIZE_MAP ?= 4

Let me know if this helps.

Greetings.
User avatar
By oezcanacar
#54465 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
User avatar
By tomeko
#54472
hdrut wrote:I solved my problems by changing Makefile parameter SPI_SIZE_MAP ?= 4
Let me know if this helps.


It helped me, thanks (as RF calibration uses sector from the end of flash - selected flash size is important even in small projects).
User avatar
By hdrut
#54473
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



Also change the addresses of init files to 0x3F... like this (this worked for me):

# FLASH SIZE
flashinit:
$(vecho) "Flash init data default and blank data."
$(ESPTOOL) -p $(ESPPORT) write_flash $(flashimageoptions) 0x3fc000 $(SDK_BASE)/bin/esp_init_data_default.bin 0x3fe000 $(SDK_BASE)/bin/blank.bin