I am VERY new to micropython and have struggled through finally getting a python environment setup and Micropython installed there. I am trying to flash the ESP32 Nano but keep getting an error 1, protocol error. I have micropython selected and the interpreter, have the correct port selected, have downloaded the latest firmware,
v1.24.1 (2024-11-29) .bin file. The upload process starts but always ends with the same error. I believe this last time I got the board in the mode bu burn the flash only to end up with the protocol error. I have included the log from my last attempt. Hopefully someone can point me in the direction I need to get this up and running.
********************************************************************************************
Error Log follows:
/home/ron/ESPenv/esp/bin/esptool.py --port /dev/ttyACM0 erase_flash
esptool.py v4.8.1
Serial port /dev/ttyACM0
Connecting...
Traceback (most recent call last):
File "/home/ron/ESPenv/esp/bin/esptool.py", line 37, in <module>
esptool._main()
File "/home/ron/ESPenv/esp/lib/python3.12/site-packages/esptool/__init__.py", line 1314, in _main
main()
File "/home/ron/ESPenv/esp/lib/python3.12/site-packages/esptool/__init__.py", line 803, in main
esp = esp or get_default_connected_device(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ron/ESPenv/esp/lib/python3.12/site-packages/esptool/__init__.py", line 1193, in get_default_connected_device
_esp = detect_chip(
^^^^^^^^^^^^
File "/home/ron/ESPenv/esp/lib/python3.12/site-packages/esptool/cmds.py", line 99, in detect_chip
detect_port.connect(connect_mode, connect_attempts, detecting=True)
File "/home/ron/ESPenv/esp/lib/python3.12/site-packages/esptool/loader.py", line 730, in connect
last_error = self._connect_attempt(reset_strategy, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ron/ESPenv/esp/lib/python3.12/site-packages/esptool/loader.py", line 606, in _connect_attempt
reset_strategy() # Reset the chip to bootloader (download mode)
^^^^^^^^^^^^^^^^
File "/home/ron/ESPenv/esp/lib/python3.12/site-packages/esptool/reset.py", line 47, in __call__
self.reset()
File "/home/ron/ESPenv/esp/lib/python3.12/site-packages/esptool/reset.py", line 114, in reset
self._setDTRandRTS(False, False)
File "/home/ron/ESPenv/esp/lib/python3.12/site-packages/esptool/reset.py", line 89, in _setDTRandRTS
fcntl.ioctl(self.port.fileno(), TIOCMSET, struct.pack("I", status))
OSError: [Errno 71] Protocol error
Erase command returned with error code 1
***********************************************************************************
Thanks for the help.