Uploading to Nano esp32 interrupted, DFUerror

Hello people!
Trying to program a new Nano esp32, but flashing is intrerrupted every time between 0-30%.

I'm trying to upload an empty sketch and blink, nothing seems to want to stick.

Any ideas?

Opening DFU capable USB device...
Device ID 2341:0070
Device DFU version 0101
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0101
Device returned transfer size 4096
Copying data from PC to DFU device
Download	[=======                  ]  28%        81920 bytes does not exist or your board is not connected
Download	[========                 ]  33%        98304 bytes failed!
DFU state(10) = dfuERROR, status(14) = Something went wrong, but the device does not know what it was

Or this

Download	[                         ]   0%            0 bytesError during download (LIBUSB_ERROR_IO)
Error during download (LIBUSB_ERROR_IO)

Download	[=                        ]   4%        12288 bytes

Tested with a few different cables.
Also on another computer, exactly the same behavior..

@Chris_Beeves

Might be some sort of USB trouble you're going through, but I still suggest you try a recovery path:

  • unplug the board
  • use a jumper to connect B1 and GND (see picture)
  • LED will become Blue
  • open a blink sketch
  • select the board from the board manager
  • in the menu Programmer, select esptool
  • select "upload using programmer"

This will reflash the Arduino bootloader and should get the board back to life.
Once this is done, disconnect the board from the computer, remove the jumper, reconnect and try again

Thank you! I’ll give this a try!

Sketch uses 286853 bytes (9%) of program storage space. Maximum is 3145728 bytes.
Global variables use 30732 bytes (9%) of dynamic memory, leaving 296948 bytes for local variables. Maximum is 327680 bytes.
usage: esptool [-h]
               [--chip {auto,esp8266,esp32,esp32s2,esp32s3beta2,esp32s3,esp32c3,esp32c6beta,esp32h2beta1,esp32h2beta2,esp32c2,esp32c6,esp32h2}]
               [--port PORT] [--baud BAUD]
               [--before {default_reset,usb_reset,no_reset,no_reset_no_sync}]
               [--after {hard_reset,soft_reset,no_reset,no_reset_stub}]
               [--no-stub] [--trace] [--override-vddsdio [{1.8V,1.9V,OFF}]]
               [--connect-attempts CONNECT_ATTEMPTS]
               {load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,merge_bin,get_security_info,version}
               ...
esptool: error: argument --baud/-b: invalid arg_auto_int value: '{upload.speed}'
esptool: error: argument --baud/-b: invalid arg_auto_int value: '{upload.speed}'

This is all I get

Hello @Chris_Beeves, what OS are you using? Can you try updating your IDE to the latest version available here?

I'm using W11 and 1.8.19 (IDE2 doesn't start on my PC)
I'll try using my old laptop..

It's aliiiive! Thank you.

Now I have to figure out why IDE2 won't start on my W11..

1 Like

Glad it's now working! :slightly_smiling_face: :+1:

Please open another discussion in the Software/IDE 2.x category and let us know about the issue you are facing with Windows 11. You can get a detailed debugging log of the IDE2 startup by following the steps in this post.

Happy hacking! :hammer_and_wrench:

1 Like