$ esptool.py chip_id
esptool.py v2.5.1
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:0b:dd:53
Uploading stub...
Running stub...
Stub running...
Chip ID: 0x000bdd53
Hard resetting via RTS pin...
$ esptool.py chip_id
esptool.py v2.5.1
Found 1 serial ports
Serial port /dev/ttyUSB0
/dev/ttyUSB0 failed to connect: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
A fatal error occurred: All of the 1 available serial ports could not connect to a Espressif device.
sudo chmod 666 /dev/ttyUSB0
- set an UDEV rule to permanently allow the access
- add
$USER
todialout
group
$ esptool.py chip_id
esptool.py v2.5.1
Found 1 serial ports
Serial port /dev/ttyUSB0
/dev/ttyUSB0 failed to connect: [Errno 16] could not open port /dev/ttyUSB0: [Errno 16] Device or resource busy: '/dev/ttyUSB0'
A fatal error occurred: All of the 1 available serial ports could not connect to a Espressif device.
- Gather some infos which process/app use that Serial port. For example:
$ lsof /dev/ttyUSB0
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
screen 21416 wildan 5u CHR 188,0 0t0 499 /dev/ttyUSB0
- Kill that process/command:
killall screen
$ esptool.py chip_id
esptool.py v3.2
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting......................................
/dev/ttyUSB0 failed to connect: Failed to connect to Espressif device: No serial data received.
For troubleshooting steps visit: https://github.com/espressif/esptool#troubleshooting
- Press download button on the ESP32 generic module. (Some modules have this problem, you have to manually put them to boot mode. Another thing you can do if this problem persists to add a capacitor b/w rst pin and ground (Explaination below).
- Link to solution: Reddit Link
$ esptool.py chip_id
esptool.py v3.2
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting......................................
/dev/ttyUSB0 failed to connect: Failed to connect to Espressif device: Wrong boot mode detected (0x13)! The chip needs to be in download mode.
For troubleshooting steps visit: https://github.com/espressif/esptool#troubleshooting
A fatal error occurred: Could not connect to an Espressif device on any of the 1 available serial ports.
Observation: This usually happens with new boards which doesn't have micropython preinstalled.
- Press download button on the ESP32 generic module. (Some modules have this problem, you have to manually put them to boot mode. Another thing you can do if this problem persists to add a capacitor b/w rst pin and ground (Explaination below).
- Link to solution: Reddit Link