Skip to content

Commit 26eea4e

Browse files
committed
Merge branch 'main' of github.com:sparkfun/sparkfun-python
2 parents 8f2da0b + c2d8012 commit 26eea4e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/mcu_setup.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@
1313
Get our latest MicroPython firmware for your board from our [MicroPython release page](https://github.com/sparkfun/micropython/releases). Different platforms have different methods of flashing:
1414

1515

16-
## RP2 Boards
16+
### RP2 Boards
1717
While connected to your computer, hold the "boot" button on the RP2 board while you press and release the "reset" button to enter bootloader mode. Your board will appear as a regular drive on your computer that you can add files to. Drag and drop the correct .uf2 file from the most recent release from the link above onto your board and it will reboot, now running MicroPython.
1818

1919
Connect to it with one of the [suggested development environments](#suggested-development-environments) below.
2020

21-
## ESP32 Boards
22-
Download the .zip archive for your board from the release link above and extract it. If you have not already, [download the esptool utility](https://docs.espressif.com/projects/esptool/en/latest/esp32/installation.html). Then, use ```esptool``` to flash your board using the command specified in the README.md contained in the .zip archive you downloaded for your board. Make sure you run the command from within that directory as well. For example, one ESP32 release contains a `bootloader.bin`, `partition-table.bin`, and `micropython.bin`.
21+
### ESP32 Boards
22+
Download the .zip archive for your board from the release link above and extract it. If you have not already, [download the esptool utility](https://docs.espressif.com/projects/esptool/en/latest/esp32/installation.html). Then, use ```esptool``` to flash your board using the command specified in the README.md contained in the .zip archive you downloaded for your board. Make sure you run the command from within that directory as well. For example, one ESP32 release contains a `bootloader.bin`, `partition-table.bin`, `micropython.bin`, and `README.md`. By reading the `README.md` I see that the command I must run FROM WITHIN THIS EXTRACTED DIRECTORY is:
23+
24+
```python -m esptool --chip esp32 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 40m 0x1000 bootloader.bin 0x8000 partition-table.bin 0x10000 micropython.bin```
25+
26+
Connect to it with one of the [suggested development environments](#suggested-development-environments) below.
2327

2428
## Suggested Development Environments
2529

0 commit comments

Comments
 (0)