I am trying to create .mpy module according this source https://docs.micropython.org/en/latest/ ... atmod.html
First I started from examples which are provided by micropython/examples.natmod/features0
But during compilation something is going wrong and I have this error
Code: Select all
LINK build/features0.o
Traceback (most recent call last):
File "../../../tools/mpy_ld.py", line 964, in <module>
main()
File "../../../tools/mpy_ld.py", line 961, in main
do_link(args)
File "../../../tools/mpy_ld.py", line 937, in do_link
load_object_file(env, file)
File "../../../tools/mpy_ld.py", line 595, in load_object_file
if s.data_size == 0:
AttributeError: 'Section' object has no attribute 'data_size'
../../../py/dynruntime.mk:138: recipe for target 'build/features0.native.mpy' failed
make: *** [build/features0.native.mpy] Error 1