K210 MairxPy开发环境配置#
export LD_LIBRARY_PATH=/home/zk/vincross/workspace/k210/packages/kendryte-toolchain/bin:$LD_LIBRARY_PATH
配置工具链#
python3 project.py --toolchain /home/zk/vincross/workspace/k210/packages/kendryte-toolchain/bin --toolchain-prefix riscv64-unknown-elf- config
执行上述命令后会生成一个.config.mk文件,内容如下:
# Generated by config.py, DO NOT edit!
CONFIG_TOOLCHAIN_PATH="/home/zk/vincross/workspace/k210/packages/kendryte-toolchain/bin"
CONFIG_TOOLCHAIN_PREFIX="riscv64-unknown-elf-"
这个.config.mk文件并没有被使用,编译工具使用的是config_defaults.mk这个配置文件,所以要修改这个配置文件。
编译#
# clean
python3 project.py distclean
# build
python3 project.py build
MarixPy的IO使用情况#
- SPI0 for LCD
- SPI1 for SD Card
- SPI2 is slave
- SPI3 for NOR Flash *
- I2S0 for MIC arrary
术语#
- REPL(Read Eval Print Loop:交互式解释器)