ESP32: Running a task on a specific core

anteph
Posts: 16
Joined: Mon May 08, 2017 2:12 pm

ESP32: Running a task on a specific core

Postby anteph » Tue May 09, 2017 10:28 pm

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.

Who is online

Users browsing this forum: No registered users and 28 guests