Quantcast
Viewing all articles
Browse latest Browse all 4824

MicroPython • Re: Multithreads problems.

This is my problem: how do I assign core0 to thread1 and core1 to thread2?
You use the '_thread' module as you presumably did initially. There is no other way to run two MicroPython threads on separate cores. Unfortunately, though better than it was, MicroPython dual-core operation remains buggy as you have discovered.

It is possible to run MicroPython code and have C code run on the second core but how feasible that is will depend on what you need to do within that C code, how MicroPython needs to interact with it.

Other than that you'll have to find a design which allows everything to run in a single thread on a single core. If you are simply controlling LED lighting that doesn't seem it should be too hard to do that.

Statistics: Posted by hippy — Tue Jul 09, 2024 10:29 am



Viewing all articles
Browse latest Browse all 4824

Trending Articles