![](https://csdnimg.cn/release/download_crawler_static/86295169/bg3.jpg)
北京联盛德微电子有限责任公司
2
目录
文档修改记录 ...................................................................................................................................................... 1
目录 ...................................................................................................................................................................... 2
1 引言 .............................................................................................................................................................. 3
1.1 编写目的 ...................................................................................................................................... 3
1.2 预期读者 ...................................................................................................................................... 3
1.3 术语定义 ...................................................................................................................................... 3
1.4 参考资料 ...................................................................................................................................... 3
2 MicroPython 项目简介 ................................................................................................................................ 4
3 快速构建 MicroPython ................................................................................................................................ 5
3.1 编译 MicroPython ........................................................................................................................ 5
3.1.1 下载交叉编译工具 .............................................................................................................. 5
3.1.2 下载 WM_SDK 开发包 ....................................................................................................... 6
3.1.3 下载 MicroPython ................................................................................................................ 7
3.1.4 编译 ...................................................................................................................................... 7
3.2 烧录 MicroPython ........................................................................................................................ 7
4 命令行使用实例 .......................................................................................................................................... 7
4.1 基本打印 ...................................................................................................................................... 8
4.2 连接 WiFi ..................................................................................................................................... 8
4.3 使用 socket ................................................................................................................................... 8
4.4 点亮 LED 灯 ................................................................................................................................ 8
5 脚本文件使用指导 ...................................................................................................................................... 9
5.1 将脚本文件转为为字节码编入固件 .......................................................................................... 9
5.2 上传脚本文件到模块 flash 中 .................................................................................................... 9
5.2.1 脚本上传方法 ...................................................................................................................... 9
5.2.2 flash 文件系统结构说明 ................................................................................................... 12
6 版本说明 .................................................................................................................................................... 13