35
218
5870
论坛元老
[i=s] 本帖最后由 molun 于 2023-8-8 11:32 编辑 [/i]<br /> <br />
Build with Windows CMD
参考网址:[https://bl-mcu-sdk.readthedocs.io/zh_CN/latest/get_started/windows_cmd.html#id1](https://bl-mcu-sdk.readthedocs.io/zh_CN/latest/get_started/windows_cmd.html#id1)
首先安装 git 工具
下载网址:[https://git-scm.com/](https://git-scm.com/)
使用 git 下载 RISC-V 工具链
进入到要下载的目录,鼠标右键,选择在终端中打开
git clone [https://gitee.com/bouffalolab/toolchain_gcc_t-head_windows.git](https://gitee.com/bouffalolab/toolchain_gcc_t-head_windows.git`)
git clone [https://gitee.com/bouffalolab/toolchain_gcc_t-head_windows.git
从开源社区下载 bl_mcu_sdk 软件开发包
下载地址:[https://gitee.com/bouffalolab/bouffalo_sdk.git](https://gitee.com/bouffalolab/bouffalo_sdk.git)
可以使用 git clone 或者直接 download 的方式下 SDK
使用 git clone 前请确保已正确安装 git,打开支持 git 的终端输入以下命令即可获取最新的 SDK
git clone [https://gitee.com/bouffalolab/bl_mcu_sdk.git](https://gitee.com/bouffalolab/bl_mcu_sdk.git) --recursive
添加系统环境变量
将 make、ninja、下载的 risc-v 工具链路径配置到系统环境变量中, 其中 make 和 ninja 工具位于 bouffalo_sdk/tools 目录下。
打开高级系统设置>环境变量
兄弟们,记得最后点击确定啊!别问我为啥这么说。
重启生效
windows 11 配置完以后需要重启电脑才生效。
验证环境
完成上述步骤以后,需要检查是否真的安装成功。打开 powershell 或者 cmd,输入下列命令:
make -v
riscv64-unknown-elf-gcc -v
安装成功
输出上面的类似内容说明环境安装成功,下篇介绍固件编译烧录。
使用道具 举报
本版积分规则 回帖并转播 回帖后跳转到最后一页
首页
分类
我的