Hi,
I am facing an issue with my Arduino Nano ESP32 board.
Normal upload using the Upload button is not working. The code uploads only when I use “Burn Bootloader” followed by “Upload using Programmer”. After uploading this way, the board is detected as both a COM port and also as an “Arduino DFU” device (with a warning) in Device Manager.
Also, after one successful upload, the USB becomes unstable and sometimes disconnects or fails to detect properly.
Why is this happening, and how can I restore normal upload using the serial (esptool) method?
Thanks.
Start by uploading a simple sketch like the blink example and check if the problem persists if you upload that sketch a number of times. If you can upload the blink example numerous times the problem is in your sketch.
You board uses native USB for communication with the PC; bugs in your code might result in the board not being detected or not being able to upload.
Boards with native USB usually react on a double tap of the reset button; the LED should fade in and out.
I'm not familiar with your board.
@harish6363 ,
Your topic was moved to its current location as it is more suitable.
Could you also take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.
Thank you
Hello @harish6363, and welcome to the forums!
Please try following the reflash bootloader steps outlined here, including step 9 for a full chip erase. You can use the Blink example as @sterretje said.
EDIT: Just re-read your post. To clarify, the "normal" upload on the Nano ESP32 is via DFU and can be restored with the steps above.
If you want to use esptool instead, you always need to use "Upload using programmer" and put the board in ROM recovery mode (short B1+GND, short press on RESET, remove short).