So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By aik
#95924 Well, any esptool operation really ends with timeout like below. I tried esptool from github (v4.5? the latest) and v2.5 (old versions even fail detecting the mac). The module is on breadboard with five 10K pullups/pulldowns. This is the first time I am trying this tiny module, espp8266 with usb-serial on board ("nodemcu"?) always worked so I am really not sure sure about this one, any hints?

Linux fedora 36.

Code: Select all[aik@aikyoga esptool]$ python3 ./esptool.py flash_id
esptool.py v3.3
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting.....................
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: b4:e6:2d:46:d5:b4
Uploading stub...
Running stub...
Stub running...
Traceback (most recent call last):
  File "./esptool.py", line 5387, in <module>
    _main()
  File "./esptool.py", line 5380, in _main
    main()
  File "./esptool.py", line 4812, in main
    operation_func(esp, args)
  File "./esptool.py", line 4245, in flash_id
    flash_id = esp.flash_id()
  File "./esptool.py", line 835, in flash_id
    return self.run_spiflash_command(SPIFLASH_RDID, b"", 24)
  File "./esptool.py", line 1131, in run_spiflash_command
    old_spi_usr = self.read_reg(SPI_USR_REG)
  File "./esptool.py", line 708, in read_reg
    val, data = self.command(self.ESP_READ_REG, struct.pack('<I', addr), timeout=timeout)
  File "./esptool.py", line 468, in command
    p = self.read()
  File "./esptool.py", line 413, in read
    return next(self._slip_reader)
StopIteration