Zephyr 相关下载
总链接:
链接:https://pan.baidu.com/s/1ItzXnCeiP-Dx1Fvr8IVTRw 提取码: 8p7c
Zephyr SDK Tools
zephyr-sdk-0.12.4-x86_64-linux-setup.run
(https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.12.4/zephyr-sdk-0.12.4-x86_64-linux-setup.run)
可替换下载链接:
https://download.fastgit.org/zephyrproject-rtos/sdk-ng/releases/download/v0.12.4/zephyr-sdk-0.12.4-x86_64-linux-setup.run
https://github.wuyanzheshui.workers.dev/zephyrproject-rtos/sdk-ng/releases/download/v0.12.4/zephyr-sdk-0.12.4-x86_64-linux-setup.run
现在新版本sdk拆分玩,老版本可以丢弃了
Zephyr SDK v0.10.0-setup.run
(https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.10.0/zephyr-sdk-0.10.0-setup.run)
zephyr-sdk-0.9.5-setup.run
(https://github.com/zephyrproject-rtos/meta-zephyr-sdk/releases/download/0.9.5/zephyr-sdk-0.9.5-setup.run)
zephyr-sdk-0.9.4-setup.run
https://github.com/zephyrproject-rtos/meta-zephyr-sdk/releases/download/0.9.4/zephyr-sdk-0.9.4-setup.run)
zephyr-sdk-0.9.3-setup.run
(https://github.com/zephyrproject-rtos/meta-zephyr-sdk/releases/download/0.9.3/zephyr-sdk-0.9.3-setup.run)
zephyr-sdk-0.9.2-setup.run
(https://github.com/zephyrproject-rtos/meta-zephyr-sdk/releases/download/0.9.2/zephyr-sdk-0.9.2-setup.run)
zephyr-sdk-0.9.1-setup.run
(https://github.com/zephyrproject-rtos/meta-zephyr-sdk/releases/download/0.9.1/zephyr-sdk-0.9.1-setup.run)
Zephyrproject
west init ~/zephyrproject
cd ~/zephyrproject
west update
得到的 zephyrproject_20210507.tar.xz
请先chown 修改文件属主,权限后 ,然后 west update 更新到最新版本即可
模拟器测试下
(参考 https://docs.zephyrproject.org/latest/samples/hello_world/README.html#hello-world)
cd ~/zephyrproject/zephyr
west build -p auto -b qemu_x86 samples/hello_world
west build -t run
退出组合键 CTRL+A x (CTRL+A 按下之后 再按x)
上真机试下
(参考 https://docs.zephyrproject.org/latest/boards/arm/stm32f103_mini/doc/index.html)
west build -p auto -b stm32f103_mini samples/basic/blinky
west flash