- Compile MicroPython cross compiler
Build in root path of MaixPy
cd MaixPy
make -C mpy-cross
- Get toolchain and Edit
config.conf
, settoolchain_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
- Build
Build port
chmod +x build.sh
./build.sh
Then we can get bin file(s) in output
folder
- Get Burn tool
./flash.sh install
- Change default settings
Edit flash.sh
############### SETTINGS #############
baud=2000000
device=/dev/ttyUSB0
#######################################
- Burn/Flash to board
./flash.sh
If Flash fail, try again or Decrease baud rate
more parameters use
./flash.sh help
-
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 inMaixPy
by commandsys.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)
- Upload to Releases page and edit release infomation