Georgiy
Published

Manual Zephyr RTOS Installation on Windows

This step-by-step guide shows you how to manually install and configure a powerful Zephyr RTOS environment on Windows.

IntermediateProtip68
Manual Zephyr RTOS Installation on Windows

Things used in this project

Software apps and online services

Zephyr RTOS
Zephyr Project Zephyr RTOS

Story

Read more

Code

zephyr-env.cmd

BatchFile
zephyr-env.cmd script
@echo off

REM Activate the Python virtual environment
call .venv\Scripts\activate.bat

REM Zephyr base folder
set BASE_DIR=D:\Zephyr

REM Variables for Zephyr
set ZEPHYR_BASE=%BASE_DIR%\zephyrproject\zephyr
set ZEPHYR_SDK_INSTALL_DIR=%BASE_DIR%\tools\zephyr-sdk
set ZEPHYR_TOOLCHAIN_VARIANT=zephyr

REM Paths to tools
set NINJA_DIR=%BASE_DIR%\tools\ninja
set OPENOCD_DIR=%BASE_DIR%\tools\openocd

REM Add everything to PATH
set PATH=^
%ZEPHYR_SDK_INSTALL_DIR%\arm-zephyr-eabi\bin;^
%ZEPHYR_SDK_INSTALL_DIR%\xtensa-espressif_esp32s3_zephyr-elf\bin;^
%NINJA_DIR%;^
%OPENOCD_DIR%\bin;^
%PATH%

REM Go to the desktop for convenience
cd /d %USERPROFILE%\Desktop

REM Open the command prompt
cmd

Credits

Georgiy
3 projects • 0 followers

Comments