Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:esptool [2015/03/22 21:55] – external edit 127.0.0.1tools:esptool [2023/10/15 13:33] (current) – [Install] darron
Line 1: Line 1:
 ==== ESPTool ==== ==== ESPTool ====
 +<wrap right>
 +{{:tools:esptool.jpg?100}}
 +</wrap>
  
 This tool is used to install firmware onto [[:boards:esp8266|ESP-XX]] modules. This tool is used to install firmware onto [[:boards:esp8266|ESP-XX]] modules.
  
 === Install === === Install ===
 +
 <code> <code>
-git clone https://github.com/themadinventor/esptool +sudo apt-get install python3-serial python3-pip python3-dev 
-cd esptool +rehash 
-python setup.py install+pip3 install esptool
 </code> </code>
  
-== Wiring ==+If there are complaints from python3, the you may need to 
 +do something similar to the following and try the above again 
 +<code> 
 +sudo mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.bak 
 +</code> 
 + 
 +Add $(HOME)/.local/bin to PATH 
 + 
 +<code> 
 +esptool.py version 
 +esptool.py v4.6.2 
 +4.6.2 
 +</code> 
 +=== Wiring ===
  
 <code> <code>
Line 28: Line 45:
 Use resistors for protection against mis-wiring. Use resistors for protection against mis-wiring.
  
-== Example usage ==+=== Usage === 
 + 
 +Older example 
 <code> <code>
 esptool.py -p /dev/ttyUSB0 read_mac esptool.py -p /dev/ttyUSB0 read_mac
-Connecting...+esptool.py v2.0-beta2 
 +Connecting.... 
 +Detecting chip type... ESP8266 
 +Uploading stub... 
 +Running stub... 
 +Stub running...
 MAC: 18:fe:34:XX:XX:XX MAC: 18:fe:34:XX:XX:XX
 +Hard resetting...
 </code> </code>
  
 +Newer example
 +
 +<code>
 +esptool.py -p /dev/ttyUSB0 read_mac
 +esptool.py v4.6.2
 +Serial port /dev/ttyUSB0
 +Connecting....
 +Detecting chip type... Unsupported detection protocol, switching and trying again...
 +Connecting....
 +Detecting chip type... ESP8266
 +Chip is ESP8285N08
 +Features: WiFi, Embedded Flash
 +Crystal is 26MHz
 +MAC: 60:01:94:b1:1b:ea
 +Uploading stub...
 +Running stub...
 +Stub running...
 +MAC: 60:01:94:b1:1b:ea
 +Hard resetting via RTS pin...
 +</code>