Arduino Nano ESP32 Constantly Rebooting

I have loaded software onto my Arduino Nano ESP32, and have made the mistake of having the loop() completely empty and a task on a different core running. This seems to be causing a watchdog issue, which is rebooting the board every second. The problem is, I cannot load new software that would fix the problem, as any time I load it the arduino disconnects then reconnects. Is there a way around this? To remove the current sketch without loading a new one?

Hi @terra51. You can recover the board from that state by the following procedure:

  1. Connect the Nano ESP32 board to your computer with the USB cable.
  2. Press and release the button on the board marked "RST".
  3. Wait for the RGB LED near the "RST" button to turn on.
    It does this almost immediately, but you do need to wait for it.
  4. While the RGB LED is still on (it only stays on for a second so you need to be somewhat quick), press and release the "RST" button again.
    The green LED of the RGB LED should now start pulsing. If not, repeat the process in case you didn't get the timing quite right.
  5. Upload a sketch to the board.

Hi there, has your problem been solved? I also encountered the same problem. Tried a lot of methods and it didn't solve it. Re-flashed the firmware according to the method downstairs. But the main.py file is still not cleared. It will still restart indefinitely. If you have solved the trouble, please reply. Thank you.

I solved the problem!This method is tested for yourself to make it workable.

2 Likes