1.3 Install the Zephyr SDK

  1. Come out of the zephyrproject directory.

    $ cd ~

  2. Download the SDK package.
    1. $ wget github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.2/zephyr-sdk-0.17.2_linux-x86_64.tar.xz

    2. $ wget -O - https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.2/sha256.sum | shasum --check --ignore-missing

  3. Extract the file.

    $ tar xvf zephyr-sdk-0.17.2_linux-x86_64.tar.xz

  4. Run the Zephyr SDK bundle setup script.
    1. $ cd zephyr-sdk-0.17.2/

    2. $ ./setup.sh

    Press y to install host tools and register Zephyr SDK CMake package.

  5. Install “udev” rules.
    1. $ sudo cp ~/zephyr-sdk-0.17.2/sysroots/x86_64-pokysdk-linux/usr/share/openocd/contrib/60-openocd.rules /etc/udev/rules.d

    2. $ sudo udevadm control --reload

Note: While doing the test, we used Zephyr SDK version 0.17.2. Please check out the following link to find the latest Zephyr SDK version.