OK, I using the ESP32-DevKitC ESP-WROOM-32D (see the attached picture)
I have one module that I was working with and everything seem OK, but I think I zapped one of the GPIO pins with 5V because it wasn't operating correctly, or looking correct on a scope.
So, I bought a new module and tried to pick up where I left off, but on this one I can't flash the code.
I looks like the new modules I got were actually manufactured earlier than the board I damaged.
The 'old' part has the date code "CMIIT ID2018DP2467", the 'new' one has "CMIIT ID 2017DP2173"
The 'new' board outputs a lot more text at powerup, and I need to press the "Boot" button for 2 seconds before it says its ready for the download. On the old module, I didn't need to do that.
I'm using the Arduino IDE 1.8.12 in both cases.
Here is the output message that I get when downloading. It does fine at the start, which to mean indicates that its not a CP2102 driver issue.
Any help and/or ideas are appreciated!
Sketch uses 265716 bytes (20%) of program storage space. Maximum is 1310720 bytes.
Global variables use 14540 bytes (4%) of dynamic memory, leaving 313140 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 24:62:ab:f9:64:30
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 230400
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 9528.5 kbit/s)...
Hash of data verified.
Compressed 16832 bytes to 10888...
Writing at 0x00001000... (100 %)
Wrote 16832 bytes (10888 compressed) at 0x00001000 in 0.5 seconds (effective 274.2 kbit/s)...
Hash of data verified.
Compressed 265824 bytes to 137434...
Writing at 0x00010000... (11 %)
Writing at 0x00014000... (22 %)Traceback (most recent call last):
File "/home/steve/Arduino/hardware/espressif/esp32/tools/esptool/esptool.py", line 2959, in <module>
An error occurred while uploading the sketch
processing.app.SerialException: Error opening serial port '/dev/ttyUSB0'.
at processing.app.Serial.<init>(Serial.java:147)
at processing.app.Serial.<init>(Serial.java:82)
at processing.app.SerialMonitor$2.<init>(SerialMonitor.java:130)
at processing.app.SerialMonitor.open(SerialMonitor.java:130)
at processing.app.AbstractMonitor.resume(AbstractMonitor.java:132)
at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2107)
at processing.app.Editor.access$1300(Editor.java:117)
at processing.app.Editor$UploadHandler.run(Editor.java:2081)
at java.lang.Thread.run(Thread.java:748)
Caused by: jssc.SerialPortException: Port name - /dev/ttyUSB0; Method name - openPort(); Exception type - Port not found.
at jssc.SerialPort.openPort(SerialPort.java:167)
at processing.app.Serial.<init>(Serial.java:136)
... 8 more
Error opening serial port '/dev/ttyUSB0'.
_main()
File "/home/steve/Arduino/hardware/espressif/esp32/tools/esptool/esptool.py", line 2952, in _main
main()
File "/home/steve/Arduino/hardware/espressif/esp32/tools/esptool/esptool.py", line 2698, in main
operation_func(esp, args)
File "/home/steve/Arduino/hardware/espressif/esp32/tools/esptool/esptool.py", line 2158, in write_flash
esp.flash_defl_block(block, seq, timeout=DEFAULT_TIMEOUT * ratio * 2)
File "/home/steve/Arduino/hardware/espressif/esp32/tools/esptool/esptool.py", line 104, in inner
return func(*args, **kwargs)
File "/home/steve/Arduino/hardware/espressif/esp32/tools/esptool/esptool.py", line 632, in flash_defl_block
self.ESP_FLASH_DEFL_DATA, struct.pack('<IIII', len(data), seq, 0, 0) + data, self.checksum(data), timeout=timeout)
File "/home/steve/Arduino/hardware/espressif/esp32/tools/esptool/esptool.py", line 354, in check_command
val, data = self.command(op, data, chk, timeout=timeout)
File "/home/steve/Arduino/hardware/espressif/esp32/tools/esptool/esptool.py", line 343, in command
self._port.timeout = saved_timeout
File "/usr/lib/python2.7/dist-packages/serial/serialutil.py", line 304, in timeout
self._reconfigure_port()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 330, in _reconfigure_port
raise SerialException("Could not configure port: %s" % msg)
serial.serialutil.SerialException: Could not configure port: (5, 'Input/output error')