mirror of
https://github.com/laanwj/k210-sdk-stuff.git
synced 2024-11-25 10:56:20 +04:00
41 lines
1.3 KiB
Markdown
41 lines
1.3 KiB
Markdown
Maix Go / K210 stuff
|
||
=====================
|
||
|
||
First, get the Kendryte C toolchain and copy or symlink the contents of the
|
||
`src/` folder to a checkout of `https://github.com/sipeed/LicheeDan_K210_examples.git`.
|
||
|
||
Then to build a certain project do:
|
||
|
||
```bash
|
||
mkdir build && cd build
|
||
cmake .. -DPROJ=<ProjectName> -DTOOLCHAIN=/opt/riscv-toolchain/bin && make
|
||
```
|
||
|
||
You will get 2 files, `build/<ProjectName>` and `build/<ProjectName>.bin`. The former
|
||
is an ELF executable, the latter a raw binary that can be flashed or written to
|
||
0x80000000 in SRAM and directly executed.
|
||
|
||
Documentation
|
||
==============
|
||
|
||
- [K210 memory map](doc/memory_map.md) - A rough memory map for the Kendryte K210 (as used on the Sipeed Maix boards). For some reason this is missing from the [data sheet](https://s3.cn-north-1.amazonaws.com.cn/dl.kendryte.com/documents/kendryte_datasheet_20181011163248_en.pdf).
|
||
|
||
Projects
|
||
=========
|
||
|
||
glyph_mapping
|
||
-------------
|
||
|
||
Variation of the `DVP` sample that processes the camera input through a simple
|
||
DOS 8×8 font glyph-mapping algorithm and shows it on the display.
|
||
|
||
[README](src/glyph_mapping/README.md)
|
||
|
||
dump_otp
|
||
--------
|
||
|
||
Dumps the contents of the OTP (One-Time Programmable memory) of the K210 CPU to
|
||
serial output in Intel HEX format.
|
||
|
||
[README](src/dump_otp/README.md)
|