UART2 used as /dev/ttyTHS3

Has anyone successfully used UART2 as /dev/ttyTHS ?
The UART is by default allocated to M.2, how can it be used as a general purpose UART?

hello MarMarMar,

i’ve notice that you also asked about the similar question in https://devtalk.nvidia.com/default/topic/1004340
may i know is this still an issue here? are you able to enable multiple UART?

HI JerryChang,
I need to use uart2(B15 B16) port as normal uart.I think /dev/ttyTHS3 is maped uart2 and can find tty device /dev/ttyTHS3.
but uart2 can’t work. how to use uart2 as normal uart?

thanks.

hello MarMarMar,

please refer to this topic for more details,
https://devtalk.nvidia.com/default/topic/1009901/jetson-tx2/tx2-uart-enabling-dev-ttyths2/post/5152389/#5152389
thanks

HI JerryChang,
According to this topic, UART2 should be /dev/ttyTHS1. But when I open /dev/ttyTHS1 in my application, my console ttyS0 does not work any more. there is no print on my console screen.
Now i have UART0(G12 H12) and UART1(D9 D10) work well, but UART2 still not work.

thanks

hello meyan,

could you please share the kernel message to us,

dmesg > kernel.log

HI JerryChang,

I find the similar question in https://devtalk.nvidia.com/default/topic/1023121/jetson-tx1/tx1-jetpack-3-1-dev-ttyths1-reliable-hard-lockup-/. Refer to this topic, I fix the dts file and UART2 works.

thanks.