vTaksDelay stops scheduler without resuming it after a few calls

That seems correct. We need to narrow down the problem - Can you try removing this debug port from your ISR so that we do not need to initiate a UART Tx. Also, can you share call stack (possibly a debugger snapshot) when the assert fires?

Thanks.