如何c语言编译开发固件
先看一下http://micropython-dev-docs.readthedocs.io/en/latest/adding-module.html,了解一下最简单的c语言编写MicroPython模块。
然后需要配置开发环境,http://book.openmv.cc/firmware/compile.html
最重要的是需要看一下,OpenMV 的源码
https://github.com/openmv/openmv/tree/master/src/omv/img
在这个地方添加插值的算法,
然后在https://github.com/openmv/openmv/tree/master/src/omv/py相应的地方添加 注册到py方法的代码。
当然还有makefile 的修改。
总体来说还是挺麻烦的,如果编写完成,希望给OpenMV 的GitHub 提交pull request,共同维护代码。
oenpMV4无法通过SD卡读取856K的数据文件,对吗?
现象描述:
1.在SD卡中拷贝856K的文件:my_lenet.network'
2.通过openMV IDE写一段没有加载my_lenet.network的micoPython代码
3.运行后没问题
4.添加一行代码:net = nn.load('/my_lenet.network')
5.运行报错:
Memory Error:out of normal micropython Heap Memory!Please reduce the resolution of the image you are running this algorithm on to bypass this issue!
请问:openMV4真的无法通过SD卡读取856K的数据文件吗?
还是可以通过修改源码,比如startup.s文件可以解决该问题?如果是的话,能否给我一个startup.s的文件?我用的固件版本是3.6.0的