Skip to content

Release 1.0.4

Compare
Choose a tag to compare
@tve tve released this 16 Sep 04:02

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.3:

  • Increase serbridge buffer to 2*1460 bytes and ensure esp-link doesn't lock-up on printing errors for buffer overflow

Notes:

  • To compile this version from scratch check out the corresponding git tag, e.g. git checkout v1.0.x (for the desired x)
  • To compile the latest V1 and be able to commit to your repo, check out the v1.0 git branch
  • 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.4/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.4/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.4/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