rt-thread/bsp/raspberry-pico
Shicheng Chu 5c4b44f81e
[bsp][pico]add: drv_spi and drv_i2c
2023-07-30 08:36:47 -04:00
..
applications [lvgl] adapt lvgl 8.3.0 2022-07-07 16:55:25 +08:00
board [bsp/raspberry-pico] fix sys_tick setting wrong clock source 2023-05-16 20:19:07 -04:00
drivers [bsp][pico]add: drv_spi and drv_i2c 2023-07-30 08:36:47 -04:00
figures [add] raspberry-pico elf2uf2.exe 2021-02-02 17:38:19 +08:00
libcpu [kernel] 将rt_thread结构体改为显式继承rt_object (#7131) 2023-04-04 09:06:27 -04:00
libraries [bsp][pico]add: drv_spi and drv_i2c 2023-07-30 08:36:47 -04:00
.config [bsp][pico]update: add drv_adc (#7603) 2023-06-05 15:52:31 +08:00
Kconfig format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
README.md [bsp][raspberry-pico]add uart1 support. 2021-03-24 20:03:52 +08:00
SConscript add raspberry-pico bsp 2021-01-28 19:59:59 +08:00
SConstruct format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
link.ld [bsp][raspberry-pico]All memory is used for heap. 2021-03-24 18:57:23 +08:00
rtconfig.h [bsp][pico]update: add drv_adc (#7603) 2023-06-05 15:52:31 +08:00
rtconfig.py [bsp/raspberry-pico] add: SMP (#6888) 2023-02-02 12:19:33 +08:00

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.

Program firmware

Step 1: build

scons -c
scons

gcc version >= 6.x.x

Step 2: flash

scons generates a UF2 file:

elf2uf2

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

Running Result

The output information on serial port should be like this:

 \ | /
- 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 - -