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.

AM4376: UART receive issue

Part Number: AM4376

I am using a custom board based on the TI EVM for AM4376 and our linux drivers are based of  kernel 4.1.13-rt11-g2046db6.

uart2 on AM4376 processor is externally connected to other uart interface.

When we snif the uart bus directly using logic analyzer we are seeing valid bytes without NULL

but

Reading /dev/ttys2 we see an extra NULL byte inserted in the message and all other bytes are as expected.

Our device tree has following definitions and looks like we don't have EDMA enabled

uart2_mws_pins_default: uart2_mws_pins_default {
pinctrl-single,pins = <
0x1f8 ( PIN_INPUT_PULLUP | MUX_MODE2 ) /* (AD22) cam1_data4.uart2_rxd */
0x1fc ( PIN_OUTPUT | MUX_MODE2 ) /* (AE23) cam1_data5.uart2_txd */
0x200 ( PIN_INPUT | MUX_MODE2 ) /* (AD23) cam1_data6.uart2_ctsn */
0x204 ( PIN_OUTPUT | MUX_MODE2 ) /* (AE24) cam1_data7.uart2_rtsn */
>;
};

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

Could you please let us know if extra NULL bytes in uart2 receive buffer is a known issue ? If so, please advise how to fix it?

Thanks,

Swapna