Esp8266 Quick Start Guide en
Esp8266 Quick Start Guide en
NS D
D) SIG DE
RN DE EN
M
M
NE O
R EC
W
FO T R
(N
NO
Version 1.5
Copyright © 2023
About This Guide
This document is a quick start guide to ESP8266. The document is structured as follows.
Compiling
Chapter 2 Compiling the ESP8266_NONOS_SDK in the virtual machine.
ESP8266_NONOS_SDK
Compiling
Chapter 3 Compiling the ESP8266_RTOS_SDK.
ESP8266_RTOS_SDK
Chapter 4 Common Debug Methods Common debugging methods and sample codes.
Release Notes
Date Version Release notes
2017.02 V1.3 Updated the link to the OVA image le in Section 2.1.
📖 Notes:
! When users deploy third-party development boards or modules that integrate ESP8266, they should
use development rmware provided by the corresponding manufacturers.
! To purchase ESP-WROOM-02 or ESP-LAUNCHER, please visit Espressif’s of cial online store at:
https://espressif.taobao.com,
• 1 ESP-LAUNCHER
• 1 Micro-USB cable
⚠ Notice:
The ESP8266 Wi-Fi module requires 3.3V power supply capable of delivering a peak current of 500 mA.
The default baud rate of ESP8266 is74880, therefore, UART tools that can support the
default baud rate are recommended. Please note that certain USB-UART converters
may not support all baud rates if users use a third-party development board.
3. Use a Micro-USB cable to connect ESP-LAUNCHER to the PC. The UART driver needs
to be installed on the PC.
4. Double-click on ESPFlashDownloadTool_v3.3.4.exe to run the ESP8266 Flash
Download Tool on the PC.
Figure 1-3 uses 16Mbit-C1 (1024+1024 map) ash as an example. The download
addresses are shown in Table 1-2.
📖 Note:
The SpiFlashConfig and the COM on the ESP8266 Flash Download Tool should be set according to the
actual situation.
5. Click the START button and wait for the ESP-LAUNCHER to power up.
6. Power on the ESP-LAUNCHER by toggling switch 1 as is shown in Figure 1-2 to the
upper side. Toggle switch 2 as is shown in Figure 1-2 to the lower side to enter the
download mode.
7. The ESP8266 Flash Download Tool will start to download AT rmware into the ESP-
LAUNCHER. The DETECTED INFO area will display the information of the ash chip on
ESP-LAUNCHER.
8. After the download is nished, as Figure 1-5 shows, toggle switch 1 to the lower side to
power off the ESP-LAUNCHER.
9. Open the UART tool on the PC, set the baud rate to 115200, and con gure new line
mode.
📖 Note:
When using AT commands, then a baud rate of 115200 and new line mode are needed.
10.Set the ESP8266 to working mode by toggling switch 2 to the upper side. Then toggle
switch 1 to the upper side to power on the ESP-LAUNCHER.
The log print may look garbled, as shown in Figure 1-6 (which is normal, because the
default power-on baud rate of ESP8266 is 74880). The “ready” message indicates that
ESP-LAUNCHER is working successfully.
11.Input command AT+GMR and press Enter button. The information of the AT rmware will
appear, as Figure 1-7 shows.
2. Compiling
ESP8266_NONOS_SDK
This chapter describes how to compile ESP8266_NONOS_SDK by using the AT demo as
an example.
• Double-click on
VirtualBox-5.0.16-105871-Win.exe
and install VirtualBox.
📖 Note:
VirtualBox has different versions. We are
using Windows V.5.0.16 as an
example.
• Double-click on Oracle VM
VirtualBox.exe to run the program
and the system will display the main
menu 👉 .
💬 Tip:
ESP8266’s virtual machine takes up
much space (RAM). Please make sure
the machine has enough memory to
spare.
Steps Results
💬 Tip:
ESP8266’s virtual machine takes up
much space (RAM). Please make sure
the machine has enough memory to
spare.
Steps Result
Steps Result
Steps Result
📖 Note:
For more details on compiling, please refer to ESP8266 SDK Getting Started Guide.
5. After compilation, the binaries generated and their corresponding download addresses
in the ash memory will be shown as follows:
Support boot_v1.4 and +
boot.bin------------>0x00000
user1.2048.new.5.bin--->0x01000
!!!
📖 Note:
Users can open the /home/esp8266/Share/ESP8266_NONOS_SDK/bin/upgrade directory and check the
binaries compiled.
3. Compiling
ESP8266_RTOS_SDK
3.1. Compiling Process
1. Download ESP8266_RTOS_SDK from:
https://github.com/espressif/ESP8266_RTOS_SDK
ESP8266_IOT_PLATFORM is a demo application based on ESP8266_RTOS_SDK.
Download from: https://github.com/espressif/ESP8266_IOT_PLATFORM
2. Copy ESP8266_IOT_PLATFORM and ESP8266_RTOS_SDK to the shared folder.
Steps Result
Steps Result
Steps Result
Steps Result
6. Modify ESP8266_IOT_PLATFORM/makefile.
Steps Result
Steps Result
📖 Note:
For more details on compilation, please refer to ESP8266 SDK Getting Started Guide.
8. After compilation, the binaries generated and their download addresses in the ash
memory will be shown as follows:
Support boot_v1.4 and +
boot.bin------------>0x00000
user1.1024.new.2.bin--->0x01000
!!!
📖 Note:
Users can open the /home/esp8266/Share/ESP8266_RTOS_SDK/bin directory and check the binaries
compiled.
📖 Note:
The default baud rate of ESP8266 is 74880.
RTOS
High MAC
Low MAC
EN Pull up
GND GND
ESP-WROOM-02
USB-to-TTL converter
3V3
3V3
EN
RXD TXD
PC
TXD RXD
GND GND
IO15 IO0
📖 Note:
On how to download rmware, please refer to Section 1.3.
📖 Note:
IO0 is an internal pull-up pin. For more information on the ESP-WROOM-02 hardware, please refer to
ESP8266 System Description and ESP-WROOM-02 Datasheet.
A. Appendix—Learning
Resources
A.1. Must-Read Documents
• ESP8266EX Datasheet
• FAQ