Skip to content

Commit b88c6b7

Browse files
committed
Add a "quick start" section for RISC-V to the readme
1 parent 7b4b2b7 commit b88c6b7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,23 @@ instructions for other platforms, and just in general, we recommend you see [Ras
201201
# RISC-V support on RP2350
202202
203203
See [Raspberry Pi Pico-series C/C++ SDK](https://rptl.io/pico-c-sdk) for information on setting up a build environment for RISC-V on RP2350.
204+
205+
## RISC-V quick start
206+
207+
The [pico-sdk-tools](https://github.com/raspberrypi/pico-sdk-tools/releases) repository contains some prebuilt versions of the RISC-V compiler. See [v2.0.0-5](https://github.com/raspberrypi/pico-sdk-tools/releases/tag/v2.1.0-0) for the latest versions of the RISC-V toolchain.
208+
209+
You can use these to get a working RISC-V compiler on Raspberry Pi OS for example.
210+
211+
```
212+
wget https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-aarch64-lin.tar.gz
213+
sudo mkdir -p /opt/riscv/riscv-toolchain-14
214+
sudo chown $USER /opt/riscv/riscv-toolchain-14
215+
tar xvf riscv-toolchain-14-aarch64-lin.tar.gz -C /opt/riscv/riscv-toolchain-14
216+
```
217+
218+
To use the RISC-V compiler to build code you need to set a couple of environment variables and run cmake from fresh.
219+
220+
```
221+
export PICO_TOOLCHAIN_PATH=/opt/riscv/riscv-toolchain-14/
222+
export PICO_PLATFORM=rp2350-riscv
223+
```

0 commit comments

Comments
 (0)