Skip to content

Commit 176f604

Browse files
committed
Apply various suggestions based on discussions with @pillo79
1 parent 6d38df2 commit 176f604

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

content/Hardware Support/Nano Family/Reset-the-Arduino-bootloader-on-the-Nano-ESP32.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ These are some reasons you may want to reset the bootloader:
1212

1313
---
1414

15+
<a id="reset-the-bootloader"></a>
16+
1517
> [!TIP]
1618
> 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.
1719
@@ -35,16 +37,30 @@ Follow these steps:
3537

3638
8. Click on the **Esptool** option to select it.
3739

38-
9. Select **Sketch > Upload Using Programmer** to begin uploading the firmware.
40+
9. Select **Tools > Burn Bootloader** to erase the flash memory.
41+
42+
> [!WARNING]
43+
> Any data saved by sketches or MicroPython will be lost. Optionally, you can try skipping this step to preserve saved data.
44+
>
45+
> If you still experience issues with the upload process, or if the board is still not recognized, try repeating the procedure with this step included.
3946
4047
The process is complete when you see these lines:
4148

4249
```
43-
Leaving...
50+
Chip erase completed successfully in 2.7s
4451
Hard resetting via RTS pin...
4552
```
4653

47-
10. Press the **RST** button on top of the board to exit firmware download mode.
54+
10. Select **Sketch > Upload Using Programmer** to begin uploading the firmware.
55+
56+
The process is complete when you see these lines:
57+
58+
```
59+
Leaving...
60+
Hard resetting via RTS pin...
61+
```
62+
63+
11. Press the **RST** button on top of the board to exit firmware download mode.
4864
4965
## Troubleshooting
5066
@@ -60,18 +76,14 @@ Try this:
6076
6177
* Ensure you are uploading the sketch by selecting **Sketch > Upload Using Programmer** and not by clicking the regular Upload button.
6278
63-
### Must double-click the RESET pin to reload a sketch, or the board is only recognized once
64-
65-
Some users report having to double-click the RESET button every time they want to load a new sketch because their board is not recognized after the first upload.
79+
### If the board is only recognized once or requires a double-press reset to upload a sketch
6680
67-
This issue can be caused by previous data on the Flash memory confusing the Arduino bootloader. Most of the Flash memory is intentionally NOT erased by the above process, to preserve as much user data as possible.
81+
This issue can be caused by old data on the flash memory interfering with the Arduino bootloader.
6882
69-
To resolve this issue, you can following the same steps as above, but with a slight modification: before uploading the firmware in Step 9, select **Tools > Burn Bootloader**. This will erase all sectors of the Flash memory.
70-
71-
> [!WARNING]
72-
> Any data saved by sketches or Micropython in the user partition will be lost.
83+
To resolve the issue, follow the full [bootloader flashing procedure](#reset-the-bootloader), including the **Tools > Burn Bootloader** step.
7384
74-
After erasing the Flash, proceed with the rest of the Arduino bootloader upload as usual.
85+
> [!WARNING]
86+
> Any data saved by sketches or Micropython in the user partition will be lost.
7587
7688
[^colors]: On some earlier versions of the Nano ESP32, the LED will be blue instead of green, and yellow instead of purple.
7789

0 commit comments

Comments
 (0)