From 0328d954fe558669a5db5192fbc54504bebdc761 Mon Sep 17 00:00:00 2001 From: Renze Nicolai Date: Mon, 18 Jul 2022 02:08:36 +0200 Subject: [PATCH] Increase startup delay and use generic stage 2 bootloader, these changes allow some "broken" boards to boot properly --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 195e2b8..87e1b26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,9 @@ set(BOOTLOADER rp2040_bootloader) # Board type set(PICO_BOARD none) +# Fixes that allow some MCH2022 badges with a slowly starting oscillator to boot properly +add_compile_definitions(PICO_BOOT_STAGE2_CHOOSE_GENERIC_03H=1 PICO_XOSC_STARTUP_DELAY_MULTIPLIER=64) + # SDK include($ENV{PICO_SDK_PATH}/pico_sdk_init.cmake)