-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to use esp32 example #9
Comments
|
I checked out Micropython at Hash 64180f0 date november 23, 2020.
The binary works and I can connect to the esp32.
To summarize;
Finally, I assume that with your toolchain I can compile with C++ so do not have to define extern c everywhere. |
Can you doublecheck it effectively compiles both the .c and .cpp file in the tests/ directory? Either from the log of by introducing a compiler error in the files. Btw do the micropython example modules work for you? Something like
That's actually MicroPython running into an error, it seems to be trying to use CMake to build a (gnu make) Makefile, that's never going to work. I'll have a look how to make that work with the most recent version of everything.
At one point yes, see see #5 (comment)
That's not the case, only the code which needs to go into the C module directly needs to be wrapped in |
Stinos, my limited understanding of the interaction between c and c++ seems indeed to be the issue. I will work further with the example from micropython master. |
Let me know if you'd get back to this and still have problems. |
@stinos , I made a Micropython wrapper for TMCStepper, see https://github.com/hstarmans/micropythonwebserver . |
I ran
make usercmodule MICROPYTHON_PORT_DIR=../micropython/ports/esp32
This creates a new binary, i flashed the binary to the chip, but how do i use the usercmodule?
I tried to import mod, foo, upywraptest etc. but it does not work?
The text was updated successfully, but these errors were encountered: