I’m new to FreeRTOS and I’m playing around with creating tasks and understanding core concepts. Currently I’m using TivaC launchpad board and I’m stuck in the following problem,
I’m creating 2 tasks with equal priority, where each task will TURN ON the onboard TivaC LED and the other task will TURN OFF the onboard TivaC LED. However context switching is not happening at the appropriate time as my configTICK_RATE_HZ is set to 1000 (1s). Therefore the LED doesn’t blink at a rate of 1s and the LED is just ON.
Currently the configCPU_CLOCK_HZ is set to 16,000,000 and configTICK_RATE_HZ is set to 2 . Therefore I should expect to see the LED blinking every 500ms. However the LED blinks at a rate of 160ms.
What CPU are you using? Have you looked up it’s “usual” operating speed?
A tick-rate configTICK_RATE_HZ of 2 is very low: are there any overflows or underflows while calculating the clock settings?