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.

PROCESSOR-SDK-J721E: MCU UART prints out unreadable characters after sysfw.itb loaded in UART boot mode

Part Number: PROCESSOR-SDK-J721E

Hello expert,

j721e based board, SDK version linux-j7-evm-08_00_00_08.

This issue exists from the very beginning. Steps shows below.

Set the board to UART boot mode, power on the board, then MCU UART console window shows normal with repeating 'C' at the end, after tiboot3.bin is uploaded through MCU UART, repeating 'C' shows again on MCU UART console window, then upload sysfw.itb through MCU UART, just after sysfw.itb is uploaded successfully, some lines of unreadable characters shows on MCU UART console window, but MAIN UART console window shows normal. I guess maybe some settings of MCU UART is set incorrectly in DTS files. Would you help check the settings about mcu_uart0 ? My settings shown below.

In file k3-j721e-r5-myname-board.dts

&wkup_pmx0 {

         mcu_uart0_pins_default: mcu_uart0_pins_default {

                  u-boot,dm-spl;

                  pinctrl-single,pins = <

                           J721E_WKUP_IOPAD(0xe4, PIN_INPUT, 0) /* (H28) WKUP_GPIO0_13.MCU_UART0_RXD */

                           J721E_WKUP_IOPAD(0xe0, PIN_OUTPUT, 0) /* (G29) WKUP_GPIO0_12.MCU_UART0_TXD */

                  >;

         };

}

 

&mcu_uart0 {

         /delete-property/ power-domains;

         /delete-property/ clocks;

         /delete-property/ clock-names;

         pinctrl-names = "default";

         pinctrl-0 = <&mcu_uart0_pins_default>;

         status = "okay";

         clock-frequency = <48000000>;

};

  

In file k3-j721e-r5-eaik.dts

&wkup_pmx0 {

         mcu_uart0_pins_default: mcu_uart0_pins_default {

                  u-boot,dm-spl;

                  pinctrl-single,pins = <

                           J721E_WKUP_IOPAD(0xf0, PIN_INPUT, 2) /* (D26) MCU_I3C0_SCL.MCU_UART0_CTSn */

                           J721E_WKUP_IOPAD(0xf4, PIN_OUTPUT, 2)/* (D25) MCU_I3C0_SDA.MCU_UART0_RTSn */

                           J721E_WKUP_IOPAD(0xe4, PIN_INPUT, 0) /* (H28) WKUP_GPIO0_13.MCU_UART0_RXD */

                           J721E_WKUP_IOPAD(0xe0, PIN_OUTPUT, 0)/* (G29) WKUP_GPIO0_12.MCU_UART0_TXD */

                  >;

         };

}

&mcu_uart0 {

         /delete-property/ power-domains;

         /delete-property/ clocks;

         /delete-property/ clock-names;

         pinctrl-names = "default";

         pinctrl-0 = <&mcu_uart0_pins_default>;

         status = "okay";

         clock-frequency = <48000000>;

};

 

In file k3-j721e-r5-common-proc-board.dts

&wkup_pmx0 {

         mcu_uart0_pins_default: mcu_uart0_pins_default {

                  u-boot,dm-spl;

                  pinctrl-single,pins = <

                           J721E_WKUP_IOPAD(0xe8, PIN_INPUT, 0) /* (H29) WKUP_GPIO0_14.MCU_UART0_CTSn */

                           J721E_WKUP_IOPAD(0xec, PIN_OUTPUT, 0) /* (J27) WKUP_GPIO0_15.MCU_UART0_RTSn */

                           J721E_WKUP_IOPAD(0xe4, PIN_INPUT, 0) /* (H28) WKUP_GPIO0_13.MCU_UART0_RXD */

                           J721E_WKUP_IOPAD(0xe0, PIN_OUTPUT, 0) /* (G29) WKUP_GPIO0_12.MCU_UART0_TXD */

                  >;

         };

}

&mcu_uart0 {

         /delete-property/ power-domains;

         /delete-property/ clocks;

         /delete-property/ clock-names;

         pinctrl-names = "default";

         pinctrl-0 = <&mcu_uart0_pins_default>;

         status = "okay";

         clock-frequency = <48000000>;

};

 

In file k3-j721e-mcu-wakeup.dtsi

         mcu_uart0: serial@40a00000 {

                  compatible = "ti,j721e-uart", "ti,am654-uart";

                  reg = <0x00 0x40a00000 0x00 0x100>;

                  reg-shift = <2>;

                  reg-io-width = <4>;

                  interrupts = <GIC_SPI 846 IRQ_TYPE_LEVEL_HIGH>;

                  clock-frequency = <96000000>;

                  current-speed = <115200>;

                  power-domains = <&k3_pds 149 TI_SCI_PD_EXCLUSIVE>;

                  clocks = <&k3_clks 149 0>;

                  clock-names = "fclk";

         };

 

Thanks and Regards,

 YF