|
|
há 2 anos atrás | |
|---|---|---|
| .github | há 2 anos atrás | |
| .vscode | há 6 anos atrás | |
| cmake | há 5 anos atrás | |
| lds | há 4 anos atrás | |
| lib | há 4 anos atrás | |
| scripts | há 6 anos atrás | |
| src | há 6 anos atrás | |
| third_party | há 4 anos atrás | |
| .clang-format | há 6 anos atrás | |
| .gitignore | há 6 anos atrás | |
| .travis.yml | há 7 anos atrás | |
| CHANGELOG.md | há 6 anos atrás | |
| CMakeLists.txt | há 4 anos atrás | |
| LICENSE | há 7 anos atrás | |
| README.md | há 3 anos atrás | |
| README_zh.md | há 3 anos atrás | |
| SConscript | há 3 anos atrás | |
| kendryte-package.json | há 6 anos atrás | |
| package.json | há 6 anos atrás |
This SDK is for Kendryte K210 without OS support. If you have any questions, please be free to contact us.
If you want to start a new project, for instance, hello_world, you only need to:
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
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.
hello_worldhello_world.bin, then using flash-tool(s) burn .bin to your flash.
This is very important, don't make a mistake in files.