Go to file
xiangbingj 45a5b641a8 Flush kmodel data from CACHE to IOMEM. 2019-11-25 17:57:00 +08:00
.github Add github issue and PR templates 2018-09-20 15:00:33 +08:00
.vscode Flush kmodel data from CACHE to IOMEM. 2019-11-25 17:57:00 +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 Flush kmodel data from CACHE to IOMEM. 2019-11-25 17:57:00 +08:00
src Delete demo 2019-10-24 20:56:37 +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 remove invalid Source define 2019-08-12 21:04:54 +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