August 10, 2022

Raspberry Pi Pico - the SDK

I cloned this from Github. When I tried to build the PicoProbe (which uses the SDK), I got this message:
CMake Warning at /u1/Projects/rp2040/pico-sdk/src/rp2_common/tinyusb/CMakeLists.txt:10 (message):
  TinyUSB submodule has not been initialized; USB support will be unavailable

  hint: try 'git submodule update --init' from your SDK directory
  (/u1/Projects/rp2040/pico-sdk).
So I did this:
cd /u1/Projects/rp2040/pico-sdk
git submodule update --init
Submodule 'lib/btstack' (https://github.com/bluekitchen/btstack.git) registered for path 'lib/btstack'
Submodule 'lib/cyw43-driver' (https://github.com/georgerobotics/cyw43-driver.git) registered for path 'lib/cyw43-driver'
Submodule 'lib/lwip' (https://github.com/lwip-tcpip/lwip.git) registered for path 'lib/lwip'
Submodule 'lib/mbedtls' (https://github.com/Mbed-TLS/mbedtls.git) registered for path 'lib/mbedtls'
Submodule 'tinyusb' (https://github.com/hathach/tinyusb.git) registered for path 'lib/tinyusb'
Cloning into '/u1/Projects/rp2040/pico-sdk/lib/btstack'...
Cloning into '/u1/Projects/rp2040/pico-sdk/lib/cyw43-driver'...
Cloning into '/u1/Projects/rp2040/pico-sdk/lib/lwip'...
Cloning into '/u1/Projects/rp2040/pico-sdk/lib/mbedtls'...
Cloning into '/u1/Projects/rp2040/pico-sdk/lib/tinyusb'...
After this, I was able to build the PicoProbe.

Examples

A big collection of examples are provided in their own Github repository. I decided to investigate the "blink" example in detail:


Have any comments? Questions? Drop me a line!

Tom's electronics pages / [email protected]