This post was last edited by Hamster who doesn't like carrots on 2024-9-26 23:06
Start building the development environment today
1. Preparation
1. Hardware:
Development board kit: K230 development board, data cable
Additional preparations for users: a TF card for storing the system, with a recommended capacity of 2G+ (because the image img file provided by 01studio is 1.07G), TF card reader
2. Software:
IDE installation package, image file, burning software, etc. can be obtained from the Baidu network disk provided by 01studio
2. IDE installation
Because the IDE of K230 is different from that of K210, even if you have installed the IDE of K210 before, you need to install it again for K230.
The IDE exe file of K230 is in the following path
Here I will also put the official download path of Canaan: https://developer.canaan-creative.com/resource?selected=0-2-1
01studio already provides the latest version 4.0.7, so I will not download it from the official website anymore, and just use the one in Baidu Cloud Disk.
IDE installation is very simple, basically the next step
I will not change the installation path, use the default
The IDE will then open and the IDE interface is as follows
3. System image burning
The system image provided by 01studio is in the following path
If you want to download it from the official website yourself, the official download path of Canaan is: https://developer.canaan-creative.com/resource?selected=0-0-3-0
You need to find the one with 01studio in its name. Currently, the downloadable ones are 0.7, 1.0, and 1.1.
The version number on the official website is 1.1, which is a little newer, so I will use the official version (click the file name to download, and the "MD5 download" next to it will get the MD5 value of the .gz compressed package and the decompressed image. Don't click the wrong one). The decompressed image file is as follows
It is only 560MB, less than half the size of the 1.0 provided by 01studio. Is this a problem? No matter what, I will try to flash it first. If there is a problem after flashing it later, I will switch back to the 1.0 provided by 01studio.
The image is ready, and then start burning. The tools needed are as follows
Insert the TF card into the card reader, then plug the card reader into the computer, and install the formatting tool first (because this tool is already installed on my computer, I will not take screenshots of the installation process)
Formatting is complete, open the burning tool
Waiting for write
Write Complete
At this point, the image burning is complete
4. Power-on test
Unplug the card reader, take out the TF card, insert it into the development board, and connect the development board to the computer via a data cable ( do not unplug or plug the TF card while it is powered!!! ).
After the development board is powered on, wait for a while (about a few seconds to tens of seconds, depending on the TF speed, the first startup will be slower). If the system starts normally, you can find a "CanMV" in "This Computer" and a serial port can be searched in the serial port assistant.
Then we open the IDE to see if the board can work properly
Find a demo about camera in the example
Click the socket icon on the left to connect the development board
After the connection is successful, click the green triangle to run the code
In the window on the upper right corner, you can see the image captured by the camera, which will be displayed in real time, which means the code is working properly.
Click the plug and fork in the lower left corner to disconnect from the development board or stop the current code.
The K230 chip generates a lot of heat, so be sure to attach the included heat sink. With the heat sink attached, run the demo for a few minutes and the heat sink will be very hot, and it will be hard to touch. I estimate it is around 40-50 degrees Celsius.