出自flip the world 檢視Maixduino的原始碼 頁面討論 閱讀檢視原始碼檢視歷史 ←Maixduino 您沒有權限執行編輯此頁面,由於以下原因: 您請求的操作只有這個群組的使用者能使用:使用者 您可以檢視並複製此頁面的原始碼。 == Toolchain == <pre> git clone https://github.com/kendryte/kendryte-gnu-toolchain cd kendryte-gnu-toolchain git submodule update --init --recursive </pre> === Prerequisites === <pre> sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev </pre> == FW == <pre> git clone https://github.com/sipeed/MaixPy.git git submodule update --recursive --init </pre> === Install dependencies === <pre> sudo apt update sudo apt install python3 python3-pip build-essential cmake sudo pip3 install -r requirements.txt </pre> === Configure project === <pre> cd MaixPy cd projects/maixpy_k210 python3 project.py --toolchain /opt/kendryte-toolchain/bin --toolchain-prefix riscv64-unknown-elf- config </pre> === Customize FW === <pre> python3 project.py menuconfig </pre> === Build === <pre> python3 project.py build </pre> === Flash to the board === <pre> python3 project.py -B maixduino -p /dev/ttyUSB0 -b 1500000 -S flash </pre> 返回到「Maixduino」。