Raspberry Pi Pico#
- Template: lf-pico-uc-template
- Pico SDK: github.com/raspberrypi/pico-sdk
- Documentation: raspberrypi.com/documentation/pico-sdk
- Supported Boards: Pico Series
Prerequisites#
Install the ARM toolchain: Install ARM Cross-Compiler
Install picotool: Install Picotool
Setup#
Clone and initialize submodules:
git clone https://github.com/lf-lang/lf-pico-uc-template.git my-project
cd my-project
git submodule update --init --recursive
Building#
Configure and build:
This creates build/Blink.elf.
Flashing#
Put the Pico into BOOTSEL mode (hold BOOTSEL while connecting USB), then:
Changing the Application#
Edit LF_MAIN in CMakeLists.txt or via command line:
Log Level#
Board Variants#
For Pico 2 (RP2350):
For Pico W:
Cleaning#
Network Channels#
| Channel | Mode | Description |
|---|---|---|
| UART | Polled | Serial point-to-point |