|
|
2 năm trước cách đây | |
|---|---|---|
| .. | ||
| applications | 3 năm trước cách đây | |
| board | 2 năm trước cách đây | |
| drivers | 2 năm trước cách đây | |
| figures | 5 năm trước cách đây | |
| libcpu | 2 năm trước cách đây | |
| tools | 2 năm trước cách đây | |
| .config | 2 năm trước cách đây | |
| Kconfig | 2 năm trước cách đây | |
| README.md | 2 năm trước cách đây | |
| SConscript | 5 năm trước cách đây | |
| SConstruct | 3 năm trước cách đây | |
| link.ld | 2 năm trước cách đây | |
| rtconfig.h | 2 năm trước cách đây | |
| rtconfig.py | 2 năm trước cách đây | |
Raspberry Pi Pico is a low-cost, high-performance microcontroller board with flexible digital interfaces.
Key features include:
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
Support GCC 6 and above compilers. CMake and Scons is needed.
pkgs --update
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:

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