Skip to content

Latest commit

 

History

History
106 lines (67 loc) · 1.59 KB

README.md

File metadata and controls

106 lines (67 loc) · 1.59 KB

MAIXPY

Compile

  1. Compile MicroPython cross compiler

Build in root path of MaixPy

cd MaixPy
make -C mpy-cross
  1. Get toolchain and Edit config.conf , set toolchain_path
  • Downlaod toolchain from kendryte (toolchain V8.2)

  • Decompress and copy to somewhere /opt/kendryte-toolchain for example , then set path

cd ports/k210-freertos
echo "toolchain_path=/opt/kendryte-toolchain" > config.conf
  • Install dependence
sudo apt install cmake
  1. Build

Build port

chmod +x build.sh
./build.sh

Then we can get bin file(s) in output folder

Burn(/Flash)

  1. Get Burn tool
./flash.sh install
  1. Change default settings

Edit flash.sh

############### SETTINGS #############
baud=2000000
device=/dev/ttyUSB0
#######################################
  1. Burn/Flash to board
./flash.sh

If Flash fail, try again or Decrease baud rate

more parameters use

./flash.sh help

For contribute developer

Release

  • Must commit all changes and rebuild

  • Tests

  • Push to remote

  • Create a tag: tag name must start with v, e.g. v1.2.3, or we can not get version in MaixPy by command sys.implementation.version

git tag -a v0.1.1 -m "release 0.1.1 (beta) describe....."
git push origin --tags 
  • Execute ./build.sh clean

  • Execute ./build.sh

  • Flash to board, type sys.implementation.version, the output should be like:

>>> sys.implementation.version
(0, 1, 1)