Don't know if this helps but it shows the three lines I added to 'CMakeLists.txt' to set PICO_FLASH_SPI_CLKDIV when I was testing how over-clocked my Pico could go -
I would suggest starting with something simple like the usual "Hello World!" program. Get that working, then move on to adding audio support and whatever.
Code:
set(PROJECT max_freq)cmake_minimum_required(VERSION 3.12)include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)project(${PROJECT} C CXX ASM)pico_sdk_init()add_executable(${PROJECT} main.c)pico_define_boot_stage2(slower_boot2 ${PICO_DEFAULT_BOOT_STAGE2_FILE})target_compile_definitions(slower_boot2 PRIVATE PICO_FLASH_SPI_CLKDIV=4)pico_set_boot_stage2(${PROJECT} slower_boot2)target_link_libraries(${PROJECT} pico_stdlib)target_compile_options(${PROJECT} PRIVATE -Wall -Werror)pico_add_extra_outputs(${PROJECT})pico_enable_stdio_usb(${PROJECT} 1)pico_enable_stdio_uart(${PROJECT} 0)pico_set_binary_type(${PROJECT} no_flash)
Statistics: Posted by hippy — Wed Jul 31, 2024 10:52 am