見出し画像

MaixPy / ファームウェアの更新

Macでの「MaixPy」(K210用のMicroPython)のファームウェアの更新方法の備忘録です。

(1)以下のサイトからファームウェアとモデルデータをダウンロード。

Releases · sipeed/MaixPy · GitHub

v0.3.2にアップデートする場合は、以下をダウンロードします。
・maixpy_v0.3.2_full.bin
・face_model_at_0x300000.kfpkg

(2)AnacondaなどのPython 3の仮想環境で、「pyserial」をインストールし、 gitで「flash.py」をクローン。

$ pip install pyserial
$ git clone https://github.com/sipeed/kflash.py kflash

(3)ボードとMacをUSBケーブルで接続し、以下のコマンドを入力。
接続先(cu.wchusbserial14320)はボードによって異なります。

$ python kflash/kflash.py -p /dev/cu.wchusbserial14320 -b 2000000 -B dan maixpy_v0.3.2_full.bin
$ python kflash/kflash.py -p /dev/cu.wchusbserial14320 -b 2000000 -B dan face_model_at_0x300000.kfpkg

(4)screenで接続してバージョンを確認。

$ screen /dev/cu.wchusbserial14320 115200

 __  __              _____  __   __  _____   __     __
|  \/  |     /\     |_   _| \ \ / / |  __ \  \ \   / /
| \  / |    /  \      | |    \ V /  | |__) |  \ \_/ /
| |\/| |   / /\ \     | |     > <   |  ___/    \   /
| |  | |  / ____ \   _| |_   / . \  | |         | |
|_|  |_| /_/    \_\ |_____| /_/ \_\ |_|         |_|

Official Site : https://www.sipeed.com
Wiki          : https://maixpy.sipeed.com

MicroPython v0.3.2 on 2019-05-15; Sipeed_M1 with kendryte-k210
Type "help()" for more information.

この記事が気に入ったらサポートをしてみませんか?