kendryte-freertos-sdk
kendryte-freertos-sdk copied to clipboard
This project is no longer maintained Not recommended for product development.
Kendryte K210 FreeRTOS SDK
This SDK is for Kendryte K210 which contains FreeRTOS support. If you have any questions, please be free to contact us.
[warning]This project is no longer maintained.Not recommended for product development.
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
.
- If you are using JLink to run or debug your program, use
hello_world
- If you want to flash it in UOG, using
hello_world.bin
, then using flash-tool(s) burn <ProjectName>.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