So my laptop is picking up the ESP, but it’s failing to read and write from/to the flash. Any ideas?
I have soldered the connections per the sample above.
ESP/SERIAL
RX -> TX
TX > RX
GPI0 > GND
GND - > GND
(the above two are spliced into one dodgy wire connecting to the flasher GND)
VCC -> 3.3V
Could my solder connections just be bad?
nub@laptop:~$ esptool.py --port /dev/ttyUSB0 write_flash -fs 1MB -fm dout 0x0 ./Downloads/tasmota.bin
esptool.py v3.0
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: ec:fa:bc:7a:c5:7b
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 601072 bytes to 429021...
Wrote 601072 bytes (429021 compressed) at 0x00000000 in 37.7 seconds (effective 127.6 kbit/s)...
Traceback (most recent call last):
File "/home/nub/.local/bin/esptool.py", line 386, in command
p = self.read()
File "/home/nub/.local/bin/esptool.py", line 331, in read
return next(self._slip_reader)
File "/home/nub/.local/bin/esptool.py", line 2632, in slip_reader
read_bytes = port.read(1 if waiting == 0 else waiting)
File "/home/nub/.local/lib/python3.8/site-packages/serial/serialposix.py", line 595, in read
raise SerialException(
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/nub/.local/lib/python3.8/site-packages/serial/serialposix.py", line 398, in _reconfigure_port
orig_attr = termios.tcgetattr(self.fd)
termios.error: (5, 'Input/output error')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/nub/.local/bin/esptool.py", line 3969, in <module>
_main()
File "/home/nub/.local/bin/esptool.py", line 3962, in _main
main()
File "/home/nub/.local/bin/esptool.py", line 3604, in main
operation_func(esp, args)
File "/home/nub/.local/bin/esptool.py", line 3011, in write_flash
res = esp.flash_md5sum(address, uncsize)
File "/home/nub/.local/bin/esptool.py", line 113, in inner
return func(*args, **kwargs)
File "/home/nub/.local/bin/esptool.py", line 780, in flash_md5sum
res = self.check_command('calculate md5sum', self.ESP_SPI_FLASH_MD5, struct.pack('<IIII', addr, size, 0, 0),
File "/home/nub/.local/bin/esptool.py", line 413, in check_command
val, data = self.command(op, data, chk, timeout=timeout)
File "/home/nub/.local/bin/esptool.py", line 402, in command
self._port.timeout = saved_timeout
File "/home/nub/.local/lib/python3.8/site-packages/serial/serialutil.py", line 372, in timeout
self._reconfigure_port()
File "/home/nub/.local/lib/python3.8/site-packages/serial/serialposix.py", line 401, in _reconfigure_port
raise SerialException("Could not configure port: {}".format(msg))
serial.serialutil.SerialException: Could not configure port: (5, 'Input/output error')