AnsweredAssumed Answered

Uart termios settings

Question asked by Tony Makkiel on Aug 4, 2016
Latest reply on Aug 5, 2016 by Tony Makkiel


       I am running the uart dma_transfer example within KDS 2 on TWR-KL43Z. The example works fine when I use gtkterminal. I tried to emulate the same by sending a character 'A' 20 times. But, the twr does not seem to receive the data.

Can somebody please confirm whether the following termios settings is sufficient?



ret = cfsetispeed(&uart_termios, B115200);  /* Disable parity and set 1 stop bit */ uart_termios.c_cflag &= ~( PARENB | CSTOPB); uart_termios.c_cflag |= (CS8 | CREAD | CLOCAL);  /* Disable Input/Output flow ctrl,*/ uart_termios.c_iflag &= ~(IXON | IXOFF | INPCK | CRTSCTS); uart_termios.c_iflag |= ( IGNPAR | IXANY );


I have also attached the code I try to emulate uart on the host linux side.


gcc test.c -l pthread -o test


Many Thanks,


Original Attachment has been moved to: