aboutsummaryrefslogtreecommitdiffstats
path: root/src/rp2040/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rp2040/main.c')
-rw-r--r--src/rp2040/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rp2040/main.c b/src/rp2040/main.c
index 462e69c6..eac3a0b9 100644
--- a/src/rp2040/main.c
+++ b/src/rp2040/main.c
@@ -6,6 +6,7 @@
#include <stdint.h> // uint32_t
#include "board/misc.h" // bootloader_request
+#include "generic/armcm_reset.h" // try_request_canboot
#include "hardware/structs/clocks.h" // clock_hw_t
#include "hardware/structs/pll.h" // pll_hw_t
#include "hardware/structs/resets.h" // sio_hw
@@ -45,6 +46,7 @@ DECL_INIT(watchdog_init);
void
bootloader_request(void)
{
+ try_request_canboot();
// Use the bootrom-provided code to reset into BOOTSEL mode
reset_to_usb_boot(0, 0);
}