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.

TDA4VM: Change the UART Debug Console

Part Number: TDA4VM

Hi,

I need to change the UART Debug Console from Main UART0 to Main UART1, I need some assistance in this segment. Im using the EVM board.

Thanks

  • I have made changes in both U-boot device tree as well as the kernel device tree

    &main_pmx0 {
    	main_uart0_pins_default: main-uart0-default-pins {
    		pinctrl-single,pins = <
    			J721E_IOPAD(0x1d4, PIN_INPUT, 1) /* (Y3) SPI1_CS0.UART0_CTSn */
    			J721E_IOPAD(0x1c0, PIN_OUTPUT, 1) /* (AA2) SPI0_CS0.UART0_RTSn */
    			J721E_IOPAD(0x1e8, PIN_INPUT, 0) /* (AB2) UART0_RXD */
    			J721E_IOPAD(0x1ec, PIN_OUTPUT, 0) /* (AB3) UART0_TXD */
    		>;
    		/*bootph-all;*/
    	};
    
    	main_uart1_pins_default: main-uart1-default-pins {
    		pinctrl-single,pins = <
    			J721E_IOPAD(0x1f8, PIN_INPUT, 0) /* (AA4) UART1_RXD */
    			J721E_IOPAD(0x1fc, PIN_OUTPUT, 0) /* (AB4) UART1_TXD */
    		>;
    		bootph-all;
    	};
    	}
    	
    	&main_uart0 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_uart0_pins_default>;
    	/* Shared with ATF on this platform */
    	power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
    	/*bootph-all;*/
    };
    
    &main_uart1 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_uart1_pins_default>;
    	power-domains = <&k3_pds 278 TI_SCI_PD_SHARED>;
    	bootph-all;
    };

    these are the changes i have made and my board is not getting booted

    Thanks

  • Hi,

    Please take a look at the following FAQ: How to test serial UART ports on board for changing the UART instance used.

    Additionally, note for the J721E EVM, here is the EVM UART Port mapping:

    Thanks,

    Neehar

  • Hi

    this you have sent for normal UART communication, but i want to switch my boot log terminal from main UART0 to Main UART1.

    Thanks

  • Hi,

    1.I have made some changes in

    	aliases {
    		serial0 = &wkup_uart0;
    		serial1 = &mcu_uart0;
    		serial2 = &main_uart0;
    		serial3 = &main_uart1;
    		serial4 = &main_uart2;
    		serial6 = &main_uart4;
    		ethernet0 = &cpsw_port1;
    		mmc0 = &main_sdhci0;
    		mmc1 = &main_sdhci1;
    	};
    
    	chosen {
    	-	stdout-path = "serial2:115200n8";
    	+   stdout-path = "serial3:115200n8";
    	};
    	
    	&main_pmx0 {	
    	main_uart0_pins_default: main-uart0-default-pins {
    		pinctrl-single,pins = <
    			J721E_IOPAD(0x1d4, PIN_INPUT, 1) /* (Y3) SPI1_CS0.UART0_CTSn */
    			J721E_IOPAD(0x1c0, PIN_OUTPUT, 1) /* (AA2) SPI0_CS0.UART0_RTSn */
    			J721E_IOPAD(0x1e8, PIN_INPUT, 0) /* (AB2) UART0_RXD */
    			J721E_IOPAD(0x1ec, PIN_OUTPUT, 0) /* (AB3) UART0_TXD */
    		>;
    		bootph-all;
    	};
    
    	main_uart1_pins_default: main-uart1-default-pins {
    		pinctrl-single,pins = <
    			J721E_IOPAD(0x1f8, PIN_INPUT, 0) /* (AA4) UART1_RXD */
    			J721E_IOPAD(0x1fc, PIN_OUTPUT, 0) /* (AB4) UART1_TXD */
    		>;
    		bootph-all;
    	};
    };
    
    &main_uart0 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_uart0_pins_default>;
    	/* Shared with ATF on this platform */
    	power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
    	bootph-all;
    };
    
    &main_uart1 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_uart1_pins_default>;
    	power-domains = <&k3_pds 278 TI_SCI_PD_SHARED>;
    	bootph-all;
    };
     the device tree as follows

    then i built my u boot and kernel and i turned ON my board the board was not booted

    Thanks

  • Hi,

    By using this command(setenv console ttyS3,115200n8) in the uboot environment the uart console is change.

    But it always starts the kernel Log in the UART1, i need uboot log also to be printed in main UART1.

    Thanks

  • Hi,

    What SDK version is this for?

    There is an FAQ for this matter, however, it is for WKUP UART. You can follow these similar steps and use Main UART1 instead:

    FAQ: Enable WKUPUART for boot logs in SPL?

    Thanks,

    Neehar