Table of contents
Xiaoanpai - open source hardware
1. Clone the Ai-Thinker repository
Enter in the terminal of linux
git clone https://github.com/Ai-Thinker-Open/AiPi-Open-Kits.git
Clone the DEMO warehouse of the entire open source hardware
2. Pull submodule
First enter the AiPi-Open-Kits directory
cd AiPi-Open-Kits
Enter the following two commands in this directory to initialize and pull submodules
git submodule init
git submodule update
Enter aithinker_Ai-M6X_SDK, pull the SDK sub-module and set the path
. install.sh
. export.sh
3. Compile and burn
Under AiPi-Open-Kits, you can see the Demo folders of various Xiaoanpai, use the cd command to enter the Demo that needs to be compiled and burned
cd 对应Demo目录文件夹
make //编译命令
make flash COMX=/dev/ttyUSB0 //烧录命令
Note: "Please Press Reset Key!" will appear after starting the burning command, you need to press the RST key on the module to continue burning
Example - Burn AiPi-Cam
1. Prepare AiPi-Cam-D and USB to TTL, the wiring is as follows
AiPi-Cam-D | connection | USB to TTL |
---|---|---|
VCC | ------ | 3.3V |
RX | ------ | TX |
TX | ------ | RX |
GND | ------ | GND |
2. Compile and burn firmware
(1) Enter the directory folder of AiPi-Cam
(2) Enter make to compile firmware
(3) Enter make flash COMX=/dev/ttyUSB0, press RST after "Please Press Reset Key!" appears
(4) Appear "All Success "Indicates that the burning is successful
contact us
AiPi official website docs: https://docs.ai-thinker.com/cam
Xiaoanpai GitHub open source warehouse address: https://github.com/Ai-Thinker-Open/AiPi-Open-Kits