Reordered paragraphs a bit to have them in the order you'd do things.

Thomas "Balu" Walter 2017-09-12 23:47:10 +02:00
parent 24c6a0df36
commit 60ccd8b6d1
1 changed files with 16 additions and 14 deletions

@ -13,6 +13,21 @@ Download the latest Tasmota release firmware file *sonoff.bin* from https://gith
## Upload Tasmota
### Put device in firmware upload mode
When performing a firmware upload do **not connect the device to AC** but use the power supply provided by your (FTDI type) serial interface.
Put the device in firmware upload mode by grounding pin GPIO00 while applying power.
Grounding pin GPIO00 can often be achieved by pressing button 1 on the Sonoff device or using a wire between GPIO00 and Gnd if the button is not available. Deviations may apply.
Connect the serial interface of your PC to the device while GPIO00 to Gnd.
Esptool uses the serial interface to communicate with your device. On Windows these interfaces are named COM1, COM2 etc. On Linux these interfaces are called /dev/ttyUSB0, /dev/ttyUSB1 etc.
Before using Esptool make sure you know to which serial interface name your device is connected to.
In the following commands I use COM5 as an example.
### Optional: Backup firmware
Ensure the device is in firmware upload mode.
@ -36,20 +51,7 @@ NOTE2: It only takes a few seconds to erase 1M of flash.
### Upload firmware
Ensure the device is in firmware upload mode.
Load the downloaded Tasmota firmware file *sonoff.bin* with the following command:Esptool uses the serial interface to communicate with your device. On Windows these interfaces are named COM1, COM2 etc. On Linux these interfaces are called /dev/ttyUSB0, /dev/ttyUSB1 etc.
Before using Esptool make sure you know to which serial interface name your device is connected to.
In the following commands I use COM5 as an example.
### Put device in firmware upload mode
When performing a firmware upload do **not connect the device to AC** but use the power supply provided by your (FTDI type) serial interface.
Put the device in firmware upload mode by grounding pin GPIO00 while applying power.
Grounding pin GPIO00 can often be achieved by pressing button 1 on the Sonoff device or using a wire between GPIO00 and Gnd if the button is not available. Deviations may apply.
Connect the serial interface of your PC to the device while GPIO00 to Gnd.
Load the downloaded Tasmota firmware file *sonoff.bin* with the following command:
```
esptool.py --port COM5 write_flash -fs 1MB -fm dout 0x0 sonoff.bin