Hi,
Thanks for posting the query.
There are some similar posts in the following threads:
- Stuck in xTaskResumeAll() - Interrupt Priorities? Stack?
-
Endless loop in 10.4.6 with -Os flag
Please check if any of the suggested options help in your scenario.