由 黎明将至! 贡献,Ai-Thinker 进行整理
Ai-WB2-32S Linux Ubuntu下进行烧录
前言
本期文档是为了介绍在Linux Ubuntu下如何烧录固件。
一、烧录前的准备
第1步 安装相关工具
sudo apt install build-essential python3 python3-pip git screen(这里博主已经安装过了) 
第2步 从仓库中将项目克隆到虚拟机
git clone --recursive https://gitee.com/Ai-Thinker-Open/Ai-Thinker-WB2

第3步 切换到指定目录,并且赋予权限
cd ~/Ai-Thinker-WB2/toolchain/riscv/Linux/ . chmod755.sh 
第4步 切换到Ai-Thinker-WB2/applications/get-started/helloworld/编译
cd ~/Ai-Thinker-WB2/applications/get-started/helloworld/ make -j8 

第5步 烧录固件
make flash p=/dev/ttyUSB0 b=115200 如果直接执行的话,会有如下提示
连接开发板 


在上图提示下需要按下模组的RST键 

第6步 断开模组与虚拟机的连接并打开串口调试助手




