Skip to content

Commit 189fc7c

Browse files
authored
Merge pull request #1407 from FoamyGuy/custom_bootloader_entry
support custom bootloader entry instructions
2 parents b06e762 + e846ea6 commit 189fc7c

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

_board/m5stack_cardputer.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ board_image: "m5stack_cardputer.jpg"
1010
date_added: 2024-03-10
1111
family: esp32s3
1212
bootloader_id: adafruit_feather_esp32s3_nopsram
13+
bootloader_nonstandard_entry_instructions: "After installing the UF2 bootloader, enter the bootloader by: Press and release Btn Rst, then press and release Btn G0."
1314
downloads_display: true
1415
features:
1516
- Speaker

_includes/download/board.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
{% assign bootloader_version = bootloaders[page.family].version %}
1111
{% assign bootloader_id = page.bootloader_id %}
1212
{% assign releases = stable | concat: unstable %}
13+
{% assign bootloader_instructions = page.bootloader_nonstandard_entry_instructions %}
1314
{% capture download_url %}https://downloads.circuitpython.org/bin/{{ board_id}}{% endcapture %}
1415
{% for version in releases %}
1516
<div class="section {% if version.stable %}stable{% else %}unstable{% endif %}">
@@ -259,11 +260,15 @@ <h3>Install, Repair, or Update UF2 Bootloader</h3>
259260
</ul>
260261
</li>
261262
</ul>
262-
<p>
263+
{% if bootloader_instructions == nil %}
264+
<p>
263265
After installing the UF2 bootloader, enter the bootloader by double-clicking the reset button.
264266
On boards with an RGB status LED, tap reset once, wait for the LED to turn purple, and tap
265267
again before the purple goes away. On other boards, consult the board documentation.
266268
</p>
269+
{% else %}
270+
<p>{{ bootloader_instructions }}</p>
271+
{% endif %}
267272
<p>
268273
After you update, check <b>INFO_UF2.TXT</b> to verify that the bootloader version has been updated.
269274
Then you will need to load or reload CircuitPython using the <b>.uf2</b> file.

0 commit comments

Comments
 (0)