本帖最后由 zzes 于 2023-9-27 21:57 编辑
社区的markdown编辑器真是难用的感人👀️
1. 开箱
![1695818904895.png 1695818904895.png](data/attachment/forum/202309/27/204833ia2j6zj9cx9jt8js.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/300)
![1695818859638.png 1695818859638.png](data/attachment/forum/202309/27/204758g7n8ocsc9sln9nuu.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/300)
![1695819054663.png 1695819054663.png](data/attachment/forum/202309/27/205113njucdtovpjohwxxd.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/300)
2. windows配置环境
参考资料: 零基础搭建小安派Windows 开发环境 - 小安派S1教程合集 - 物联网开发者社区-安信可论坛 - Powered by Discuz! (ai-thinker.com)
1) 拉取sdk
先拉取例程
git clone https://gitee.com/Ai-Thinker-Open/AiPi-Open-Kits.git
修改目录AiPi-Open-Kits 中的.gitmodules
[submodule "aithinker_Ai-M6X_SDK"]
path = aithinker_Ai-M6X_SDK
url = [email]git@gitee.com[/email]:Ai-Thinker-Open/aithinker_Ai-M6X_SDK.git
branch = release/AiPi_Eyes_SDK
拉取sdk
git submodule init
git submodule update
进入到sdk目录, 拉取编译工具
cd aithinker_Ai-M6X_SDK/
git submodule init
git submodule update
2) 把下面三个编译工具配置到环境变量
aithinker_Ai-M6X_SDK\toolchain_gcc_t-head_windows\bin
aithinker_Ai-M6X_SDK\tools\make
aithinker_Ai-M6X_SDK\tools\ninja
3. 编译例程
参考资料: windows下小安派USB烧录 - 小安派S1教程合集 - 物联网开发者社区-安信可论坛 - Powered by Discuz! (ai-thinker.com)
1) 进入例程
进入例程文件夹, win11直接右键在终端中打开 低版本系统shift+右键, 可以看到控制台打开的菜单
![1695821031095.png 1695821031095.png](data/attachment/forum/202309/27/212358sslddlslusq776dn.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/300)
执行make编译
![1695821154680.png 1695821154680.png](data/attachment/forum/202309/27/212602mie53l675iit222w.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/300)
2) 烧入开发板
配置flash_prog_cfg.ini 文件中的boot2_isp_mode 为0
按住开发板BURN 按钮, 再按RST , 重启到boot
查看设备管理器中串口号
![1695821382528.png 1695821382528.png](data/attachment/forum/202309/27/212948k28q2yn2gzrckkg7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/300)
执行烧录命令
make flash COMX=COM18
![1695821447326.png 1695821447326.png](data/attachment/forum/202309/27/213053nhtgg7e66g8t7fqu.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/300)
烧录结束后, 按RST 重启
可以查看天气程序已经成功烧入
![image.png image.png](data/attachment/forum/202309/27/213154blxlga4zhih44lml.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/300)
![1695822640111.png 1695822640111.png](data/attachment/forum/202309/27/215047gufs8u86uoyf888l.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/300)
|