各位关注先楫的小伙伴们,基于Zephyr v3.7.0(LTS)版本和hpm_sdk v1.10.0版本的Zephyr SDK glue v0.6.0正式发布了。
Repo链接: https://github.com/hpmicro/zephyr_sdk_glue
提供了基于zephyr驱动框架的驱动适配


推荐使用ubuntu系统进行工程构建、编译以及烧写,windows系统进行代码编写以及串口打印查看
若需要支持在Linux与Windows之间的文件共享以及编辑,请在Linux设备上适当地安装和配置samba、vim等常用软件。
安装所依赖的软件
sudo apt install --no-install-recommends git cmake ninja-build gperf \
ccache dfu-util device-tree-compiler wget\
python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file\
make gcc gcc-multilib g++-multilib libsdl2-dev libmagic1
确认工具版本最低等级,主要为cmake,dtc的版本,版本不够需要升级。
pip3 install--user-U west
echo'export PATH=~/.local/bin:"$PATH"'>> ~/.bashrc
source ~/.bashrc
mkdir${workspace}
cd${workspace}
west init -m https://github.com/hpmicro/zephyr_sdk_glue.git --mr main
west config manifest.file west_gitee.yml
west update
west zephyr-export
pip3 install--user-r ~/${workspace}/zephyr/scripts/requirements.txt
west supply
下载zephyr的编译工具,链接为:https://github.com/zephyrproject-rtos/sdk-ng/tags/
命令行安装
cd${workspace}
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.5/zephyr-sdk-0.16.5_linux-x86_64.tar.xz
wget-O - https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.5/sha256.sum | shasum --check --ignore-missing
tar xvf zephyr-sdk-0.16.5_linux-x86_64.tar.xz
cd zephyr-sdk-0.16.5
source setup.sh
推荐使用源码编译,使用默认安装路径 /usr/local/bin/openocd
下载链接为:https://github.com/hpmicro/riscv-openocd/releases/tag/hpm_xpi_v0.3.0
解压后,请将openocd路径放置在 /usr/local/bin/openocd,以便脚本调取
全部0条评论
快来发表一下你的评论吧 !