I was working on a custom BT Keyboard with an Arduino Nano ESP32, and everything was working fine. I wanted to see if I could improve the sketch so that it would use less energy, which didn't work. Now I am unable even to upload an empty sketch to the Arduino.
This issue is getting very frustrating. As I currently have 6 Nanos that I was programming with 3 completely different scripts that are unable to be programmed, despite trying everything I can find on the internet.
This is the error I get:
"C:\Users\UserName\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.11.0-arduino5/dfu-util" --device 0x2341:0x0070 -D "C:\Users\UserName\AppData\Local\arduino\sketches\B6AD3EDCF267622E93B4AC5955914B4C/BT_low_power.ino.bin" -Q
Failed to retrieve language identifiers
Failed to retrieve language identifiers
error get_status: LIBUSB_ERROR_PIPE
dfu-util 0.11-arduino4
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Opening DFU capable USB device...
Device ID 2341:0070
Device DFU version 0101
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
Failed uploading: uploading error: exit status 74
I have tried:
Clearing all items (even hidden) in Device Manager
Resetting the Arduino in every way I could find
Switching cables
Unplugging all external devices and restarting my computer
Using a completely different computer and uploading a blink sketch
Here are all the forum posts that I have gone through so far:
What you have not done is consult the docs for this special board. An Arduino NANO ESP32 is part Arduino and part ESP32. I am no expert, but your error logs look like you are in DFU mode instead of normal. Somewhere in the docs are instructions for how to do a reset. Sorry, my heart is acting up today, so that is the best I can do.