When I try to upload anything to a ESP32-WROOM Thing Plus C I get the following error:
Sketch uses 259809 bytes (19%) of program storage space. Maximum is 1310720 bytes.
Global variables use 16400 bytes (5%) of dynamic memory, leaving 311280 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.3
Serial port /dev/cu.usbserial-14120
Connecting..........Traceback (most recent call last):
File "esptool.py", line 5387, in
File "esptool.py", line 5380, in _main
File "esptool.py", line 4802, in main
File "esptool.py", line 1056, in flash_set_parameters
File "esptool.py", line 495, in check_command
File "esptool.py", line 468, in command
File "esptool.py", line 413, in read
StopIteration
[64004] Failed to execute script 'esptool' due to unhandled exception!
The code really doesn't matter. I believe the exception is raising in this function:
def read(self):
"""Read a SLIP packet from the serial port"""
return next(self._slip_reader)
in the loader.py file. It doesn't seem like this should fail but I am no Python expert. Does anybody know why this would fail? Am I the only one seeing this? Does anybody know how I take the esptool github tool and make the executable Arduino IDE uses?
But if you are messing around with it, you are probably better off to just run the Python script directly. The only reason they convert it to an executable is because otherwise Python would be a dependency of using the ESP32 boards platform and the average Arduino user on macOS (and Windows) finds it very challenging to install the right Python version and add it to the system path.