Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Unable to load code for ESP32 Dev Module board #140

Closed
gustavomaltez opened this issue Nov 20, 2019 · 2 comments
Closed

Unable to load code for ESP32 Dev Module board #140

gustavomaltez opened this issue Nov 20, 2019 · 2 comments
Labels
topic: CLI Anything that has to implemented on the CLI side first type: imperfection Something isn't working

Comments

@gustavomaltez
Copy link

gustavomaltez commented Nov 20, 2019

Describe the bug
Unable to load code for ESP32 Dev Module board

OUTPUT ERROR

usage: esptool write_flash [-h] [--erase-all]
                           [--flash_freq {keep,40m,26m,20m,80m}]
                           [--flash_mode {keep,qio,qout,dio,dout}]
                           [--flash_size FLASH_SIZE]
                           [--spi-connection SPI_CONNECTION] [--no-progress]
                           [--verify] [--compress | --no-compress]
                           <address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'c:\\Users\\DNSGS\\Documents\\Arduino\\sketch_oct12a\\sketch_november20a/sketch_november20a.esp32.esp32.esp32.partitions.bin'
Upload error: Error: uploading error: exit status 2
usage: esptool write_flash [-h] [--erase-all]
                           [--flash_freq {keep,40m,26m,20m,80m}]
                           [--flash_mode {keep,qio,qout,dio,dout}]
                           [--flash_size FLASH_SIZE]
                           [--spi-connection SPI_CONNECTION] [--no-progress]
                           [--verify] [--compress | --no-compress]
                           <address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'c:\\Users\\DNSGS\\Documents\\Arduino\\sketch_oct12a\\sketch_november20a/sketch_november20a.esp32.esp32.esp32.partitions.bin'
Upload error: Error: uploading error: exit status 2
usage: esptool write_flash [-h] [--erase-all]
                           [--flash_freq {keep,40m,26m,20m,80m}]
                           [--flash_mode {keep,qio,qout,dio,dout}]
                           [--flash_size FLASH_SIZE]
                           [--spi-connection SPI_CONNECTION] [--no-progress]
                           [--verify] [--compress | --no-compress]
                           <address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'c:\\Users\\DNSGS\\Documents\\Arduino\\sketch_oct12a\\sketch_november20a/sketch_november20a.esp32.esp32.esp32.partitions.bin'
Upload error: Error: uploading error: exit status 2
usage: esptool write_flash [-h] [--erase-all]
                           [--flash_freq {keep,40m,26m,20m,80m}]
                           [--flash_mode {keep,qio,qout,dio,dout}]
                           [--flash_size FLASH_SIZE]
                           [--spi-connection SPI_CONNECTION] [--no-progress]
                           [--verify] [--compress | --no-compress]
                           <address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'c:\\Users\\DNSGS\\Documents\\Arduino\\sketch_oct12a\\sketch_november20a/sketch_november20a.esp32.esp32.esp32.partitions.bin'
Upload error: Error: uploading error: exit status 2
usage: esptool write_flash [-h] [--erase-all]
                           [--flash_freq {keep,40m,26m,20m,80m}]
                           [--flash_mode {keep,qio,qout,dio,dout}]
                           [--flash_size FLASH_SIZE]
                           [--spi-connection SPI_CONNECTION] [--no-progress]
                           [--verify] [--compress | --no-compress]
                           <address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'c:\\Users\\DNSGS\\Documents\\Arduino\\sketch_oct12a\\sketch_november20a/sketch_november20a.esp32.esp32.esp32.partitions.bin'
Upload error: Error: uploading error: exit status 2
@gustavomaltez gustavomaltez added the type: imperfection Something isn't working label Nov 20, 2019
@bastian2001
Copy link

bastian2001 commented Jan 12, 2020

I have the same problem with another error. I have also tried manually putting the ESP32 into download mode. Same error with or without doing that:

Traceback (most recent call last):
  File "esptool.py", line 2959, in <module>
  File "esptool.py", line 2952, in _main
  File "esptool.py", line 2652, in main
  File "esptool.py", line 222, in __init__
  File "site-packages\serial\__init__.py", line 88, in serial_for_url
  File "site-packages\serial\serialwin32.py", line 62, in open
serial.serialutil.SerialException: could not open port 'COM7': WindowsError(5, 'Zugriff verweigert')
Failed to execute script esptool
Upload error: Error: 2 UNKNOWN: uploading error: exit status 4294967295

Windows 10 1903 on a Ryzen 7 1700 with Arduino Pro IDE 0.0.3-alpha.preview

@per1234
Copy link
Contributor

per1234 commented Feb 18, 2021

Hi @gustavomaltez. Thanks so much for taking the time to report this serious bug! It turned out to be a problem with the Arduino CLI tool the Arduino Pro IDE uses under the hood for a lot of the Arduino-specific things that aren't related to the GUI. It was fixed by arduino/arduino-cli#457

This should now be working in the new 0.1.4 release of Arduino Pro IDE.

If you try it out and find that the problem is still occurring, feel free to comment here and we'll investigate.


Also reported at https://github.com/arduino/arduino-pro-ide/issues/116

@per1234 per1234 closed this as completed Feb 18, 2021
@per1234 per1234 added the topic: CLI Anything that has to implemented on the CLI side first label Feb 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: CLI Anything that has to implemented on the CLI side first type: imperfection Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants