No Description

zhkag 9c0224936d add RT-Thread_Packages_Test ci 2 years ago
.github 9c0224936d add RT-Thread_Packages_Test ci 2 years ago
.vscode 573a00dfc8 [nncase] Update runtime 6 years ago
cmake 06a2ea71f2 support ai lib 5 years ago
lds d740f55894 Add nncase v1.0 runtime 4 years ago
lib 02576ba67e Fix nncase link issue 4 years ago
scripts 804a11f92d create format rule and reformat 6 years ago
src d1f33dd8be Modify system default print uart 6 years ago
third_party 9b61893150 update nncase v1 to 8c384a (#125) 4 years ago
.clang-format 804a11f92d create format rule and reformat 6 years ago
.gitignore 6c201580a0 Support KModel V4 6 years ago
.travis.yml 38786f96de Move demo git repo to other place 6 years ago
CHANGELOG.md c30cb63bf0 Update CHANGELOG.md to add alarm changelog 6 years ago
CMakeLists.txt d740f55894 Add nncase v1.0 runtime 4 years ago
LICENSE 685084c40a first commit 7 years ago
README.md 8190c2a0eb support rt-thread 3 years ago
README_zh.md 48dd994b0b Update README_zh.md 3 years ago
SConscript 50bf8c4d15 [k210] 修正新版SDK文件路径迁移导致的错误 3 years ago
kendryte-package.json 5c2152175f [IDE] add opt 6 years ago
package.json 5a7d989fcd update for IDE 6 years ago

README.md

Kendryte K210 standalone SDK

RT-Thread 适配说明(中文)

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.
  3. This is very important, don't make a mistake in files.