发帖
1 0 0

bl602搭建nuttx环境

hdydy
论坛元老

48

主题

94

回帖

6296

积分

论坛元老

积分
6296
Ai-WB2系列 67 1 5 天前
[i=s] 本帖最后由 hdydy 于 2025-5-4 22:54 编辑 [/i]

bl602支持nuttx
image.png

安装WSL2
https://learn.microsoft.com/zh-cn/windows/wsl/install
https://documentation.ubuntu.com/wsl/en/stable/howto/install-ubuntu-wsl2/image.png

安装git,kconfig-frontends,make,unzip

sudo apt install git kconfig-frontends make unzip

获取nuttx源码

git clone --depth=1 https://github.com/apache/nuttx.git
git clone --depth=1 https://github.com/apache/nuttx-apps.git

或者gitee仓库

git clone --depth=1 https://gitee.com/yffbit/nuttx.git
git clone --depth=1 https://gitee.com/yffbit/nuttx-apps.git

注意nuttx,nuttx-apps在同一个文件夹下
image.png

安装toolchain
https://dev.bouffalolab.com/media/upload/download/toolchain_riscv_sifive_linux64.zip

unzip toolchain_riscv_sifive_linux64.zip
export PATH=~/toolchain_riscv_sifive_linux/bin:$PATH

查看内置项目

cd nuttx
./tools/configure.sh -L | grep bl602

image.png

配置编译项目

./tools/configure.sh -l bl602evb:nsh

image.png

(可选)设置编译选项 make menuconfig

image.png

编译 make -j

image.png

参考链接
https://nuttx.apache.org/docs/latest/platforms/risc-v/bl602/index.html

──── 0人觉得很赞 ────

使用道具 举报

越玩越复杂了😂,学不会了
您需要登录后才可以回帖 立即登录
高级模式
返回
统计信息
  • 会员数: 28680 个
  • 话题数: 40884 篇