Go to file
sunnycase d7ce51a989 Upload nncase runtime 2019-08-05 12:55:53 +08:00
.github Add github issue and PR templates 2018-09-21 17:05:12 +08:00
cmake Support KModel V4 2019-07-24 15:24:18 +08:00
lds Upload nncase runtime 2019-08-05 12:55:53 +08:00
lib Upload nncase runtime 2019-08-05 12:55:53 +08:00
scripts create format rule and reformat 2019-05-31 20:30:41 +08:00
src Modify system default print uart 2019-05-15 13:44:54 +08:00
third_party/xtl Support KModel V4 2019-07-24 15:24:18 +08:00
.clang-format create format rule and reformat 2019-05-31 20:30:41 +08:00
.gitignore Support KModel V4 2019-07-24 15:24:18 +08:00
.travis.yml Move demo git repo to other place 2019-03-19 13:02:06 +08:00
CHANGELOG.md Update CHANGELOG.md to add alarm changelog 2019-05-15 20:14:47 +08:00
CMakeLists.txt Update comment 2019-05-29 15:55:40 +08:00
LICENSE first commit 2018-09-13 22:06:11 +08:00
README.md Add apache license 2019-04-11 20:13:58 +08:00
kendryte-package.json update ide settings 2019-06-04 19:33:03 +08:00
package.json update for IDE 2019-05-29 20:13:15 +08:00

README.md

Kendryte K210 standalone SDK

Build Status License

This SDK is for Kendryte K210 without OS support. If you have any questions, please be free to contact us.

Usage

If you want to start a new project, for instance, hello_world, you only need to:

  • Linux and OSX

mkdir your project in src/, cd src && mkdir hello_world, then put your codes in it, enter SDK root directory and build it.

mkdir build && cd build
cmake .. -DPROJ=<ProjectName> -DTOOLCHAIN=/opt/riscv-toolchain/bin && make
  • Windows

Download and install latest CMake.

Download cmake-3.14.1-win64-x64.msi

Download and install latest toolchain.

Download kendryte-toolchain-win-i386-8.2.0-20190409.tar.xz

Open a Windows Powershell, cd to Project directory.

mkdir your project in src/, cd src && mkdir hello_world, then put your codes in it, and build it.

$env:Path="E:\kendryte-toolchain\bin;C:\Program Files\CMak
e\bin" +  $env:Path

mkdir build && cd build
cmake -G "MinGW Makefiles" ../../../..
make

You will get 2 key files, hello_world and hello_world.bin.

  1. If you are using JLink to run or debug your program, use hello_world
  2. 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.