CORE in ESP32

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
lbayo
Posts: 24
Joined: Tue Mar 16, 2021 2:10 pm

CORE in ESP32

Post by lbayo » Mon Apr 19, 2021 5:21 pm

Hi,

I have found some functions in C to manage a cooperative multitask in ESP-32 (https://randomnerdtutorials.com/esp32-d ... duino-ide/) in which you can choose in which core (0 or 1) it is you want to run each task.
Is there something similar in micropython, where you can choose the kernel?

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: CORE in ESP32

Post by pythoncoder » Tue Apr 20, 2021 12:17 pm

No. FreeRTOS runs on one core and MicroPython on the other. MicroPython supports pre-emptive multitasking via _thread and cooperative multitasking via uasyncio, but in both cases (on ESP32) execution is on a single core.
Peter Hinch
Index to my micropython libraries.

Post Reply