Page 1 of 1

ESP32: Running a task on a specific core

Posted: Tue May 09, 2017 10:28 pm
by anteph
A simple example on how to create a FreeRTOS task and assign it to a specific core.
https://techtutorialsx.com/2017/05/09/e ... ific-core/

The results section has a testing use case where the task is created in the same core of a higher priority task, forcing a starvation situation, and launching the same task on a different core, preventing the starvation situation and showing the code is indeed running on a distinct core.

This example was created and tested using the ESP32 support for the Arduino IDE.