Download ESP8266 Book

Transcript
Table of Contents
Introduction................................................................................................................................ 12
Overview.................................................................................................................................... 13
The ESP8266........................................................................................................................ 14
Maturity................................................................................................................................. 14
ESP8266 Modules................................................................................................................. 15
ESP-12............................................................................................................................. 15
ESP-1............................................................................................................................... 19
Adafruit HUZZAH.............................................................................................................. 23
SparkFun WiFi Shield – ESP8266....................................................................................23
Connecting to the ESP8266.......................................................................................................24
WiFi Theory............................................................................................................................... 25
AT Command Programming.......................................................................................................27
Commands............................................................................................................................ 28
Assembling circuits.................................................................................................................... 34
USB to UART converters.......................................................................................................35
Breadboards.......................................................................................................................... 36
Power.................................................................................................................................... 37
Multi-meter / Logic probe / Logic Analyzer.............................................................................37
Sundry components.............................................................................................................. 38
Physical construction............................................................................................................. 38
Recommended setup for programming ESP8266.................................................................38
Configuration for flashing the device.....................................................................................41
Programming............................................................................................................................. 42
Boot mode............................................................................................................................. 42
The ESP8266 SDK................................................................................................................ 43
Include directories............................................................................................................. 43
Compiling.............................................................................................................................. 44
Flashing the ESP8266......................................................................................................50
Programming environments..............................................................................................54
Compilation tools.............................................................................................................. 54
make............................................................................................................................ 54
gcc............................................................................................................................... 54
ar.................................................................................................................................. 54
objcopy......................................................................................................................... 55
objdump....................................................................................................................... 55
esptool.py..................................................................................................................... 55
gen_appbin.py.............................................................................................................. 57
Debugging............................................................................................................................. 58
Logging to UART1............................................................................................................ 58
Run a Blinky..................................................................................................................... 58
Dumping IP Addresses.....................................................................................................59
Page 2