From ea30a8ac0460a91fd4fe5d69db540fb08c58a2be Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Thu, 20 Jan 2022 18:50:50 -0600 Subject: [PATCH] Reboot into the ROM bootloader from 1200 baud Per Scott, the purpose of this trick is to make the board programmable from Arduino even when CP is installed, so my convenience of escaping into UF2 is not going to work out. --- ports/espressif/supervisor/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/espressif/supervisor/port.c b/ports/espressif/supervisor/port.c index 05125cf4ec..2ca48db777 100644 --- a/ports/espressif/supervisor/port.c +++ b/ports/espressif/supervisor/port.c @@ -275,7 +275,7 @@ void reset_port(void) { } void reset_to_bootloader(void) { - common_hal_mcu_on_next_reset(RUNMODE_UF2); + common_hal_mcu_on_next_reset(RUNMODE_BOOTLOADER); esp_restart(); }