Learn how to reset the default Arduino bootloader on the Nano ESP32.
These are some reasons you may want to reset the bootloader:
- Update the Arduino bootloader already on the board. This can resolve issues with Nano ESP32 being misidentified as other ESP32 boards.
- Restore the ability to upload regular Arduino sketches to a Nano ESP32 that has been flashed with the MicroPython firmware.
Tip
Before you begin, it is recommended to have the latest version of the Arduino ESP32 Boards or esp32 boards package installed using the Board Manager.
Follow these steps:
-
Connect a jumper cable between the GND and B1 pins. The RGB LED will turn on with a green[1] color.
-
While the GND and B1 pins are shorted, press the white RST button on the top of the board to reset the board to firmware download mode.
-
Remove the jumper cable. The RGB LED should stay on, in a purple[1:1] color.
-
Open Arduino IDE.
-
Go to Tools > Port and select the board (it may be identified as an arbitrary ESP32 board).
-
Go to Tools > Board and select Arduino ESP32 Boards > Arduino Nano ESP32 (or esp32 > Arduino Nano ESP32 if you’re using the full esp32 package).
-
Open the Tools > Programmer menu.
-
Click on the Esptool option to select it.
-
Select Sketch > Upload Using Programmer to begin uploading the firmware.
The process is complete when you see these lines:
Leaving... Hard resetting via RTS pin...
-
Press the RST button on top of the board to exit firmware download mode.
Troubleshooting
dfu-util: No DFU capable USB device available
If you see this error, it means that the sketch is still being uploading with the regular upload process.
Try this:
-
Ensure that the Esptool option is selected in the Tools > Programmer menu. It needs to be actively selected, even if no other options are available. You will know the Esptool option is selected if a checkmark is displayed next to the name.
-
Ensure you are uploading the sketch by selecting Sketch > Upload Using Programmer and not by clicking the regular Upload button.