Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Content-Length: 238730 | pFad | http://github.com/micropython/micropython/discussions/14072
A0CFetched URL: http://github.com/micropython/micropython/discussions/14072
Alternative Proxies:
-
I have been trying to use the embedded port using ESP-IDF but I am running into multiple issues which I have no idea how to solve.
I built the embedded port out-of-tree. the folder structure looks like this:

I successfully compile the embedded port. I then try to run the embedded example and it fails:
First it fails because of a redefinition of __assert_func:
main/micropython_embed/port/embed_util.c:104: multiple definition of `__assert_func'; esp-idf/newlib/libnewlib.a(assert.c.obj):/opt/esp/idf/components/newlib/assert.c:34: first defined here
renaming the __assert_func in embed_util.c to __assert_func2 solves this issue. It then fails with this error:
#error "Architecture not supported for gc_helper_get_regs. Set MICROPY_GCREGS_SETJMP to use the fallback implementation."
Adding MICROPY_GCREGS_SETJMP (1) to mpconfig.h, solves this issue.
It then compiles successfully, but fails on running with this stack trace:
Here is the code I am running:
This is the mpconfigport.h file:
What am I missing?
On another note, is embedding the correct approach? We are building a product for a client for which they specified they want to be able to run python scripts (they specified micropython as a requirement).
Beta Was this translation helpful? Give feedback.
All reactions