This is for the BLACK_F407VE STM32F407VET6 board with MicroPython 1.11 (source at top of the tree).
I have used the @micropython.native decorator on the class methods that I have put in the ports/stm32/modules/
directory.
On trying a clean build, I encounter this error:
Code: Select all
GEN build-BLACK_F407VE/frozen_mpy.c
Traceback (most recent call last):
File "../../tools/mpy-tool.py", line 864, in <module>
main()
File "../../tools/mpy-tool.py", line 852, in main
raw_codes = [read_mpy(file) for file in args.files]
File "../../tools/mpy-tool.py", line 852, in <listcomp>
raw_codes = [read_mpy(file) for file in args.files]
File "../../tools/mpy-tool.py", line 720, in read_mpy
return read_raw_code(f, qstr_win)
File "../../tools/mpy-tool.py", line 699, in read_raw_code
raw_codes = [read_raw_code(f, qstr_win) for _ in range(n_raw_code)]
File "../../tools/mpy-tool.py", line 699, in <listcomp>
raw_codes = [read_raw_code(f, qstr_win) for _ in range(n_raw_code)]
File "../../tools/mpy-tool.py", line 666, in read_raw_code
off = read_uint(f, qstr_win)
File "../../tools/mpy-tool.py", line 575, in read_uint
b = read_byte(f, out)
File "../../tools/mpy-tool.py", line 569, in read_byte
out.append(b)
AttributeError: 'QStrWindow' object has no attribute 'append'
../../py/mkrules.mk:118: recipe for target 'build-BLACK_F407VE/frozen_mpy.c' failed
make: *** [build-BLACK_F407VE/frozen_mpy.c] Error 1
make: *** Deleting file 'build-BLACK_F407VE/frozen_mpy.c'
sucks, hence the need for speed).
What am I doing wrong?
Thanks
PP