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.
ESP32: Running a task on a specific core
Who is online
Users browsing this forum: Majestic-12 [Bot] and 67 guests