<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=ESP8266_Boot</id>
	<title>ESP8266 Boot - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=ESP8266_Boot"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=ESP8266_Boot&amp;action=history"/>
	<updated>2026-06-05T11:37:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=ESP8266_Boot&amp;diff=31593&amp;oldid=prev</id>
		<title>Chao at 07:20, 4 June 2021</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=ESP8266_Boot&amp;diff=31593&amp;oldid=prev"/>
		<updated>2021-06-04T07:20:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Boot Options ==&lt;br /&gt;
                                   | GPIO 0 | GPIO 2 | GPIO 15 (MTDO)&lt;br /&gt;
 ----------------------------------|--------|--------|---------&lt;br /&gt;
 Flash Startup (Normal)            |   1    |   1    |   0&lt;br /&gt;
 UART Download Mode (Programming)  |   0    |   1    |   0&lt;br /&gt;
 SD-Card Boot                      |   0    |   0    |   1&lt;br /&gt;
&lt;br /&gt;
Only use Flash Boot and Download Mode&lt;br /&gt;
                                   | GPIO 0 &lt;br /&gt;
 ----------------------------------|--------&lt;br /&gt;
 Flash Startup (Normal)            |   1    &lt;br /&gt;
 UART Download Mode (Programming)  |   0&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Header text !! Header text !! Header text&lt;br /&gt;
|-&lt;br /&gt;
| ESP-12F || &lt;br /&gt;
* pull GPIO15 low&lt;br /&gt;
* GPIO2 high &lt;br /&gt;
* EN high&lt;br /&gt;
|| GPIO0 for mode&lt;br /&gt;
|-&lt;br /&gt;
| ESP-12S|| -|| GPIO0 for mode&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Enter Into Flash Mode ==&lt;br /&gt;
* Most development board has auto enter into flash mode circuits, more commerial products do not really need this.&lt;br /&gt;
* '''Pull GPIO 0 of ESP8266 before power up or reboot''' to enter into flash mode. -&amp;gt; So simply hold down GPIO 0 and press once reset will enter into flash mode manully.&lt;br /&gt;
* Connect 3.3V/GND/TXD=&amp;gt;RXD/RXD-&amp;gt;TXD to target, recommand [[USB-TTL]] downloader here&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Nwi1072_esp_relay_board_wiring_for_prog.JPG | NWI1072 ESP Relay board, enter into flash mode.&lt;br /&gt;
File:Esp8266 setup 01.png | For our ESP8266 Adapter Board&lt;br /&gt;
File:Serial debug 03.gif | See a GIF here, if you successfully enter into flash mode. &lt;br /&gt;
File:Esp8266_setup_02.png | debug info shows enter into flash mode&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot Debug ==&lt;br /&gt;
&lt;br /&gt;
* Open arduino IDE, and set baud rate to 74880 on serial, can find esp8266 debug info.&lt;br /&gt;
&lt;br /&gt;
 ets Jan  8 2013,rst cause:1, boot mode:(3,6)&lt;br /&gt;
&lt;br /&gt;
 load 0x4010f000, len 1384, room 16 &lt;br /&gt;
 tail 8&lt;br /&gt;
 chksum 0xef&lt;br /&gt;
 csum 0xef&lt;br /&gt;
 csum err&lt;br /&gt;
 ets_main.c &lt;br /&gt;
* reset causes:&lt;br /&gt;
    0: &lt;br /&gt;
    1: normal boot&lt;br /&gt;
    2: reset pin&lt;br /&gt;
    3: software reset&lt;br /&gt;
    4: watchdog reset&lt;br /&gt;
&lt;br /&gt;
* boot device:&lt;br /&gt;
    0:&lt;br /&gt;
    1: ram&lt;br /&gt;
    3: flash&lt;br /&gt;
== Flash Error Log ==&lt;br /&gt;
* flash size is not correctly selected, in this case should be 16Mbit-C1 instead of 32Mbit&lt;br /&gt;
 mismatch map 5,spi_size_map 4&lt;br /&gt;
 system_partition_table_regist fail&lt;br /&gt;
=== Incorrect flash mode ===&lt;br /&gt;
 ets Jan  8 2013,rst cause:1, boot mode:(3,7)&lt;br /&gt;
&lt;br /&gt;
 load 0x4010f000, len 1384, room 16 &lt;br /&gt;
 tail 8&lt;br /&gt;
 chksum 0xef&lt;br /&gt;
 csum 0xef&lt;br /&gt;
 csum err&lt;br /&gt;
 ets_main.c&lt;br /&gt;
* Fix:esptool.py write_flash 0x0 Yxxxx.bin&lt;br /&gt;
* change to below, add dout SPI flash mode&lt;br /&gt;
 esptool.py write_flash --flash_mode dout 0x0 Yxxxx.bin&lt;br /&gt;
&lt;br /&gt;
== Debug ==&lt;br /&gt;
=== Hardware Check ===&lt;br /&gt;
* Try to swap TXD and RXD in case it is wrong &lt;br /&gt;
* Buttons should be hold down or pressed firmly and properly to make the good connection, it is too tiny button &lt;br /&gt;
* On module status Blue LED will blink once on reset&lt;br /&gt;
* USB-TTL Compatible with 5V TXD RXD signal, for our relay boards, wiring should be 5V, GND, TXD and RXD. Recommanded USB-TTL debugger boards are CP2102, speed up to 15000000 (Some other boards only do 115200)&lt;br /&gt;
&lt;br /&gt;
=== Software Correct Boot Mode Output ===&lt;br /&gt;
* Correct flash mode output on arduino baudrate 748800: &lt;br /&gt;
 ets Jan  8 2013,rst cause:2, boot mode:(1,7)&lt;br /&gt;
* Correct normal boot mode output &lt;br /&gt;
  ets Jan  8 2013,rst cause:2, boot mode:(3,7)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category: ESP8266 Program]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>