Page 2 of 2

Re: Running FreeRTOS only on first core ...?

Posted: Mon Dec 26, 2016 6:56 am
by ESP_Sprite
Also, do take note that in general running a task in a never-ending core is not an entirely good idea. That way, you'll starve the idle task, which is needed for some housekeeping things like cleaning up deleted tasks. Also, when you do this the task watchdog will (rightfully) complain that something is using up all CPU power. In theory, if you know what you're doing and allow e.g. the idle task on the other CPU to run everything could work okay, but also from a power use PoV it's still not a good idea to just run a while loop without yielding.

(By the way: yielding can happen explicitly, by eg doing a vTaskDelay, but also implicitely, by for example waiting until LWIP has received a packet from a socket, or waiting for a FreeRTOS queue to get any data.)