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.

Linux/AM3359: UART Loop-back Test Data Mis -match

Part Number: AM3359
Other Parts Discussed in Thread: TMDSICE3359

Tool/software: Linux

Hi,

I am performing the UART Loop-back Test using AM3359 Processor with 115200 baud-rate. All data (0 to FF) is sending and receiving in application except 'D'. Instead of 'D' , 'A' is receiving. but '1D','2D' ..etc are coming perfectly.

What could be the reason ?

How can I solve this issue.

regards

Mobin P K

  • Hi,

    Which Processor SDK Linux is this? Which AM335x board? What application are you using to perform UART Loopback test?

    Best Regards,
    Yordan
  • Hi,

    TMDSICE3359 . using Write & Read call after opening "/dev/tty"

    thanks
    Mobin P K
  • Ok, and which is the Processor SDK Linux? Did you modify your dts files?

    Best Regards,
    Yordan
  • Hi,

    PROCESSOR-SDK-LINUX-RT-AM335X - TMDSICE3359 board
    Linux Version = linux-4.14.67+gitAUTOINC+d315a9bb00-gd315a9bb00

    Following is my device tree configuration for UART.

     /* UARTs */
    &am33xx_pinmux {
        uart0_pins: pinmux_uart0 {
            pinctrl-single,pins = <
                0x170 (PIN_INPUT_PULLUP | MUX_MODE0)    /* uart0_rxd.uart0_rxd */
                0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
            >;
        };

        uart1_pins: pinmux_uart1 {
            pinctrl-single,pins = <
                0x180 (PIN_INPUT_PULLUP | MUX_MODE0)     /* uart1_rxd.uart1_rxd */
                0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)     /* uart1_txd.uart1_txd */
            >;
        };

        uart2_pins: pinmux_uart2 {
            pinctrl-single,pins = <
                0x12C (PIN_INPUT_PULLUP | MUX_MODE1)    /* mii1_tx_clk.uart2_rxd */
                0x130 (PIN_OUTPUT_PULLDOWN | MUX_MODE1)    /* mii1_rx_clk.uart2_txd */
            >;
        };
    };

    &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_pins>;
        status = "okay";
    };

    &uart1 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart1_pins>;
        status = "okay";
    };

    &uart2 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart2_pins>;
        status = "okay";
    };



    thanks

  • Hi Mobin,

    Please share your test application.
  • Hi, I haven’t heard back from you, I’m assuming you were able to resolve your issue. If not, just post a reply below (or create a new thread if the thread has locked due to time-out). thanks.