1ridic 261f5bee67 [bsp][pico] Update SDK to 1.5.1 2 tahun lalu
..
applications 15cd71bae6 [lvgl] adapt lvgl 8.3.0 3 tahun lalu
board 261f5bee67 [bsp][pico] Update SDK to 1.5.1 2 tahun lalu
drivers 261f5bee67 [bsp][pico] Update SDK to 1.5.1 2 tahun lalu
figures 00841bb0f5 [add] raspberry-pico elf2uf2.exe 5 tahun lalu
libcpu cb810dfe75 rt_hw_cpu_reset: remove all other rt_weak 2 tahun lalu
tools 261f5bee67 [bsp][pico] Update SDK to 1.5.1 2 tahun lalu
.config 261f5bee67 [bsp][pico] Update SDK to 1.5.1 2 tahun lalu
Kconfig 261f5bee67 [bsp][pico] Update SDK to 1.5.1 2 tahun lalu
README.md 261f5bee67 [bsp][pico] Update SDK to 1.5.1 2 tahun lalu
SConscript 6d36d384c2 add raspberry-pico bsp 5 tahun lalu
SConstruct 9bc68d26a4 format Kconfig and sconscript 3 tahun lalu
link.ld 261f5bee67 [bsp][pico] Update SDK to 1.5.1 2 tahun lalu
rtconfig.h 261f5bee67 [bsp][pico] Update SDK to 1.5.1 2 tahun lalu
rtconfig.py 261f5bee67 [bsp][pico] Update SDK to 1.5.1 2 tahun lalu

README.md

Raspberry PICO

Introduction

Raspberry Pi Pico is a low-cost, high-performance microcontroller board with flexible digital interfaces.

Key features include:

  • RP2040 microcontroller chip designed by Raspberry Pi in the United Kingdom
  • Dual-core Arm Cortex M0+ processor, flexible clock running up to 133 MHz
  • 264KB of SRAM, and 2MB of on-board Flash memory
  • Castellated module allows soldering direct to carrier boards
  • USB 1.1 with device and host support
  • Low-power sleep and dormant modes

  • Drag-and-drop programming using mass storage over USB

  • 26 × multi-function GPIO pins

  • 2 × SPI, 2 × I2C, 2 × UART, 3 × 12-bit ADC, 16 × controllable PWM channels

  • Accurate clock and timer on-chip

  • Temperature sensor

  • Accelerated floating-point libraries on-chip

  • 8 × Programmable I/O (PIO) state machines for custom peripheral support

Pico-R3-Pinout

Supported compiler

Support GCC 6 and above compilers. CMake and Scons is needed.

Program firmware

Step 1: download pico sdk

pkgs --update

Step 2: generate necessary files

python ./tools/generate_files.py

Use PICO_TOOLCHAIN_PATH to specify the compilation toolchain location, for example:

env PICO_TOOLCHAIN_PATH=/opt/rt-gcc-arm-none-eabi/bin ./tools/generate_files.py
``

### Step 3: build

bash scons -c scons


**gcc version >= 6.x.x**

### Step 4: flash

scons generates a UF2 file:

![elf2uf2](figures/elf2uf2.png)

- Copy the rtthread-pico.uf2 file to the "RPI-RP2" disk
- Then led blink.

Or you can use the picotool by:

bash picotool load rtthread-pico.uf2 picotool reboot


## Running Result

The output information on serial port should be like this:

bash \ | /

  • RT - Thread Operating System / | \ 4.0.3 build Jan 28 2021 2006 - 2021 Copyright by rt-thread team Hello, RT-Thread! msh > ``` ## Peripheral Condition | Drive | Support | Remark | | ----- | ------- | ------- | | UART | Support | UART0/1 | | GPIO | Support | 0-29 | | I2C | - | - | | RTC | - | - | | SDIO | - | - | | SPI | - | - | | TIMER | - | - | | WDT | - | - |