From 1765ae44226ff305edf35467c0e907ba842490cd Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Tue, 6 Feb 2024 20:51:02 +0100 Subject: [PATCH] compile works --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a6d3831..3ddc800 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,15 +7,15 @@ set(CMAKE_CXX_STANDARD 17) # Initialise pico_sdk from installed location # (note this can come from environment, CMake cache etc) -set(PICO_SDK_PATH "/home/brodbemn/pico/pico-sdk") +#set(PICO_SDK_PATH "/home/brodbemn/pico/pico-sdk") set(PICO_BOARD pico CACHE STRING "Board type") # Pull in Raspberry Pi Pico SDK (must be before project) include(pico_sdk_import.cmake) -if (PICO_SDK_VERSION_STRING VERSION_LESS "1.4.0") - message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.4.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}") +if (PICO_SDK_VERSION_STRING VERSION_LESS "1.5.0") + message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.5.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}") endif() project(pico_keyer C CXX ASM) @@ -35,7 +35,8 @@ pico_enable_stdio_usb(pico_keyer 0) # Add the standard library to the build target_link_libraries(pico_keyer - pico_stdlib) + hardware_flash + pico_stdlib) # Add the standard include files to the build target_include_directories(pico_keyer PRIVATE