I am trying to communicate through uart2 on xavier nx. This port is by default used for debug console and tegra-combined-uart. Making some changes in conf.common , common.dtsi files and disabling CONFIG_SERIAL_8250_CONSOLE support in kernel config file, I managed to turn off ttyTCU port and instead of it ttyTHS2 appears.
Now I can open ttyTHS2 in terminal and read/write operations are ok. But after a few seconds data stops to comming out of the port. I write simple c++ program in which I am sending message “MESSAGE” in a while loop.
As you can see in below screenshot from logic analyzer, messages stops to coming out of the port after approx 12 seconds.
The strange thing I have noticed, is that after restart of program, all the previous messages which not came out are suddenly transmitted with the first message. (screenshot below).
So it seems like those messages are stucks somewhere in the buffer and don’t came out.
Does anybody have any tips what can cause this behavior ?
Thanks in advance for any relevant reply.