Zephyr Windows开发环境搭建
Zephyr
如果有错误或未及时更新,请以官网文档为主
官网:https://docs.zephyrproject.org/latest/develop/getting_started/index.htm
下载安装
Chocolatey
这是一个类似于在Linux系统下 yum 和 apt 那样的包管理器
官网:https://chocolatey.org/install
在管理员权限下powershell输入命令安装Chocolatey
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'))
安装成功后查询版本
choco -v
成功如下
安装插件
全局关闭确认,避免安装软件时询问
choco feature enable -n allowGlobalConfirmation
Cmake Git Python 等所需工具
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
choco install ninja gperf python311 git dtc-msys2 wget 7zip
Zephyr SDK
不科学上网根本下不完,分享一个国内网盘
百度网盘:https://pan.baidu.com/s/1Ot9ZvyKSB4mNlndLiEl-rQ?pwd=1122
下载解压后找到 setup.cmd 用 powershell 执行
.\setup.cmd
成功如下
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 ...
原文地址:https://blog.csdn.net/xue_nuo/article/details/137872052
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!