I use Event Groups to synchronize starting of the tasks.
For example run the FIRST TASK and in the specific moment use
uxSetBits = xEventGroupSetBits( *mEventBits, BIT_0 ) - to set the bit.
and other tasks is BLOCKED on
uxWaitBits = xEventGroupWaitBits( *mEventBits, BIT_0, pdFALSE, pdFALSE, 50000 );
And everything is working correctly, but if I debug the situation I see that
uxSetBits sometimes is 1, and sometimes is 0.
uxWaitBits ALWAYS is 1 and all the tasks exits the blocked state when bit set (not on timeout).
I am really worried about the fact that xEventGroupSetBits not set bit.
What do you think about this ?
p.s. I have no tasks with higher priority than FIRST TASK, the only task with the same priority is TmrSvc
Thanks in advance