README.md
1# Raspberry PICO
2
3## Introduction
4
5**Raspberry Pi Pico is a low-cost, high-performance microcontroller board with flexible digital interfaces.**
6
7**Key features include:**
8
9- RP2040 microcontroller chip designed by Raspberry Pi in the United Kingdom
10- Dual-core Arm Cortex M0+ processor, flexible clock running up to 133 MHz
11- 264KB of SRAM, and 2MB of on-board Flash memory
12- Castellated module allows soldering direct to carrier boards
13- USB 1.1 with device and host support
14- Low-power sleep and dormant modes
15
16- Drag-and-drop programming using mass storage over USB
17- 26 × multi-function GPIO pins
18- 2 × SPI, 2 × I2C, 2 × UART, 3 × 12-bit ADC, 16 × controllable PWM channels
19- Accurate clock and timer on-chip
20- Temperature sensor
21- Accelerated floating-point libraries on-chip
22- 8 × Programmable I/O (PIO) state machines for custom peripheral support
23
24
25
26
27
28## Supported compiler
29
30Support GCC 6 and above compilers.
31
32## Program firmware
33
34### Step 1: download pico sdk
35
36```bash
37pkgs --update
38```
39
40### Step 2: build
41
42```bash
43scons -c
44scons
45```
46
47**gcc version >= 6.x.x**
48
49### Step 3: flash
50
51scons generates a UF2 file:
52
53
54
55- Copy the rtthread-pico.uf2 file to the "RPI-RP2" disk
56- Then led blink.
57
58Or you can use the picotool by:
59
60```bash
61picotool load rtthread-pico.uf2
62picotool reboot
63```
64
65## Running Result
66
67The output information on serial port should be like this:
68
69```bash
70 \ | /
71- RT - Thread Operating System
72 / | \ 4.0.3 build Jan 28 2021
73 2006 - 2021 Copyright by rt-thread team
74Hello, RT-Thread!
75msh >
76```
77
78## Peripheral Condition
79
80| Drive | Support | Remark |
81| ----- | ------- | ------- |
82| UART | Support | UART0/1 |
83| GPIO | Support | 0-29 |
84| I2C | Support | - |
85| RTC | Support | - |
86| SDIO | - | - |
87| SPI | Support | - |
88| TIMER | Support | - |
89| WDT | Support | - |
90| ADC | Support | - |
91| FLASH | Support | - |
92| PWM | Support | - |
93