Quick Start Guide#
What You Will Accomplish#
The goal of this page is to help you complete a “verifiably successful” process in the shortest amount of time:
Download the SDK source code
Select the board configuration and build the image
Flash it to the development board
Log in via serial port and run the first example
If you want to see the full instructions, please go to the user guide:
Prerequisites#
Host system: Ubuntu 20.04 x86_64 (recommended)
Development board, serial cable, USB cable (or SD card reader) connected
Available network (for
repo syncand toolchain download)
15-Minute Onboarding Path#
Download the Source Code#
mkdir -p ~/rtos_k230 && cd ~/rtos_k230
repo init -u git@gitee.com:canmv-k230/manifest.git --repo-url=git@gitee.com:canmv-k230/git-repo.git
repo sync -j $(nproc)
Download the Toolchain (First Time Only)#
make dl_toolchain
Select the Board Configuration#
# View available configurations
make list-def
# Example: 01Studio
make k230_rtos_01studio_defconfig
If your board only has k230_canmv_*_defconfig, you can also select it first, then use menuconfig to disable CanMV and enable RTOS-side capabilities (see the section “How to Build an RTOS Image When Only CanMV defconfig Is Available” in How to Build Firmware).
Build the Image#
time make log
Build results are typically located at:
output/<defconfig>/images/
Common files:
*.kdimg: Recommended for K230BurningTool (USB)*.img: Commonly used for SD card imaging or command-line flashing
Flash and Boot#
It is recommended to first use K230BurningTool to flash *.kdimg. See How to Flash Firmware for the steps.
After booting, use a serial port tool to connect to the development board (commonly 115200 baud rate) and enter the RT-Smart shell.
Run the First Example#
cd /sdcard/app/examples
find . -name "*.elf" | head
./integrated_poc/smart_ipc.elf
If the example path is different, please refer to the output of find.
Common Entry Points#
Add/Modify Applications:
userguide/helloworld.mdView Supported Sensors and Enable Methods:
hardware_compatibility/sensor_list.mdApplication Development Guide:
app_develop_guide/index.mdAPI Reference:
api_reference/index.md
Next Steps#
First, run through an existing example to confirm that the toolchain, flashing, and serial port link are all working properly
Then enable/trim the examples and application switches you need
Finally, solidify it into a unified team defconfig to avoid configuration drift
