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

User avatar
By tytower
#22476 Here is another that's turned up on the forum Cause 2 as above but 3,6 ?
Code: Select allets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 30452, room 16
tail 4
chksum 0xef
load 0x00000000, len 0, room 4
tail 0
chksum 0xef
ho 12 tail 0 room 4
load 0x00000000, len 0, room 12
tail 0
chksum 0xef
User avatar
By tytower
#24217 Found this which is making it clearer
[quote=kolban] Think of the three pins GPIO15, GPIO 0 and GPIO 2 as forming a 3 bit binary number. When then have the value "001", the ESP8266 is in programming mode. When they have the value "011" the device will boot from flash.[/quote]
GPIO15,and GPIO0 need to be low for UART mode so 000 or 001 UART mode.
GPIO15 low and GPIO0 high for FLASH(running) mode. 010 or 011 for FLASH(running) mode


ets Jan 8 2013,rst cause:1, boot mode:(3,7) So 3=011 or FLASH(running)mode
ets Jan 8 2013,rst cause:1, boot mode:(1,7) So 1=001 or UART mode

I think I am getting there , well for one of the numbers at least, now, what do the others all mean ?

cause:1 to at least 4
second number in boot mode 7
User avatar
By tytower
#24264 This from the expressif data sheet http://bbs.espressif.com/download/file.php?id=442 (a spreadsheet)

Boot_sel....SD_sel != 3'b010........................SD_sel == 3'b010
7...............SDIO HighSpeed V2 IO.................Uart1 Booting
6...............SDIO LowSpeed V1 IO.................Uart1 Booting
5...............SDIO HighSpeed V1 IO.................Uart1 Booting
4...............SDIO LowSpeed V2 IO.................Uart1 Booting
3...............FLASH BOOT
2...............Jump Boot
1................UART Boot
0................ Remapping
User avatar
By tytower
#25232 Bit more of the Puzzle

http://bbs.espressif.com/viewtopic.php?t=563

reset cause 1: normally during a Power-On-Reset or by CHIP_PD transient
reset cause 2: normally during a reset caused by a nRESET transient
reset cause 4: normally during a reset by wdt reset

So Im guessing
reset cause 1: normally during a Power-On-Reset or by CHIP_PD transient(CH_PD) low then high
reset cause 2: normally during a reset caused by a nRESET transient(got to look this up)
reset cause 4: normally during a reset by watchdogtimer reset(3.2 seconds of inactivity)