Release 2.0.beta1
Pre-release
Pre-release
This is a beta release, for a stable release please use: https://github.com/jeelabs/esp-link/releases/tag/v1.0.1
Warning: this release does not fit into 512KB flash, it requires larger flash (e.g. as typically found in esp-12 modules). If your module has esp-link V1 you cannot upgrade over-the-air, you have to serially flash the larger firmware - sorry.
Features:
- over-the-air (OTA) reflashing of the esp
- port 23 transparent bridge
- AVR & ARM flashing support
- outbound TCP connections from attached micro-controller to the internet (NEW in 2.0)
- console page to see the attached uC's output
- simple debug log page to view the esp-link's own os_printf output
- buttons to reset the uC and change the baud rate
- pin configuration selector to change GPIO function assignments
- saving of configuration changes in flash
- support for 4MB flash (e.g. esp-12, esp-13, wroom-II)
Changes since v1.0.0: new feature: outbound TCP connections
This version uses the Espressif IOT SDK version 1.2.0.
Install via serial upload
The short version for the serial install is:
- flash
boot_v1.4(b1).bin
from the officialesp_iot_sdk_v1.2.0
and included in the release tgz to0x00000
- flash
blank.bin
from the official SDK and also included in the tgz to0x7e000
- flash
user1.bin
to0x01000
On Linux using esptool.py this turns into the following for a 32mbit=4MBte flash chip, such as an esp-12 module typically has:
curl -L https://github.com/jeelabs/esp-link/releases/download/v2.0.beta1/esp-link.tgz | tar xzf -
cd esp-link
esptool.py --port /dev/ttyUSB0 --baud 460880 write_flash -fs 32m -ff 80m 0x00000 boot_v1.4\(b1\).bin 0x1000 user1.bin 0x7e000 blank.bin
For a 512KByte flash (typical for an esp-01) use -fs 4m -ff 40m
. I use a high baud rate above, but that's not required.
Upgrade over-the-air
To upgrade from an earlier version of esp-link:
curl -L https://github.com/jeelabs/esp-link/releases/download/v2.0.beta1/esp-link.tgz | tar xzf -
cd esp-link
./wiflash <esp-hostname> user1.bin user2.bin
Installing esptool.py
On Linux use esptool.py to flash the esp8266.
If you're a little python challenged then the following install instructions might help:
-
Install ez_setup with the following two commands (I believe this will do something
reasonable if you already have it):wget https://bootstrap.pypa.io/ez_setup.py python ez_setup.py
-
Install esptool.py:
git clone https://github.com/themadinventor/esptool.git cd esptool python setup.py install cd .. esptool.py -h