You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/Hardware Support/Nano Family/Reset-the-Arduino-bootloader-on-the-Nano-ESP32.md
+24-12Lines changed: 24 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ These are some reasons you may want to reset the bootloader:
12
12
13
13
---
14
14
15
+
<aid="reset-the-bootloader"></a>
16
+
15
17
> [!TIP]
16
18
> 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.
17
19
@@ -35,16 +37,30 @@ Follow these steps:
35
37
36
38
8. Click on the **Esptool** option to select it.
37
39
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.
39
46
40
47
The process is complete when you see these lines:
41
48
42
49
```
43
-
Leaving...
50
+
Chip erase completed successfully in 2.7s
44
51
Hard resetting via RTS pin...
45
52
```
46
53
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.
48
64
49
65
## Troubleshooting
50
66
@@ -60,18 +76,14 @@ Try this:
60
76
61
77
* Ensure you are uploading the sketch by selecting **Sketch > Upload Using Programmer** and not by clicking the regular Upload button.
62
78
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
66
80
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.
68
82
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.
73
84
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.
75
87
76
88
[^colors]: On some earlier versions of the Nano ESP32, the LED will be blue instead of green, and yellow instead of purple.
0 commit comments