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 ...
相关推荐
N0zoM1z02 小时前
域内用户名枚举 实验
windows
梓䈑5 小时前
【C语言】自定义类型:结构体
c语言·开发语言·windows
感谢地心引力7 小时前
【MATLAB2024b】安装离线帮助文档(windows)
windows·matlab
退居二线程序员1 天前
【完-网络安全】Windows注册表
windows
Ling-X51 天前
红日靶机(三)笔记
linux·windows·内网渗透·靶机笔记·vulnstack
GEEKVIP1 天前
iPhone/iPad技巧:如何解锁锁定的 iPhone 或 iPad
windows·macos·ios·智能手机·笔记本电脑·iphone·ipad
百事牛1 天前
防止错误输入!Excel单元格限制输入内容的三种有效方式
windows·excel
风竹夜1 天前
记录一次病毒启动脚本
c++·windows·安全·编辑器·batch·福昕阅读器
dvlinker1 天前
选择网络安全模式启动Windows系统,解决PC无法连接网络问题
网络·windows·安全模式·连不上网络·无法联网·网络安全模式
看山还是山,看水还是。1 天前
win系统网络重置
windows·笔记·全文检索