Greetings from Raining Greece. Guess what.. Here I am again after some days playing with a code and FreeRTOS
If we were living in the same continent ti would be KY pleasure... Maybe I can
online ![]()
So my first conclusions are that I must use often the "vTaskDelay"
In one occasion the cpu was running so fast that couldnt switch on one Relay via Gpio pin = High
After setting it high and with additional of the delay worked
Annother conclusion is that if I don't use the vTaskDelay command in the Tasks I am getting an error for watchdog time and the cpu reboots
So the use of the vTaskDelay is mandatory I guess to leave time to check all the tasks when have the same level priority.
I read that the vTaskDelay(); counts on ticks and the vTaskDelay(ms / portTTICK_PERIOD_MS) ; measure time in ms (converting them to ticks obviously)
So what is the best method to use?
vTaskDelay(1);
vTaskDelay(10 / portTTICK_PERIOD_MS) ;