本帖最后由 st780206 于 2025-6-1 01:08 编辑
1.首先需要搭建 Ai-WB2 开发环境
根据 [color=rgba(0, 0, 0, 0.87)]Ai-WB2系列模组二次开发Linux开发环境搭建[color=rgba(0, 0, 0, 0.87)]https://aithinker.blog.csdn.net/article/details/125604649 进行搭建,帖子中说明很详细,我的现有系统是Debian12 , 帖子中是Ubuntu,照着做也完成了没有出现问题。
1。 以root用户登录的。
安装一下程序
apt install cutecom (串口工具)
apt install git
添加用户
adduser ai_wb2
添加组
usermod -a -G dialout ai_wb2
切换用户
su ai_wb2
切换目录
cd
克隆程序
git clone https://github.com/bouffalolab/bl_iot_sdk.git
cd customer_app/get-start/helloworld/
编译
./genromap
成功后,复制文件到windows,烧录测试
下载软件:https://docs.ai-thinker.com/_media/ai-wb2/docs/v1.7.4-release.zip
打开后,选BL602
烧录程序
同时按下BURN和EN两个按键,先松开EN按键再松开BURN按键
打开putty,设置串口波特率为2000000
重启wb2
putty上显示helloword
开发板上的led蓝灯也点亮了
|