AI WB2 SDK Ubuntu 环境搭建

安装依赖

shell 复制代码
sudo apt install build-essential python3 python3-pip git screen

下载SDK

shell 复制代码
git clone --recursive https://gitee.com/Ai-Thinker-Open/Ai-Thinker-WB2

修改权限

在toolchain文件夹有三个平台的编译工具,我们使用Linux平台

进入Linux,执行shell脚本

  • Darwin
shell 复制代码
 cd toolchain/riscv/Darwin/
 . chmod755.sh 
  • Linux
shell 复制代码
 cd toolchain/riscv/Linux/
 . chmod755.sh 
  • MSYS
shell 复制代码
 cd toolchain/riscv/MSYS/
 . chmod755.sh 

编译Hello Word 工程

进入Helloword文件夹

shell 复制代码
make -j8

烧录

请连接您的Ai-WB2串口开发板,并根据提示按下EN按钮。

shell 复制代码
make flash p=/dev/ttyUSB0 b=921600

帮助

此外,您还可以使用此命令查看帮助信息。

shell 复制代码
make help

您的配置芯片型号为Ai-Thinker Ai-WB2 Wi-Fi与BLE模块

欢迎使用Ai-WB2 SDK构建系统。可用的make目标:

  • "make all" - Build app, components
  • "make clean" - Remove all app components output
  • "make flash" - Build and download firmware
  • "make flash-only" - Only download firmware
  • "make eflash" - Use the flash after erasing it
  • "make erase_flash" - Erase all internal contents of flash
  • "make list-components" - List all components in the project
  • "make component name" - build a component as a library
相关推荐
SkyWalking中文站2 小时前
认识 Horizon UI · 6/17:Trace 探索器
运维·监控·自动化运维
用户120487221614 小时前
Linux驱动编译与加载
linux·嵌入式
火车叼位6 小时前
写给初级开发者:SSL、SSH、HTTPS 与证书体系全解析
运维
用户8055336980310 小时前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式
用户8055336980310 小时前
RK-Forge外设系列开篇 - 把板子从「能启动」变成「能用」:Ethernet/SPI/MMC 三个纯接线外设
linux·github·嵌入式
小猿姐17 小时前
唯品会大规模数据库云原生实践:基于 KubeBlocks 管理数千实例的统一运维之路
运维·elasticsearch·云原生
七歌杜金房1 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac
SkyWalking中文站1 天前
认识 Horizon UI · 5/17:3D 基础设施地图
运维·监控·自动化运维
tntxia2 天前
linux curl命令详解_curl详解
linux
扛枪的书生2 天前
Linux 网络管理器用法速查
linux