Zephyr Windows开发环境搭建

Zephyr

如果有错误或未及时更新,请以官网文档为主

官网:https://docs.zephyrproject.org/latest/develop/getting_started/index.htm

下载安装

Chocolatey

这是一个类似于在Linux系统下 yum 和 apt 那样的包管理器

官网:https://chocolatey.org/install

在管理员权限下powershell输入命令安装Chocolatey

powershell 复制代码
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

安装成功后查询版本

powershell 复制代码
choco -v

成功如下

安装插件

全局关闭确认,避免安装软件时询问

powershell 复制代码
choco feature enable -n allowGlobalConfirmation

Cmake Git Python 等所需工具

powershell 复制代码
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
powershell 复制代码
choco install ninja gperf python311 git dtc-msys2 wget 7zip

Zephyr SDK

官网: https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.5-1/zephyr-sdk-0.16.5-1_windows-x86_64.7z

不科学上网根本下不完,分享一个国内网盘

百度网盘:https://pan.baidu.com/s/1Ot9ZvyKSB4mNlndLiEl-rQ?pwd=1122

下载解压后找到 setup.cmd 用 powershell 执行

powershell 复制代码
.\setup.cmd

成功如下

powershell 复制代码
Zephyr SDK 0.16.5-1 Setup

** NOTE **
You only need to run this script once after extracting the Zephyr SDK
distribution bundle archive.

Install host tools [Y,N]?Y
Register Zephyr SDK CMake package [Y,N]?Y

Installing host tools ...
SKIPPED: Windows host tools are not available yet.

Registering Zephyr SDK CMake package ...
Zephyr-sdk (D:/YingLiWork/zephyr-sdk-0.16.5-1_windows-x86_64/zephyr-sdk-0.16.5-1/cmake)
has been added to the user package registry in:
HKEY_CURRENT_USER\Software\Kitware\CMake\Packages\Zephyr-sdk


All done.

Press any key to exit ...
相关推荐
cpsvps_net15 小时前
美国服务器环境下Windows容器工作负载智能弹性伸缩
windows
甄超锋15 小时前
Java ArrayList的介绍及用法
java·windows·spring boot·python·spring·spring cloud·tomcat
cpsvps17 小时前
美国服务器环境下Windows容器工作负载基于指标的自动扩缩
windows
网硕互联的小客服20 小时前
Apache 如何支持SHTML(SSI)的配置方法
运维·服务器·网络·windows·php
etcix21 小时前
implement copy file content to clipboard on Windows
windows·stm32·单片机
许泽宇的技术分享21 小时前
Windows MCP.Net:基于.NET的Windows桌面自动化MCP服务器深度解析
windows·自动化·.net
非凡ghost1 天前
AMS PhotoMaster:全方位提升你的照片编辑体验
windows·学习·信息可视化·软件需求
mortimer1 天前
一次与“顽固”外部程序的艰难交锋:subprocess 调用exe踩坑实录
windows·python·ai编程
gameatp1 天前
从 Windows 到 Linux 服务器的全自动部署教程(免密登录 + 压缩 + 上传 + 启动)
linux·服务器·windows
穷人小水滴1 天前
在 windows 运行 flatpak 应用 (WSL)
linux·windows·ubuntu