Sunday, March 8, 2015

How to configure ESP8266 to the newest firmware

I got quite trouble for setting up ESP8266, so I'd like to share the way to configure it here (or memo it -_-)


HW configuration

ESP8266 uses all 3.3v for VCC, input, output. So I used 3.3v Adapter to power-up ESP8266, and FTDI USB-to-Serial with 3.3v. The basic PIN connection is as the following.
http://forum.hobbycomponents.com/viewtopic.php?f=74&t=1777
My module is ESP-07 which is different from the article, but the pin out is the same.

Pin configuration :
ESP8266 GPIO0 -> HIGH
ESP8266 GPIO2 -> HIGH
ESP8266 GPIO15 -> GND
ESP8266 CH_PD -> HIGH
ESP8266 TXD -> FTDI RXI
ESP8266 RXD -> FTDI TXO


How to update FW :
  1. GPIO0 to GND
  2. connect ESP8266 to TX/RX/GND of FTDI
  3. Download the following ESP8266 SDK and downloader
    SDK : http://bbs.espressif.com/viewtopic.php?f=5&t=154
    Flash Downloader : http://bbs.espressif.com/viewtopic.php?f=7&t=25&p=70&hilit=FLASH_DOWNLOAD_TOOLS_v0.9.3.1_141118#p70 
  4. There is a README file. :  esp_iot_sdk_v0.9.5_15_01_23\esp_iot_sdk_v0.9.5\bin\at. I used "new" way, and the following is the address for each images.
    boot_v1.2.bin      0x00000
    user1.512.new.bin  0x01000
    blank.bin          0x3e000
    balnk.bin          0x7e000
  5. GPIO0 to HIGH
  6. Set the default configuration and update FW through OTA. The settings are stored in the flash, so this is just a one time thing.
    AT+CWMODE=1 -> Station mode

    AT+CWAUTOCONN=0 -> auto AP connection disable
    AT+RSTAT+CWJAP="leekwon2G","x" -> AP connection
    AT+CIUPDATE -> OTA update
    AT+UART=9600,8,1,0,0 -> UART setting
  7. The final version after the procedure. :
    AT version:0.21.0.0
    SDK version:0.9.5
      

No comments:

Post a Comment