1
0
Supper Thomas b0b40ed45c [github/action] 添加scons显示编译时间的命令 (#10114) 1 сар өмнө
..
.ci b0b40ed45c [github/action] 添加scons显示编译时间的命令 (#10114) 1 сар өмнө
applications 1e3efd4937 [rtduino][pico] update README.md 10 сар өмнө
board d83d71cc05 [drivers/spi]统一软件SPI配置 2 сар өмнө
drivers bb91502465 [drivers] Specifies the name of the drivers driver file 7 сар өмнө
figures 00841bb0f5 [add] raspberry-pico elf2uf2.exe 4 жил өмнө
libcpu cb810dfe75 rt_hw_cpu_reset: remove all other rt_weak 1 жил өмнө
tools 299700cf78 [bsp][pico] Remove cmake dependency 1 жил өмнө
.config 3f26998f9c [bsp] update projects 1 жил өмнө
Kconfig fe3c4d456e bsp中option env语句替换为新语句,并同步更新了source "$xxx"语句 10 сар өмнө
README.md aa81fd4a88 [bsp][pico] update README.md (#9018) 11 сар өмнө
SConscript 6d36d384c2 add raspberry-pico bsp 4 жил өмнө
SConstruct 9328ad3215 update .ld and SConstruct files 1 жил өмнө
link.ld 859781232c Bug fixed while using UTEST framework (#8577) 1 жил өмнө
rtconfig.h 3f26998f9c [bsp] update projects 1 жил өмнө
rtconfig.py 261f5bee67 [bsp][pico] Update SDK to 1.5.1 1 жил өмнө

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: download pico sdk

pkgs --update

Step 2: build

scons -c
scons

gcc version >= 6.x.x

Step 3: flash

scons generates a UF2 file:

elf2uf2

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

Or you can use the picotool by:

picotool load rtthread-pico.uf2
picotool reboot

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 Support -
RTC Support -
SDIO - -
SPI Support -
TIMER Support -
WDT Support -
ADC Support -
FLASH Support -
PWM Support -