【祖传点灯】安信可Ai-M61-32S+Vcode
首先十分感谢安信可给予此次活动的开发板体验机会,这次本次对开发板的祖传点灯实验的操作过程,如有不足之处还望指正。
1.VS code 代码编辑器安装下载连接:
下载地址 https://code.visualstudio.com
1.克隆代码
通过git工具拉取代码
git clone https://gitee.com/Ai-Thinker-Open/AiPi-Open-Kits.git -b master
![1.png 1.png](data/attachment/forum/202405/07/205800uo9rii50b07700be.png)
2.拉取Ai-M61的SDK子模块
进入AiPi-Open-Kits文件中,用文本编辑器打开 .gitmodules文件对url参数中断github改成gitee
![2.png 2.png](data/attachment/forum/202405/07/210322lzpp5v5odvvvjix1.png)
![3.png 3.png](data/attachment/forum/202405/07/211046es5g2f7wg7agggoj.png)
进入AiPi-Open-Kits
通过git工具执行下面命令:
cd AiPi-Open-Kits/
git submodule init
git submodule update
![7.png 7.png](data/attachment/forum/202405/07/212156lpyeyieyujuglizs.png)
进入aithinker_Ai-M6X_SDK中拉取模块
执行下面命令:
cd aithinker_Ai-M6X_SDK/
git submodule init
git submodule update
![6.png 6.png](data/attachment/forum/202405/07/212040mlyxbzjvxrvjdhee.png)
在aithinker_Ai-M6X_SDK文件中拉取工具链:
git clone https://gitee.com/bouffalolab/toolchain_gcc_t-head_windows.git -b master
2.编译工具环境配置
在电脑的环境变量中添加以下路径:
aithinker_Ai-M6X_SDK\toolchain_gcc_t-head_windows\bin
aithinker_Ai-M6X_SDK\tools\make
aithinker_Ai-M6X_SDK\tools\ninja
![5.png 5.png](data/attachment/forum/202405/07/212510cl4l2qm64egq7emr.png)
3编译点灯程序
在Vcode打开仓库源码同通过make命令进行编译
![8.png 8.png](data/attachment/forum/202405/07/212816bdmvdle9nith6j0o.png)
4.程序的烧录
在中断运行下面指令:
make flash COMX=COMx
x为端口数字,按照烧录提示按复位键即可完成烧录
点灯效果如图所示:
![11.png 11.png](data/attachment/forum/202405/07/214047xb3py44hej5y5h84.png)
![12.png 12.png](data/attachment/forum/202405/07/214058v50v5shko3ffhfp3.png)
![13.png 13.png](data/attachment/forum/202405/07/214108uqycwijrjjly1jcn.png)
|