Page 1 of 1

ESP32 dual-core question

Posted: Wed Apr 13, 2022 4:44 pm
by Peugot206
Hi MP forum users,

I'm wondering how MicroPython handles the dual-core function from the ESP32. Since usually the network tasks run on core 0, and basically any other tasks on core 1 (user program). The user can obviously decide to add more functions to each core, but I'm wondering how this is handled within MicroPython.

Besides that I'm wondering if it's possible if MicroPython allows the user to decide what function to run in which core? Could be useful for optimization maybe?

Thanks for any help.

Re: ESP32 dual-core question

Posted: Wed Aug 17, 2022 5:00 pm
by modulusmath
Google brought me here. This would be great. Just +1'ing this.

I have a similar query. Trying to run some networking / project code on core 0 and a web server (microdot) on the other core (w/no need for any sort of shared data)

Re: ESP32 dual-core question

Posted: Wed Aug 17, 2022 11:33 pm
by jimmo
Yes, this would be good to support. It's not a small piece of work but definitely do-able. See https://github.com/micropython/micropython/issues/8927 if you're interested.

Re: ESP32 dual-core question

Posted: Sat Aug 20, 2022 12:52 am
by modulusmath
jimmo wrote:
Wed Aug 17, 2022 11:33 pm
Yes, this would be good to support. It's not a small piece of work but definitely do-able. See https://github.com/micropython/micropython/issues/8927 if you're interested.
Great. Thanks jimmo.