Replies: 1 comment
-
See also https://github.com/orgs/micropython/discussions/12596#discussioncomment-7226011 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I wanted to use EventLoop in MicroPython, but the problem was that when using m_new_obj to create objects in the event_handler function, or an error caused the system to crash. At this point, I tried to add mp_thread_init at the beginning of the event_handler function, and the crash problem was resolved. However, when using the mp_call_function_1 callback function, an error was reported.
I guess this is a problem caused by MicroPython's multithreading mechanism. What should I do when I want to create my own thread when using C to extend MicroPython?
Beta Was this translation helpful? Give feedback.
All reactions