Skip to content

Release 1.0.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@tve tve released this 12 Sep 04:29
· 1 commit to v1.0 since this release

Release with over-the-air (OTA) reflashing of the esp, port 23 transparent bridge as well as AVR & ARM flashing support. Simple debug log page to view the esp-link's own os_printf output via the web and a console page to see the attached uC's output. Buttons to reset the uC and change the baud rate. A pin configuration selector to change GPIO function assignments. Saving of configuration changes in flash.

Changes since v1.0.1: rewrite of serial bridge buffering to fix problem with high data rates

(If you're looking for REST and MQTT support you want to look into v2.x.x releases.)

This version uses the Espressif IOT SDK version 1.3.0.

UART pin swap: you can select a uart pin swap configuration which uses gpio13 as UART RX and gpio15 as UART TX. This avoids transmitting the boot time messages from the ROM bootloader onto the TX pin.

Install via serial upload

The short version for the serial install is:

  • flash boot_v1.4(b1).bin from the official esp_iot_sdk_v1.3.0 and included in the release tgz to 0x00000
  • flash blank.bin from the official SDK and also included in the tgz to 0x7e000 or 0x3FE000
  • flash user1.bin to 0x01000

On Linux using esptool.py this turns into the following:

curl -L https://github.com/jeelabs/esp-link/releases/download/v1.0.3/esp-link.tgz | tar xzf -
cd esp-link
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash 0x00000 boot_v1.4\(b1\).bin 0x1000 user1.bin 0x7e000 blank.bin

Download https://github.com/jeelabs/esp-link/releases/download/v1.0.3/esp-link-4MB.tgz if you would like the version for the 4MB flash chip, in that case blank.bin has to be flashed to 0x3FE000. You can use a baud rate slower than shown and wait longer...

Upgrade over-the-air

To upgrade from an earlier version of esp-link:

curl -L https://github.com/jeelabs/esp-link/releases/download/v1.0.3/esp-link.tgz | tar xzf -
cd esp-link
./wiflash <esp-hostname> user1.bin user2.bin

Note that you cannot OTA upgrade from a 512KB version to a 4MB version, you have to do a serial flash for this.

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