I have an issue where vTaskDelay() doesn't seem to behave as expected.
When I call vTaskDelay(1) to blink an LED, it blinks at a period of about 200ms (est. by watching blink rate). When I use vTaskDelay(2) or anything other than 1, the LED stays on forever (I can tell the code is still executing). For instance:
vTaskDelay(2) ----> Period seems forever after watching for many minutes
vTaskDelay(10000/portTICK_PERIOD_MS) ------> Period about 8s
vTaskDelay(1000/portTICK_PERIOD_MS) ------> Period seems forever after watching for several minutes
In FreeRtosConfig.h I have:
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 100000000 ) /* Timer clock. */
Is there any configuration that I'm missing to set the proper tick rate?
PS: I posted this question a couple of days ago but I can't find my post and didn't get confirmation or response so I'm re-posting.