Other Parts Discussed in Thread: OMAPL138
Hi everyone,
I am running the UART pspdriver example, but I have problems receiving data from the PC. The program works fine when it has to transmit data but in the other way it is not working. I have tried with other configurations but I have not had good results. The receive part of the main program is:
printf("Recepción de datos desde el PC\n");
buf = Uart_TxBuffer;
len = 1000u;
//len = strlen(Uart_TxBuffer);
status = GIO_submit(hUart_IN,IOM_READ,buf,&len,NULL);
//status = GIO_read(hUart_IN,buf,&len);
if (!((status == IOM_COMPLETED)||(status == IOM_PENDING)))
{
//LOG_printf(&trace, "\r\n Error from GIO_read for 1000 bytes read\n");
printf("\r\n Error from GIO_read for 1000 bytes read\n");
}
printf("Datos recibidos correctamente\n");
If somebody could help, it will be great.
Regards
Accel