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 ...
相关推荐
Zucker n1 天前
文献发现、课题组织与证据可追溯的论文阅读。
论文阅读·windows·ubuntu
flyingonpine2 天前
PowerShell脚本数字签名实战:自签名证书、代码签名与信任链验证
windows·信任链
goehou2 天前
让 AI 替我操作这台电脑,先把手能伸多远定下来
windows·自动化·权限管理·ai agent
公子小六2 天前
基于.NET的Windows窗体编程之WinForms数据持久化(1)
windows·microsoft·c#·.net·winforms
2601_967987373 天前
安装 Redis 或 Redis Stack
linux·windows·redis·macos·安装
xbzb3 天前
自定义 yum 软件源:Linux 上 createrepo,Windows 上纯 Python 也能造
linux·运维·windows·python·yum·createrepo
武雄(小星Ai)3 天前
Ollama报llama-server binary not found排坑实录:服务活着引擎没了
人工智能·windows·大模型·ollama·排坑
叼烟扛炮4 天前
[LangChain] 学习笔记(06):突破大模型限制——结构化输出(Structured Output)
windows·笔记·学习·langchain
Thneonl4 天前
桌宠穿透不是一行 SetWindowLong
windows·程序员
艺杯羹5 天前
Windows原生软件锁设计:从暴力杀进程丢数据到零轮询事件驱动架构
windows·系统架构·开源·开源软件·内存管理·开源协议