发帖
1 1 0

Ai-WB2-32S Linux Ubuntu下进行烧录

黎明将至!
中级会员

13

主题

2

回帖

474

积分

中级会员

积分
474
Ai-WB2系列 684 1 2024-2-21 17:42:56

前言

本期文档是为了介绍在Linux Ubuntu下如何烧录固件。

一、烧录前的准备

第1步 安装相关工具

sudo apt install build-essential python3 python3-pip git screen(这里博主已经安装过了)

image.png

第2步 从仓库中将项目克隆到虚拟机

git clone --recursive https://gitee.com/Ai-Thinker-Open/Ai-Thinker-WB2

image.png

image.png

第3步 切换到指定目录,并且赋予权限

cd ~/Ai-Thinker-WB2/toolchain/riscv/Linux/ . chmod755.sh

image.png

第4步 切换到Ai-Thinker-WB2/applications/get-started/helloworld/编译

cd ~/Ai-Thinker-WB2/applications/get-started/helloworld/ make -j8

image.png

image.png

第5步 烧录固件

make flash p=/dev/ttyUSB0 b=115200

如果直接执行的话,会有如下提示

image.png

连接开发板

image.png

image.png

image.png

image.png

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

image.png

image.png

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

image.png

image.png

image.png

二、使用注意

  • 烧录时确保模组连接了虚拟机
  • 打开串口调试助手前确保模组连接了主机

原链接:[https://blog.csdn.net/qq_54193285/article/details/135904935?spm=1001.2014.3001.5501](https://blog.csdn.net/qq_54193285/article/details/135904935?spm=1001.2014.3001.5501)

──── 1人觉得很赞 ────

使用道具 举报

2024-9-6 23:40:08
感恩的心 原来波特率要115200
您需要登录后才可以回帖 立即登录
高级模式
返回
统计信息
  • 会员数: 28097 个
  • 话题数: 39303 篇