Monitoring stopped

When monitoring after porting, printf results are output for about 10 seconds and then no longer output.
I want to solve this problem, but is it because there are many while statements in the function?
I have a while statement in the main and a while statement when it gets caught in an if statement.
Outside of main, there is a while statement in the txTask function.

Hello,

sorry, this description seems to be not optimal, but it seems like your code get stuck somewhere (probably in an unexpected).

BR, Jan

I sent you the full source code by message, can you help me?