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.

uart psp driver example

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

  • Hi Accel Abarca,

    Please mention the PSP package name and it's version details. On which board / device are you attempting? OMAP-L13x or AM1x or C674x ?

     

    Regards,

    Shankari.

  • Hi Shankari,

    Thanks for read my message. 

    The PSPdrivers version is 01.30.00.06. The board is OMAPL138 EVM (I am using the C6748 DSP). I fixed the problem, actually it was pretty simple, I had problems with the buffer. The buffer was to big comparing the data I wanted to transmit to the board. However, I do not know how to configure the buffer so that it can to receive any size data without the proble to fill all the buffer?

    Regards

    Accel