Pinning tasks to Core for ISR
Posted: Wed Apr 25, 2018 12:36 pm
I read the following on the ESP-IDF doc
Does that mean I need to pin both the tasks each to a separate core so that they can work together?
Thanks
I'm using GPIO interrupts in separate tasks, which are not pinned to a core. And only one of them seems to be working.Care should be taken when allocating an interrupt using a task not pinned to a certain core; while running code not in a critical section, these tasks can migrate between cores at any moment, possibly making an interrupt operation fail because of the reasons mentioned above. It is advised to always use xTaskCreatePinnedToCore with a specific CoreID argument to create tasks that will handle interrupts.
Does that mean I need to pin both the tasks each to a separate core so that they can work together?
Thanks