Getting Started with Zephyr on RISC-V - Ubuntu

Using a12.mill

Installation

Create a conda virtual environment.

conda create -yp ./.conda-env/ python=3.10
conda activate ./.conda-env/

Install system dependencies.

on a12.mill, cmake version is too low, so we need to install a newer one in conda environment.

conda install anaconda::cmake

additionally, we need these

conda install conda-forge::ninja

Install west, the build tool for zephyr.

pip install west

Create a new project.

Export a Zephyr CMake packagearrow-up-right. This allows CMake to automatically load boilerplate code required for building Zephyr applications.

Install Python dependencies.

Install Zephyr SDK

Build blinky

build for spike

on windows

https://github.com/ninja-build/ninja/releasesarrow-up-right

https://www.segger.com/downloads/jlink/arrow-up-right

https://7-zip.org/download.htmlarrow-up-right

The workflow roughly follows the official tutorial.

Last updated