Running FreeRTOS only on first core ...?

ESP_Sprite
Posts: 2832
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Mon Dec 26, 2016 6:56 am

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.)

Who is online

Users browsing this forum: No registered users and 18 guests