STM32F769I-DISCO MicroPython移植

Linux编译环境这里就不详细讲述了,这里只做MicroPython的移植操作讲解。

安装交叉编译环境

在终端中依次输入如下命令完成交叉编译器的安装:

sudo apt-get install gcc gcc-arm-none-eabi
STM32F769I-DISCO MicroPython移植

下载MicroPython源码

git clone https://github.com/micropython/micropython.git
STM32F769I-DISCO MicroPython移植

编译MicroPython cross-compiler

STM32F769I-DISCO MicroPython移植

下载子模块

git init
git submodule update --init
STM32F769I-DISCO MicroPython移植

屏蔽Mboot开关

最新MicroPython源码中STM32F769I-DISCO默认开启mboot,烧录之后跑不起来,此处先关掉~
STM32F769I-DISCO MicroPython移植

编译MicroPython

make BOARD=STM32F769DISC
STM32F769I-DISCO MicroPython移植
输出烧录文件,使用STM32 ST-LINK Utility等软件进行烧录
STM32F769I-DISCO MicroPython移植

连接MicroPython终端

使用putty连接MicroPython终端,连接板子的CN16端口。
STM32F769I-DISCO MicroPython移植
STM32F769I-DISCO MicroPython移植

连接PYBFLASH

连接板子的CN15端口,跳线帽跳到usbhs,板子由USB供电。
连接电脑后就能发现 MicroPython的磁盘了。
STM32F769I-DISCO MicroPython移植
STM32F769I-DISCO MicroPython移植