From 60ccd8b6d1a8a80a8c2b782acaf81f54463b231e Mon Sep 17 00:00:00 2001 From: "Thomas \"Balu\" Walter" Date: Tue, 12 Sep 2017 23:47:10 +0200 Subject: [PATCH] Reordered paragraphs a bit to have them in the order you'd do things. --- Esptool.md | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/Esptool.md b/Esptool.md index a947fa38..4032eed8 100644 --- a/Esptool.md +++ b/Esptool.md @@ -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