[i=s] 本帖最后由 hdydy 于 2025-5-4 22:54 编辑 [/i]
bl602支持nuttx

安装WSL2
https://learn.microsoft.com/zh-cn/windows/wsl/install
https://documentation.ubuntu.com/wsl/en/stable/howto/install-ubuntu-wsl2/
安装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在同一个文件夹下

安装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

配置编译项目
./tools/configure.sh -l bl602evb:nsh

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

编译 make -j

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