This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM6442: Switch the console from MAIN UART0 to MCU UART0

Part Number: AM6442
Other Parts Discussed in Thread: TMDS64EVM

Tool/software:

Hello,

I have a custom board with the AM6442 MPU (but this question is also applicable to the TMDS64EVM devkit) and I want to switch the UART console from MAIN UART0 to MCU UART0 for all bootloaders and Linux. What modifications should I make in the BSP? My version of the BSP is ti-processor-sdk-linux-am64xx-evm-11.00.09.04.

I tried enabling the mcu_uart0 node in k3-am642-evm.dts and adding it to the "chosen" node, but it doesn't work.

chosen {
    stdout-path = &mcu_uart0;
};

&mcu_pmx0 {
	uartmcudbg_pins_default: uartmcudbg-default-pins {
		pinctrl-single,pins = <
			AM64X_MCU_IOPAD(0x0028, PIN_INPUT, 0) /* (A9) MCU_UART0_RXD.MCU_GPIO0_3 */
			AM64X_MCU_IOPAD(0x002c, PIN_OUTPUT, 0) /* (A8) MCU_UART0_TXD.MCU_GPIO0_2 */
		>;
	};
};

&mcu_uart0 {
	bootph-all;
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&uartmcudbg_pins_default>;
};