Getting ZephyrΒΆ

Note that a complete Getting Started Guide including installation instructions for different OSs is available in the Zephyr Project documentation.

Here, we will focus on a Ubuntu Linux based environment for simplicity and clarity.

First, you will need to install the following prerequisities:

sudo apt-get install --no-install-recommends git cmake ninja-build gperf \
  ccache dfu-util device-tree-compiler wget python3-pip python3-setuptools \
  python3-wheel xz-utils file make gcc gcc-multilib

Then, download the Zephyr source code and install additional dependencies:

git clone
cd zephyr
pip3 install --user -r scripts/requirements.txt

Set up the environment (do this always for a shell where you will be compiling/running Zephyr):

export ZEPHYR_SDK_INSTALL_DIR="/opt/zephyr-sdk/"
. ./

Download and install Zephyr SDK (note that you can use a different directory for the SDK installation by changing the shell variable set in the snippet above; the value used here is just a sane default):