From 79a1fbc8dbaa21c353ed2840d75b0d8b501d2777 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Sun, 22 Aug 2021 08:10:07 +0100 Subject: [PATCH] Use new pico_clone_default_boot2 for changing SPI clock divisor --- software/apps/bad_apple/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/apps/bad_apple/CMakeLists.txt b/software/apps/bad_apple/CMakeLists.txt index 923e2fb..ee89e1b 100644 --- a/software/apps/bad_apple/CMakeLists.txt +++ b/software/apps/bad_apple/CMakeLists.txt @@ -10,7 +10,7 @@ add_executable(bad_apple # Increase CLKDIV to 4, because we're going to run the system at 372 MHz, and # the flash gets rather unhappy if you try to clock it at 186 MHz -pico_define_boot_stage2(bad_apple_boot2 ${PICO_SDK_PATH}/src/rp2_common/boot_stage2/boot2_w25q080.S) +pico_clone_default_boot_stage2(bad_apple_boot2) target_compile_definitions(bad_apple_boot2 PRIVATE PICO_FLASH_SPI_CLKDIV=4) pico_set_boot_stage2(bad_apple bad_apple_boot2)