Use the Kendryte K210 standalone SDK commitid d13b38098a3598b0018c38590387e43953efd140
and should use gcc-8.2. This can be download at https://kendryte.com/downloads/]
You can find the official standalone sdk demo at https://github.com/kendryte/kendryte-standalone-demo.git
It has not been tested on Sipeed board. so you must test it by yourself.
The following demos have been tested:
This SDK is for Kendryte K210 without OS support. If you have any questions, please be free to contact us.
If you want to start a new project, for instance, hello_world
, you only need to:
mkdir
your project in src/
, cd src && mkdir hello_world
, then put your codes in it, and build it.
mkdir build && cd build
cmake .. -DPROJ=<ProjectName> -DTOOLCHAIN=/opt/riscv-toolchain/bin && make
You will get 2 key files, hello_world
and hello_world.bin
.
- If you are using JLink to run or debug your program, use
hello_world
- If you want to flash it in UOG, using
hello_world.bin
, then using flash-tool(s) burn .bin to your flash.
This is very important, don't make a mistake in files.