最近项目需要,搞点wifi的东西,模块用的庆科EMW3080,找了很多教程,最后都走了弯路,目前很多教程都是基于mico os进行编译的,mico os和mxos有什么区别呢,刚接触的人可能不是很熟悉,前者是多年前的产品,官方aliyun git早已停止更新,最新的mxos还在更新,可能是庆科做了大量重构。
错误编译
mxos make helloworld@MK3080C
make.exe: mxos/makefiles/Makefile: No such file or directory
make.exe: *** No rule to make target 'mxos/makefiles/Makefile'. Stop.
过时教程庆科EMW3080学习之旅① 搭建开发环境,开始一个 “hellow world” 串口打印过时aliyun git mico os
mxos环境搭建
-
我们采用MiCoder Tools命令行进行编译,source insight进行代码修改,不用Micoder IDE那个垃圾玩意儿(PS:基于eclipse改的东西都很差,占用内存大运行慢)
-
环境搭建参考链接,点击左边“搭建开发环境”,“开发工具链:MXOS Cube”菜单,参考进行配置
下载demos代码
- 所有命令在cmd命令行下操作,不需要cygwin环境,例如,我们cmd到D:盘
git clone https://code.aliyun.com/mxos/demos.git
cd demos
git clone https://code.aliyun.com/mxos/mxos.git
git clone https://code.aliyun.com/mxos/mbedtls.git mxos\MXOS\security\TLS\mbedtls\mbedtls-2.16.5
命令行编译helloworld
mxos make demos.helloworld@emw3080
注意事项
- 以前的mico os编译时候,@符号后面要给出对应的board型号,比如MK3080A、MK3080B等等,新的mxos只需要给出芯片系列就可以了,具体系列名称在mxos\module目录下
- 由于新版mxos不再支持easylink,只支持aws配网,需要注意