A Micropython env for Sipeed Maix One platform
Switch branches/tags
Clone or download
xiaohui
xiaohui fixed license
Latest commit 876567a Dec 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs docs/conf.py: Use https for intersphinx link to docs.python.org. Oct 23, 2018
drivers drivers/sdcard: Remove debugging print statement in ioctl method. Sep 20, 2018
examples examples/unix/ffi_example: Clean up and update the ffi example. Oct 23, 2018
extmod extmod/moductypes: Make sizeof() accept "layout" parameter. Oct 23, 2018
lib lib/utils/pyexec: Forcefully unlock the heap if locked and REPL active. Oct 13, 2018
logo all: Use the name MicroPython consistently in comments Jul 31, 2017
mpy-cross mpy-cross/Makefile: Also undefine MICROPY_FORCE_32BIT and CROSS_COMPILE. Aug 14, 2018
ports fixed license Dec 19, 2018
py py/objmodule: Implement PEP 562's __getattr__ for modules. Oct 23, 2018
tests tests/import: Add .exp file for module_getattr.py to not require Py 3.7. Oct 23, 2018
tools tools/pyboard.py: In TelnetToSerial.close replace try/except with if. Oct 19, 2018
.gitattributes .gitattributes: Remove special text handling of stm32 usbdev files. May 11, 2018
.gitignore all: Remove trailing spaces, per coding conventions. Jul 19, 2017
.gitmodules nrf: Replace custom-HAL with nrfx-HAL Jul 18, 2018
.travis.yml travis: Add nrf port to Travis CI build. Jul 20, 2018
ACKNOWLEDGEMENTS ACKNOWLEDGEMENTS: Change backer 905 info, replace city with name. Oct 22, 2016
CODECONVENTIONS.md all: Remove trailing spaces, per coding conventions. Jul 19, 2017
CONTRIBUTING.md CONTRIBUTING.md: Link to contrib guidelines and code conventions. May 3, 2015
LICENSE Add license header to (almost) all files. May 3, 2014
README.md modify compiling method in README.md Nov 30, 2018
README_CN.md 修改中文README的编译方法 Nov 30, 2018

README.md

Micropython based on the Sipeed Maix one platform

Sipeed Maix one

MaixPy Introduction

MaixPy is an open source MicroPython project based on the Sipeed M1 platform. It supports a variety of peripherals on the Sipeed M1. It is designed to make programming easier.It is based on the K210-standalone-sdk.

MaixPy version is Python 3.4

For more information on MaixPy, please visit http://maixpy.sipeed.com/

Directory architecture

MaixPy directory architecture:

  • py/ -- a core Python implementation that includes the compiler, runtime, and core libraries.

  • mpy-cross/ -- the MicroPython cross-compiler which is used to turn scripts into precompiled bytecode.

  • ports/k210-standalone/ -- micropython porting code based on k210 platform sdk

  • tests/ -- test framework and test scripts

  • docs/ -- user documentation in Sphinx reStructuredText format. Rendered HTML documentation is available at http://docs.micropython.org (be sure to select needed board/port at the bottom left corner).

Platform porting code directory architecture:

  • board-drivers/ store the onboard module driver code

  • buildin-py/ firmware built-in microPython script

  • mpy-mod/ micropython module code

  • spiffs/ spiffs file system source code

  • spiffs-port/ spiffs porting configuration code

  • kendryte-standalone-sdk/ k210 sdk generated after using the build script

Build and compile

Build code:

$ git clone git@github.com:sipeed/MaixPy.git #Download sdk
$ cd port/k210-standalon/ #Enter the platform code directory
$ make build #build platform code in case of first use

Compile the code:

$ make CROSS_COMPILE=/your_compiler_path/bin/riscv64-unknown-elf-

We recommend using compiler version 7.2.0

your_compiler_path is the compiler path, about the compiler , you can see http://dan.lichee.pro/

After compiling, the micropython.bin file will be generated in this directory, and you can burne it to the Sipeed Maix One suite.

The burning method can be found at http://dan.lichee.pro/

contribution

MaixPy is an open source project and welcomes contributions. MicroPython is licensed under the MIT license and all contributions are subject to this license.