Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

SDK • Re: Pico2W repeating alarm fails after about 1000 alarms

$
0
0
Can someone please try this exact code on an RPi Pico. Pico Information below. CMakeLists.,txt at the bottom

Code:

> picotool info -a timer-test.uf2 File timer-test.uf2 family ID 'rp2040':Program Information name:              timer-test features:          USB stdin / stdout binary start:      0x10000000 binary end:        0x10008108Fixed Pin Information noneBuild Information sdk version:       2.2.0 pico_board:        pico boot2_name:        boot2_w25q080 build date:        Jan 27 2026 build attributes:  Release
CMakeLists.txt

Code:

> cat ../CMakeLists.txt# Pull in SDK (must be before project)cmake_minimum_required(VERSION 3.16)set(PICO_BOARD pico)#set(PICO_BOARD pico2_w)include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)project(timer-test C CXX ASM)set(CMAKE_C_STANDARD 11)set(CMAKE_CXX_STANDARD 17)# initialize the Raspberry Pi Pico SDKpico_sdk_init()add_compile_options(-Wall)add_executable(timer-test  timer-test.c  )# pull in common dependenciestarget_link_libraries(timer-test pico_stdlib)# create map/bin/hex file etc.pico_add_extra_outputs(timer-test)# enable usb output, disable uart outputpico_enable_stdio_usb(timer-test 1)pico_enable_stdio_uart(timer-test 0)

Statistics: Posted by tomdean — Wed Jan 28, 2026 10:08 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles