iMX28 application UART

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX28 application UART

2,238 Views
nick33
Contributor II

Hi

 

I am writing some C code to set up and use AUART_0.  through /dev/ttySP0. I am opening the port successfully and, when I write the port I am am actually getting data on the TX pin but then I get the following error: "mxs-auart mxs-auart.0: Unhandled status 52028d".

 

Any ideas are greatly appreciated!

Labels (1)
0 Kudos
4 Replies

647 Views
nick33
Contributor II

Got it working! Avinash is right, these error codes appear to be associated with parity errors, framing errors, etc and I cannot find them documented anywhere either. My code is similar to Marcos except I'm not calling ioctl().

 

Also, I was not sending an LFCR after the string I was trying to send to my modem i.e. "ATZ\r\n" so now wonder I wasn't getting anything back!

0 Kudos

647 Views
___myir
Contributor II

I also faced similar problem, the errors messages was printed when I use parity, it would no appears if I didn't  use parity.

0 Kudos

647 Views
katte
Contributor II

Can you write your code for open the com port?
I use this:

/* open UART */
if ((I_uart_file = ::open(device, O_RDWR | O_NOCTTY | O_NDELAY)) == -1) {
/*
* Could not open the port.
*/
I_isOpen = P_Error;
return;
}
/* set BAUDRATE */
tcgetattr(I_uart_file, &termios_old);
termios_mxc = termios_old;
termios_mxc.c_lflag &= ~(ICANON | ECHO | ISIG);
cfsetospeed(&termios_mxc,B115200);
cfsetispeed(&termios_mxc,B115200);
retval = tcsetattr(I_uart_file, TCSANOW, &termios_mxc);
line_val = LOOPBACK;
ioctl(I_uart_file, TIOCMSET, &line_val);


and I don't have any problem.

0 Kudos

647 Views
AvinashGodbole
Contributor I

I also faced similar problem. I was getting the error code as 52080. Searched a lot in various documents, but could not find.

Practically I foound that these error codes are for parity error, framing error etc.

0 Kudos