Tool/software:
Hi TI experts,
Our project using mcu_uart0 as /dev/ttyS4
but we cannot output data to /dev/ttyS4
it will hang after I output data to /dev/ttyS4
$ stty -F /dev/ttyS4 115200 $ echo "hello" > /dev/ttyS4 //It will hang here and not return
When the system starts up, I notice that it outputs the following message (From the DB9 output of my machine):
[IPC RPMSG ECHO] Version: REL.MCUSDK.K3.10.00.00.05+ (Jul 11 2024 03:05:55): [IPC RPMSG ECHO] Remote Core waiting for messages at end point 13 ... !!! [IPC RPMSG ECHO] Remote Core waiting for messages at end point 14 ... !!!
Below is my kernel DTS configuration for this UART.
/ {
compatible = "ti,am62p5-sk", "ti,am62p5";
model = "Texas Instruments AM62P5 SK";
aliases {
serial0 = &main_uart1;
serial1 = &wkup_uart0;
serial2 = &main_uart0;
serial3 = &main_uart6;
serial4 = &mcu_uart0;
// mmc0 = &sdhci0;
mmc1 = &sdhci1;
// mmc2 = &sdhci2;
spi0 = &mcu_spi0;
spi1 = &main_spi0;
ethernet0 = &cpsw_port1;
ethernet1 = &cpsw_port2;
usb0 = &usb0;
usb1 = &usb1;
};
};
&mcu_pmx0 {
bootph-all;
// UART2 - RS232
mcu_uart0_pins_default: mcu-uart0-default-pins {
pinctrl-single,pins = <
AM62PX_MCU_IOPAD(0x0014, PIN_INPUT, 0) /* (B6) MCU_UART0_RXD */
AM62PX_MCU_IOPAD(0x0018, PIN_OUTPUT, 0) /* (C8) MCU_UART0_TXD */
>;
};
};
// mcu_uart0 | /dev/ttyS4 | RS232
&mcu_uart0{
pinctrl-names = "default";
pinctrl-0 = <&mcu_uart0_pins_default>;
status = "okay";
bootph-all;
};
Does anyone know what happened?
Thanks!