hello，I set up the a system to collect MCU information through serial port, whitch’s name is “/dev/ttyTHS0”, but I can’t read any data. The system is connected directly to the MCU through a serial port.
Although ttyTHS0 could be set up as a serial console in Linux, I would be surprised if it works in prior boot stages since those stages only have the legacy driver (which would use ttyS0, but be the same physical UART). However, one glaring problem which shows up is that your windows terminal setup is showing “Baud rate: 460800”, and it should be 115200.
If the port is correct, and if the UART is using 3.3V TTL logic level, then the above should work. You might try with XON/XOFF flow control (software only flow control), but I suspect if it were a software flow control problem, then you’d at least have seen some activity and it wouldn’t be completely blank.
If you happen to have an oscilloscope, then perhaps you could watch the RX and TX wires to see if it has a 3.3V square wave during times you expect data.