Skip to content

Commit 37aa351

Browse files
pillo79seaxwi
andauthored
add note about erasing flash memory to fix upload issues (#481)
* add note about erasing flash memory to fix upload issues * Apply various suggestions based on discussions with @pillo79 --------- Co-authored-by: seaxwi <[email protected]>
1 parent c6c33e3 commit 37aa351

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

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

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ Learn how to reset the default Arduino bootloader on the Nano ESP32.
88
These are some reasons you may want to reset the bootloader:
99

1010
* Update the Arduino bootloader already on the board. This can resolve issues with Nano ESP32 being misidentified as other ESP32 boards.
11-
* Restore the ability to upload regular Arduino sketches to a Nano ESP32 that has been flashed with the MicroPython firmware.
11+
* Restore the ability to upload regular Arduino sketches to a Nano ESP32 that has been flashed with MicroPython or other third-party firmware images.
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,6 +76,15 @@ 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
79+
### If the board is only recognized once or requires a double-press reset to upload a sketch
80+
81+
This issue can be caused by old data on the flash memory interfering with the Arduino bootloader.
82+
83+
To resolve the issue, follow the full [bootloader flashing procedure](#reset-the-bootloader), including the **Tools > Burn Bootloader** step.
84+
85+
> [!WARNING]
86+
> Any data saved by sketches or Micropython in the user partition will be lost.
87+
6388
[^colors]: On some earlier versions of the Nano ESP32, the LED will be blue instead of green, and yellow instead of purple.
6489
6590
<!-- markdownlint-disable-file HC001 -->

0 commit comments

Comments
 (0)