You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: boards/WiFi.md
+25-4Lines changed: 25 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -196,9 +196,9 @@ on-chip bootloader though - see below.
196
196
197
197
198
198
Advanced Reflashing
199
-
-----------------
199
+
-------------------
200
200
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.
202
202
203
203
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.
204
204
@@ -215,7 +215,24 @@ Updating ESP8266 firmware
215
215
---------------------------
216
216
217
217
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.
219
236
220
237
* First connect to your Espruino WiFi with the Web IDE - make a note of the Espruino
221
238
Path (usually `/dev/ttySomething` or `COMxx`) that is displayed in the connection screen.
@@ -240,14 +257,18 @@ LoopbackA.setConsole();
240
257
241
258
* Download `esptool` from https://github.com/espressif/esptool
242
259
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
+
243
264
* Download the [ESP8266 1.5.4 firmware](/files/ESP8266_AT_1_5_4.zip)
244
265
(originally from [here](https://www.electrodragon.com/w/ESP8266_AT-Command_firmware))
245
266
246
267
* Run the following command. You'll need to replace `/dev/ttyACM0` with
247
268
the device path (see the first step)
248
269
249
270
```
250
-
esptool.py --port /dev/ttyACM0 --baud 115200 write_flash --flash_mode dio 0 AiThinker_ESP8266_DIO_32M_32M_20160615_V1.5.4.bin
0 commit comments