Documente Academic
Documente Profesional
Documente Cultură
Help
Contents
1 Pre-build firmware
2 Custom Interpreter
3 SDK
4 Flash Firmware
4.1 Use ESP Download Tool
4.2 Use arduino IDE
4.3 Firmware Details
4.4 ESPtool
4.5 Batch Flashing Nodemcu, Deploy firmware
5 Debug
Pre-build firmware
Default AT commands firmware ESP8266_AT-Command_firmware
Custom Interpreter
ESP8266 Arduino
ESP8266 NodeMCU Lua
MicroPython ESP8266
Javascript for ESP8266 (https://github.com/espruino/Espruino)
ESP8266 IoT
ESP8266 IoT Firmware
Get ESP8266 firmware flasher to flash the board
SDK
SDK get started guide
Flash Firmware
Use ESP Download Tool
Use latest ESP Download Tool from espressif or from here (3.6 version.) (https://github.com/Edragon/esp_firmware/tree/master/Tool)
Firmware Details
Boot Process
https://www.electrodragon.com/w/Category:ESP8266_Code_Guide#Pre-build_firmware 1/3
10/24/2018 Category:ESP8266 Code Guide - ElectroDragon
Boots into Espressif code in IROM0.
Loads SPI ROM data.
Starts executing ESP SDK-code shadowed SPI ROM (unconfirmed).
ESPtool
ESPTool (https://github.com/themadinventor/esptool/)
Install dependence if necessary, for lubuntu, first install python-pip, than pip install pyserial
More functions by using -h, for specific command try ie esptool.py write_flash -h.:
After finish coding, upload your code lua into target board, better be complied
dump out the flash content out and save as firmware.bin file for batch deploy
use this firmware.bin for new products
1. 4194304 mbits = 4MB, read flash time take at least more than 5 minutes
2. 2097152 mb = 2MB, 1048576 mbits = 1MB, 524288 = 512 KB, 262144 = 256 KB
3. use flash download tool flash normally
Also can try dump mem out, like RAM, etc, dumping the ROM (64 KiB) from the chip:
Debug
Open arduino IDE, and set baud rate to 74880 on serial, can find esp8266 debug info.
ESP8266 Arduino
ESP8266 IoT
Category: ESP8266
https://www.electrodragon.com/w/Category:ESP8266_Code_Guide#Pre-build_firmware 2/3
10/24/2018 Category:ESP8266 Code Guide - ElectroDragon
https://www.electrodragon.com/w/Category:ESP8266_Code_Guide#Pre-build_firmware 3/3