Hello @aggarg
I think I found the Issue. Please let me know if this is correct.
Old Code - Not Working
Updated Code - Working
→ update has been highlighted.
→ In the Older Code, I think the problem was when 50ms Task Event Group bit was read then It will clear the 20ms Task Event Group bit as well. Therefore, this will cause the 20ms Task to drop.
→ In the new code, I am not clearing the Event Group bits on reading but doing it manually as can be seen in the code.
Please let me know if my understanding is correct. Thanks

