Go to file
sunnycase 02576ba67e Fix nncase link issue 2021-09-24 10:56:10 +08:00
.github Add github issue and PR templates 2018-09-21 17:05:12 +08:00
.vscode [nncase] Update runtime 2020-01-15 17:43:50 +08:00
cmake support ai lib 2020-10-21 14:11:34 +08:00
lds Add nncase v1.0 runtime 2021-06-09 15:43:37 +08:00
lib Fix nncase link issue 2021-09-24 10:56:10 +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 update nncase v1 to 8c384a (#125) 2021-07-18 18:25:51 +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 Add nncase v1.0 runtime 2021-06-09 15:43:37 +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 [IDE] add opt 2019-09-06 18:04:27 +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.