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/AM3358: omap-serial 7 data bits format

Part Number: AM3358

Tool/software: Linux

We have a Beaglebone Black async serial application using ttyO0, ttyO1, ttyO2. It works fine for the 8 data bit format (parity or no parity, 1 stop). However, it does not work for 7 data bits (parity or not, 1 stop). Further tests using Buildroot buildroot-2016.11 and Debian 9.5 2018-08-30 with minicom has confirmed there is a problem with the 7-bit data format.

 

From omap-serial.c & serial-omap.h, function serial_omap_set_termios() seems properly setup for:

case CS7:

            cval = UART_LCR_WLEN7;      //UART_LCR_WLEN7= 0x02   Wordlength: 7 bits

 

I fail to recognize where the potential problem lies. Would greatly appreciate some guidance on this.

Thank you,