Setting up RISC-V Toolchain - Windows 10

1. Install Make.

Follow the tutorial Install Make on Windows.

2. Download RISC-V Toolchain

Download RISC-V toolchain from here. We are going to need the toolchain and OpenOCD.

Note:

As of 2023-05-22, SiFive changed their website, and the OpenOCD is no longer available. Use the following archive links to download:

riscv-openocd-0.10.0-2020.12.1-x86_64-w64-mingw32.zip

riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-w64-mingw32.zip

Extract them to known locations, and put the path to system PATH.

D:\Documents\RISCV\riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-w64-mingw32\bin\
D:\Documents\RISCV\riscv-openocd-0.10.0-2020.12.1-x86_64-w64-mingw32\bin\

Last updated