mirror of https://github.com/arendst/Tasmota.git
Testing programming mode
parent
64c18727ab
commit
e4b1310c41
|
@ -13,12 +13,10 @@ In most cases those pins are available on the PCB in the form of pin holes or so
|
|||
|
||||
**YOU CAN BE ELECTROCUTED IF YOU DON'T KNOW WHAT YOU ARE DOING!**
|
||||
|
||||
If you are not careful, your own health will be in danger.
|
||||
Shorting your serial interface with AC will fry your module and programmer and will also harm or destroy your computer.
|
||||
It is important to always have all mains power cables disconnected from the device while being connected via serial or even while the case of the module is opened.
|
||||
If you are not careful, your own health will be in danger. Shorting your serial interface with mains AC power will fry your device and serial adapter and will also harm or destroy your computer. It is important to _**always have all mains power cables disconnected from the device**_ while being connected via serial or even while the case of the device is opened.
|
||||
|
||||
## Serial Connection
|
||||
Each device has its pins labelled differently. If the labelling isn't visible on the PCB please refer to the devices wiki entry or search the internet for correct pin locations. Device specific instructions and restrictions are documented in [Device Templates Repository](https://blakadder.github.io/templates/)
|
||||
Each device has its pins labelled differently. If the labelling isn't visible on the PCB please refer to the devices flashing guide or search the Internet for correct pin locations. Device specific instructions and restrictions are documented in the [Device Templates Repository](https://blakadder.github.io/templates/)
|
||||
|
||||
When you have identified pins on your device, connect wires according to the table:
|
||||
|
||||
|
@ -32,20 +30,24 @@ When you have identified pins on your device, connect wires according to the tab
|
|||
**Note that TX from your adapter goes to RX on the ESP8266 device and RX from adapter goes to TX on the device!**
|
||||
![Image courtesy of https://www.domo-blog.fr/](https://user-images.githubusercontent.com/5904370/57880182-69bf2f80-781e-11e9-8953-88599cb89155.png)
|
||||
|
||||
## Bringing the Module in Flash Mode
|
||||
## Putting the Device into Programming Mode
|
||||
<img alt="Example without button" src="https://user-images.githubusercontent.com/5904370/55689595-8dbd6480-5986-11e9-81c6-a13c6b7e5971.png" height=200 align=right></img>
|
||||
ESP8266 needs to be put into **Flash Mode** before the firmware can be uploaded. This is done by pulling the GPIO0 pin to GND while the chip is booting.
|
||||
ESP8266 needs to be put into **Programming Mode** before the firmware can be uploaded. This is done by pulling the GPIO0 pin to GND while the chip is booting.
|
||||
|
||||
On most devices the installed control button is connected to GPIO0 and GND, making entering Flash Mode very easy. On others you will need to short the pins on the PCB or directly on the chip with a jumper wire. Device specific instructions are documented in [Device Templates Repository](https://blakadder.github.io/templates/).
|
||||
On most devices the installed control button is connected to GPIO0 and GND, making entering Programming Mode very easy. On others you will need to short the pins on the PCB or directly on the chip with a jumper wire. Device specific instructions are documented in the [Device Templates Repository](https://blakadder.github.io/templates/).
|
||||
|
||||
To bring ESP8266 into Flash Mode:
|
||||
To put the ESP8266 into Programming Mode:
|
||||
|
||||
1. Disconnect serial-to-USB adapter and power
|
||||
2. Connect GPIO0 and GND (by pressing the on-board button or connection with a wire)
|
||||
3. Connect the serial-to-USB adapter to your computer
|
||||
4. After a few seconds disconnect GPIO0 from GND (release button or break wire connection)
|
||||
|
||||
If everything went well, you are now in Flash Mode and ready to continue with [flashing](https://github.com/arendst/Sonoff-Tasmota/wiki/Flashing). If the flashing process is unable to start, disconnect the module and retry the steps.
|
||||
You can test whether your device is in Programming Mode by attempting to read information from the ESP82xx chip. This requires `esptool.py`. Instructions on installing and using `esptool` are provided in the [Flashing article](Flashing#esptoolpy). For example (`COM5` will be your COM port):
|
||||
- `esptool.py -p COM5 read_mac` (It should read the MAC address. It may fail afterwards during Uploading and running a "stub". This is normal.)
|
||||
- `esptool.py -p COM5 flash_id`
|
||||
|
||||
If everything went well, you are now in Programming Mode and ready to continue with [flashing](Flashing). If the flashing process is unable to start, disconnect the device and retry the steps.
|
||||
|
||||
## Common Mistakes
|
||||
- Wire connections and solder joints - Double check all connections and also check for solder overflow.
|
||||
|
|
Loading…
Reference in New Issue