Fail to use mpy with embed mode #14499
Unanswered
YogzZ
asked this question in
Using MicroPython
Replies: 2 comments 1 reply
-
You also need to define |
Beta Was this translation helpful? Give feedback.
0 replies
-
I define + #define MICROPY_EMIT_X64 (1) Then got: micropython_embed/py/compile.c: In function ‘compile_built_in_decorator’:
micropython_embed/py/compile.c:841:24: error: ‘MP_QSTR_native’ undeclared (first use in this function); did you mean ‘MP_QSTR_enable’?
841 | } else if (attr == MP_QSTR_native) {
| ^~~~~~~~~~~~~~
| MP_QSTR_enable
micropython_embed/py/compile.c:841:24: note: each undeclared identifier is reported only once for each function it appears in
micropython_embed/py/compile.c:843:24: error: ‘MP_QSTR_viper’ undeclared (first use in this function); did you mean ‘MP_QSTR_upper’?
843 | } else if (attr == MP_QSTR_viper) {
| ^~~~~~~~~~~~~
| MP_QSTR_upper
make: *** [<builtin>: micropython_embed/py/compile.o] Error 1 I try to block |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Fail to use the mpy file with embed mode on x86_64 platform.
Follows are my steps:
features0.mpy
$ cd micropython/examples/natmod/features0 $ make
micropython/examples/embedding/main.c
micropython/examples/embedding/mpconfigport.h
+ #define MICROPY_PERSISTENT_CODE_LOAD (1)
embed
$ cd micropython/examples/embedding $ make -f micropython_embed.mk $ cp ../natmod/features0/features0.mpy ./ $ make
embed
$ ./embed ... ValueError: native code in .mpy unsupported
Beta Was this translation helpful? Give feedback.
All reactions