Go to file
GongT 23b7e046d7 update package name 2019-06-03 21:20:17 +08:00
.github Add github issue and PR templates 2018-09-20 15:00:33 +08:00
cmake fix small issue 2019-05-29 20:08:12 +08:00
lds Enlarge minimal stack size 2019-01-25 14:03:17 +08:00
lib update spi slave driver 2019-03-27 16:41:50 +08:00
src remove un-used cmake instructions. notice user see example cmake file. 2018-09-20 23:48:29 +08:00
third_party fix network driver:add select,ioctl;expand TCP packet length 2019-02-27 18:09:54 +08:00
.gitignore update package name 2019-06-03 21:20:17 +08:00
.travis.yml Move demo git repo to other place 2019-03-19 13:02:21 +08:00
CHANGELOG.md first commit 2018-09-13 21:42:46 +08:00
CMakeLists.txt Update comment 2019-05-29 15:56:25 +08:00
CMakeLists.txt.example.cmake first commit 2018-09-13 21:42:46 +08:00
LICENSE first commit 2018-09-13 21:42:46 +08:00
README.md Add windows build guide 2019-04-11 20:11:32 +08:00
kendryte-package.json update package name 2019-06-03 21:20:17 +08:00

README.md

Kendryte K210 FreeRTOS SDK

Build Status License

This SDK is for Kendryte K210 which contains FreeRTOS 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, 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.

If you don't like place code inside SDK, see CMakeLists.txt.example.cmake