Trying to sort out an issue w/ the sleep examples, I began to wonder if I was compiling for the correct board. The "correct board" for me is the Pico 1/RP2040. However, when I use BOOTSEL and mount /dev/sdX1, I looked in the file INFO_UF2.TXT. Here's what I saw:
Which I can only take as a fairly clear indication that the SDK is building binaries for the "wrong board"; i.e. the Pico 2. Of course this may not be the case - but it is an indicator.
Perusing the Getting started with Raspberry Pi Pico, 2024-08-21 version, I found two notes that cover this, but they say completely opposite things WRT which board is the DEFAULT:
On the top of page 35:
IMPORTANT!
The SDK builds binaries for the Raspberry Pi Pico 2 by default. To build a binary for a different board, pass the -DPICO_BOARD= option to CMake, replacing the placeholder with the name of the board you’d like to target. To build a binary for Pico 2, pass -DPICO_BOARD=pico2. To build a binary for Pico W, pass -DPICO_BOARD=pico_w. You can specify a Wi-Fi network and password that your Pico W examples should connect to, by passing -DWIFI_SSID="Your Network" -DWIFI_PASSWORD="Your Password" too.
And near the top of page 39:
IMPORTANT!
The SDK builds binaries for the Raspberry Pi Pico by default. To build a binary for a different board, pass the -DPICO_BOARD= option to CMake, replacing the placeholder with the name of the board you’d like to target. To build a binary for Pico 2, pass -DPICO_BOARD=pico2. To build a binary for Pico W, pass -DPICO_BOARD=pico_w. To specify a Wi-Fi network and password that your Pico W should connect to, pass -DWIFI_SSID="Your Network" -DWIFI_PASSWORD="Your Password".
I would also like to suggest/recommend that somewhere in these instructions, a clearer, more useful explanation was provided on HOW to change the board - which may be different from project-to-project. Something more specific than "pass the option to CMake ...".
Trying to sort out an issue w/ the
sleep
examples, I began to wonder if I was compiling for the correct board. The "correct board" for me is the Pico 1/RP2040. However, when I useBOOTSEL
and mount/dev/sdX1
, I looked in the fileINFO_UF2.TXT
. Here's what I saw:Which I can only take as a fairly clear indication that the SDK is building binaries for the "wrong board"; i.e. the Pico 2. Of course this may not be the case - but it is an indicator.
Perusing the
Getting started with Raspberry Pi Pico, 2024-08-21 version
, I found two notes that cover this, but they say completely opposite things WRT which board is the DEFAULT:On the top of page 35:
And near the top of page 39:
I would also like to suggest/recommend that somewhere in these instructions, a clearer, more useful explanation was provided on HOW to change the board - which may be different from project-to-project. Something more specific than "pass the option to CMake ...".