Timing Problem when using Event Group and Timers

Looking at your previous image, uxBitsToClear must be zero for you as you are you are passing xClearOnExit as pdFLASE to xEventGroupWaitBits.

eventCLEAR_EVENTS_ON_EXIT_BIT flag should not be set on this line - FreeRTOS-Kernel/event_groups.c at main · FreeRTOS/FreeRTOS-Kernel · GitHub and it should remain unset on this line too - FreeRTOS-Kernel/event_groups.c at main · FreeRTOS/FreeRTOS-Kernel · GitHub

Can you try to trace how is this becoming set on the second line? If you are not able to debug that, drop me a DM with you email and we can setup a debug session. To drop a DM, click on the image next to my display name aggarg and then click Message in the popup.