Serprog/ESP8266 flasher

From flashrom
Revision as of 00:09, 16 May 2016 by Stefanct (talk | contribs) (→‎WLAN)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This wiki is retired

Our website is https://www.flashrom.org, instructions on how to add or update documentation are here

All wiki content available in read-only mode at wiki.flashrom.org

This is more than just WIP. hetii has started a serprog implementation on the ESP8266 and Stefanct will set up test hardware if that's ready. Till then this will host various ESP-related bits not necessarily related to Serprog.

UART

The default UART requires line feeds to be sent. This can be done by ending every line with '<enter> <ctrl>-j'. A more convenient solution is to use automatic mapping provided by a terminal emulator, e.g.:

picocom -b 115200 --omap crcrlf /dev/ttyUSB1

After boot you should see (at least) the ready message as below. You can test if the UART connection works correctly by issuing AT commands.

Ai-Thinker Technology Co.,Ltd.

ready
AT

OK
AT+GMR
AT version:0.40.0.0(Aug  8 2015 14:45:58)
SDK version:1.3.0
Ai-Thinker Technology Co.,Ltd.
Build:1.3.0.2 Sep 11 2015 11:48:04
OK

Documentation of AT commands

WLAN

To connect to an existing network one needs to

  1. enable client mode
  2. enable DHCP
  3. connect to an AP
  4. optional: test upstream connection
AT+CWMODE=1
AT+CWDHCP=1,1
AT+CWJAP="ssid","password"
AT+PING="flashrom.org"