I want to use uart7 like other uart,but some err occur.
the uart7[D5 D8] link to another ext serial device(usb convert rs232), tx and rx cross connect.
the test interface is as follows.
the uart7.tx is fine, Every transmission is received correctly.
when other device send sth to uart7, the err occurs.
the error is as follows:
send bytes =8bytes, receive ok
send bytes<8bytes, receive nothing, the data “return” to sender
send bytes>8bytes, only receive 8bytes,More than 8, back to the sender
I found similar topics, But it didn’t help me out. uart7 rx issues
The issue was resolved when I followed the steps that I outlined in the other thread.
Considering you already have access to the serial port, I would say that you only need to edit the BPMP device tree to turn off the debug serial functionality.
Make sure you edit the correct file. The flash procedure doesn’t use the one listed in the configuration file (as per that thread).
This problem is still unsolved.
I have tried to decompile tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb and modify it
serial{
port = <0xff>;
has_ input;
}
After compiling to DTB, flash -r -k kernel-dtb jetson-tx2 mmcblk0p1 is used again. The fault phenomenon does not change after restart.
The upgrade version will not be considered at present, because many high-level development is based on the current version. This will lead to more problems.
according to the logs, UART7 has registered correctly,
[ 0.239850] iommu: Adding device c290000.serial to group 21
[ 2.647940] c290000.serial: ttyTHS6 at MMIO 0xc290000 (irq = 44, base_baud = 0) is a TEGRA_UART
may I have your error reproduce steps, please also share failures for reference,
thanks
Hardware connection: TX2 uart7 <—> TTL convert USB - host pc
Using the cutecom tool, open /dev/ttyTHS6, @9600bps/8/1.
The host also opens the serial port tool,with 9600bps/8/1.
If TX2 sends any character, the host can receive it normally. Tx functions is correct
The host sends 8 bytes, or multiples of 8 bytes, and TX2 can receive them normally.
If the host sends less than 8 bytes, TX2 will not receive it, but the host will receive the content sent.
If the host side sends more than 8 bytes of data, TX2 will receive 8 bytes, and the host side will receive the contents after 8 bytes.
hi jerry
If the serial port is used by the user, the baud rate should be determined by the user’s application instead of a default value. And paying attention to the baud rate should not be the focus of the problem.
thks
I used the command you gave to connect to uart7 through the serial console. There was no response.
If I replace other serial ports, such as ttyTHS2, the console operates normally.
Through this test, I think we can eliminate errors caused by cutecom.
When I use the command you provided, the system does not prompt any errors. like this:
getty -a ubuntu -L 115200 ttyTHS6 &
[1] 2898
according to post#27 from Topic 54572, This topic only mentioned that ttyths6 can be turned on normally, but RX still has problems and has not been solved.