Skip to content

Commit 89fc52c

Browse files
committed
wifi docs
1 parent 1b49af8 commit 89fc52c

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

boards/WiFi.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ on-chip bootloader though - see below.
196196

197197

198198
Advanced Reflashing
199-
-----------------
199+
-------------------
200200

201-
In very rare cases (if you are experimenting with writing to Flash Memory), you may be able to damage the bootloader, which will effecitively 'brick' the Espruino WiFi.
201+
In very rare cases (if you are experimenting with writing to Flash Memory), you may be able to damage the bootloader, which will effectively 'brick' the Espruino WiFi.
202202

203203
To fix this, you'll have to use the hard-wired USB DFU (Device Firmware Upgrade) bootloader. You can also use this method for flashing non-Espruino firmwares to Espruino.
204204

@@ -215,7 +215,24 @@ Updating ESP8266 firmware
215215
---------------------------
216216

217217
Espruino WiFi contains and ESP8266 module to handle WiFi communications. It
218-
ships with firmware 0v40, but it can be updated reasonably easily if needed.
218+
ships with firmware 0v40, but it can be updated reasonably easily if needed:
219+
220+
* In the Web IDE, click `Settings`, `Flasher`
221+
* Down the bottom of the screen, under `Espruino WiFi Firmware` click the
222+
`Update WiFi module` button to update the firmware. This will take several
223+
minutes, but will result in the firmware being updated.
224+
* If you are unsure of your currently installed version, you can
225+
click `Check version` to find out what is installed.
226+
227+
228+
### Advanced ESP8266 Reflashing
229+
230+
You can also turn your Espruino WiFi's CPU into a USB-serial bridge, allowing
231+
you to use your desktop PC to flash the Espruino WiFi.
232+
233+
**USE WITH CAUTION:** The unmodified `esptool.py` tool for updating firmware
234+
sends packets of data that are too large, and will not be able to successfully
235+
flash the ESP8266, leaving it bricked.
219236

220237
* First connect to your Espruino WiFi with the Web IDE - make a note of the Espruino
221238
Path (usually `/dev/ttySomething` or `COMxx`) that is displayed in the connection screen.
@@ -240,14 +257,18 @@ LoopbackA.setConsole();
240257

241258
* Download `esptool` from https://github.com/espressif/esptool
242259

260+
* Check out tag `v2.0` with `git checkout v2.0`
261+
262+
* Modify `esptool.py` to change both `ESP_RAM_BLOCK` and `FLASH_WRITE_SIZE` to `0x100`
263+
243264
* Download the [ESP8266 1.5.4 firmware](/files/ESP8266_AT_1_5_4.zip)
244265
(originally from [here](https://www.electrodragon.com/w/ESP8266_AT-Command_firmware))
245266

246267
* Run the following command. You'll need to replace `/dev/ttyACM0` with
247268
the device path (see the first step)
248269

249270
```
250-
esptool.py --port /dev/ttyACM0 --baud 115200 write_flash --flash_mode dio 0 AiThinker_ESP8266_DIO_32M_32M_20160615_V1.5.4.bin
271+
./esptool.py --no-stub --port /dev/ttyACM0 --baud 74880 write_flash --flash_mode dio 0 AiThinker_ESP8266_DIO_32M_32M_20160615_V1.5.4.bin
251272
```
252273

253274
* When complete, unplug the Espruno WiFi and re-plug it

0 commit comments

Comments
 (0)