Why the /dev/ttyTHS2 can not receive data?
I run the command as below.
stty -F /dev/ttyTHS2 115200 parodd
echo "command" > /dev/ttyTHS2
Then I can use PC receive the “command” data.
cat /dev/ttyTHS2
Now I use PC send some uart data,but /dev/ttyTHS2 cant not receive data.
How can I fix this question?
I use the D9,D10 pin port.
hello sensor_test,
did you refer to Jetson TX1 J21 Header Layout to have wiring.
you should have pin8(UART 1 TXD) connected to cable-RXD and pin10(UART 1 RXD) to Cable-TXD, and pin9 is ground.
thanks
hello JerryChang,
1.But I can find Jetson_TX1_Generic_Customer_Pinmux_Customer_Release xls file.
haev this info.
WHY?
UART1_TX D9
UART1_RX D10
UART1_RTS# E9
UART1_CTS# E10
The D9 is not the UART TXD?
2.How can define this uart pin at device tree file?
hello sensor_test,
please check [Jetson TX1-TX2 Developer Kit Carrier Board Specification]->[3.4 Expansion Header] from Jetson Download Center, pin8 for UART1-TX and pin10 for UART1-RX.
you may also follow [TX2 Configuring Pinmux GPIO and PAD] to customize the pinmux spreadsheet to generate dtsi files, converting them to cfg files for using.
thanks
hello JerryChang,
1.I use own board,and I check the UART txd and txd PIN is right connect .
2.How can write the uart1 device tree info at TX1?
Can you offert an example?
hello sensor_test,
you should check the [Tegra X1 (SoC) Technical Reference Manual]-> [UART Controller] chapter,
there’s UART programming guidelines for your reference.
thanks