ESP32 dual-core question

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Peugot206
Posts: 31
Joined: Sat Apr 09, 2022 5:57 pm

ESP32 dual-core question

Post by Peugot206 » Wed Apr 13, 2022 4:44 pm

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.

modulusmath
Posts: 30
Joined: Thu Jun 30, 2022 3:21 am

Re: ESP32 dual-core question

Post by modulusmath » Wed Aug 17, 2022 5:00 pm

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)

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: ESP32 dual-core question

Post by jimmo » 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.

modulusmath
Posts: 30
Joined: Thu Jun 30, 2022 3:21 am

Re: ESP32 dual-core question

Post by modulusmath » Sat Aug 20, 2022 12:52 am

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.

Post Reply