meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
home_automation:esp8266:general [2016/06/28 10:25]
niziak
home_automation:esp8266:general [2020/06/05 14:43] (current)
niziak
Line 27: Line 27:
 ====== External software ====== ====== External software ======
   * [[https://​github.com/​igrr/​esptool-ck/​releases/​download/​0.4.8/​esptool-0.4.8-linux64.tar.gz|esptool 0.4.8]]   * [[https://​github.com/​igrr/​esptool-ck/​releases/​download/​0.4.8/​esptool-0.4.8-linux64.tar.gz|esptool 0.4.8]]
 +    * [[https://​github.com/​themadinventor/​esptool|https://​github.com/​themadinventor/​esptool]]
   * [[http://​arduino.esp8266.com/​linux64-xtensa-lx106-elf-gb404fb9.tar.gz|xtensa-lx106-elf-gcc 1.20.0-26-gb404fb9-2]]   * [[http://​arduino.esp8266.com/​linux64-xtensa-lx106-elf-gb404fb9.tar.gz|xtensa-lx106-elf-gcc 1.20.0-26-gb404fb9-2]]
   * [[https://​github.com/​igrr/​mkspiffs/​releases/​download/​0.1.2/​mkspiffs-0.1.2-linux64.tar.gz|mkspiffs 0.1.2]]   * [[https://​github.com/​igrr/​mkspiffs/​releases/​download/​0.1.2/​mkspiffs-0.1.2-linux64.tar.gz|mkspiffs 0.1.2]]
Line 37: Line 38:
 ^ Pin # ^ GPIO   ^ role / description ^^^^ ^ Pin # ^ GPIO   ^ role / description ^^^^
 | 15    | GPIO0  | FLSH      | SPI_CS2 |        | !!! Must be H during bootup. L=boot from UART | | 15    | GPIO0  | FLSH      | SPI_CS2 |        | !!! Must be H during bootup. L=boot from UART |
-| 26    | GPIO1  | UART0_TXD | SPI_CS1 |        | Uart Tx during flash programming ​ 3,3V ! | +| 26    | GPIO1  | UART0_TXD | SPI_CS1 |        | UART TX during flash programming ​ 3,3V ! | 
-| 14    | GPIO2  |           ​|         ​| ​       | UART Tx during flash programming | +| 14    | GPIO2  | UART1_TXD ​|         ​| ​       | UART TX during flash programming | 
-| 25    | GPIO3  | UART0_RXD |         ​| ​       | Uart Rx during flash programming ​ 3,3V ! |+| 25    | GPIO3  | UART0_RXD |         ​| ​       | UART Rx during flash programming ​ 3,3V ! |
 | 16    | GPIO4  |           ​| ​        ​| ​       | | | 16    | GPIO4  |           ​| ​        ​| ​       | |
 | 24    | GPIO5  |           ​| ​        ​| ​       | | | 24    | GPIO5  |           ​| ​        ​| ​       | |
Line 49: Line 50:
 | 20    | GPIO11 |           | SPI_CS0 | SD_CMD | | | 20    | GPIO11 |           | SPI_CS0 | SD_CMD | |
 | 10    | GPIO12 | HSPI_MISO | MTDI    |        | | | 10    | GPIO12 | HSPI_MISO | MTDI    |        | |
-| 12    | GPIO13 | HSPI_MOSI | MTCK    | UART0_CTS | |+| 12    | GPIO13 | HSPI_MOSI | MTCK    | UART0_CTS ​/ UART0_RXD2 ​Note: there is UART Swap register, and UART0 can be muxed to GPIO13 and GPIO15 ​|
 | 9     | GPIO14 | HSPI CLK  | MTMS    |           | | | 9     | GPIO14 | HSPI CLK  | MTMS    |           | |
-| 13    | GPIO15 | HSPI CS   | MTDO    | UART0_RTS | !!! Must be L durign bootup (H=SDIO mode) |+| 13    | GPIO15 | HSPI CS   | MTDO    | UART0_RTS ​/ UART0_TXD2 ​| !!! Must be L durign bootup (H=SDIO mode) |
 | 8     | GPIO16 | XPD_DCDC ​ |         ​| ​          | Depp sleep Timer output / USER / WAKE. Connect it to reset ping to wakeup from Deep Sleep mode | | 8     | GPIO16 | XPD_DCDC ​ |         ​| ​          | Depp sleep Timer output / USER / WAKE. Connect it to reset ping to wakeup from Deep Sleep mode |
 |       ​| ​       |           ​| ​        ​| ​          | | |       ​| ​       |           ​| ​        ​| ​          | |
Line 66: Line 67:
 | 31    |        | RES12K ​   |         ​| ​          | Serial connection with a 12kOhm resistor do ground | | 31    |        | RES12K ​   |         ​| ​          | Serial connection with a 12kOhm resistor do ground |
  
- 
- 
- 
-====== Flashing new firmware ====== 
-When Chip is powered on, with GPIO0 pulled up, it enter into firmware downloading mode. 
- 
- 
-===== esptool ===== 
-Download/​clone [[https://​github.com/​themadinventor/​esptool|https://​github.com/​themadinventor/​esptool]] 
- 
-Example usage: 
-<code bash>​./​esptool.py --port /​dev/​ttyUSB1 --baud 9600 write_flash 0 ../​nodemcu_float_0.9.6-dev_20150704.bin</​code>​ 
- 
-<​code>​ 
-Connecting... 
-Erasing flash... 
-Writing at 0x00001400... (1 %) 
-</​code>​ 
- 
-<​code>​ 
-Erasing flash... 
-Wrote 462848 bytes at 0x00000000 in 520.5 seconds (7.1 kbit/s)... 
- 
-Leaving... 
-</​code>​ 
  
 ====== Firmwares ===== ====== Firmwares =====
Line 111: Line 87:
 ===== Arduino ===== ===== Arduino =====
 [[https://​github.com/​esp8266/​Arduino]] [[https://​github.com/​esp8266/​Arduino]]
 +
 +[[https://​github.com/​markszabo/​IRremoteESP8266]]