Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RTOS: UART_Read() missing characterts

$
0
0

Tool/software:TI-RTOS

Hi All

I added UART to the simple BLE peripheral project and I am having an issue related the UART_read()

     UART_Params_init(&uartParams);
     uartParams.writeDataMode   = UART_DATA_BINARY;
     uartParams.writeMode       = UART_MODE_CALLBACK;
     uartParams.writeCallback   = WriteCallback;
     uartParams.readMode        = UART_MODE_CALLBACK; 
     uartParams.readCallback    = ReadCallback;
     uartParams.readReturnMode  = UART_RETURN_FULL;
     uartParams.readEcho        = UART_ECHO_OFF;
     uartParams.baudRate        = 9600;
     uart = UART_open(Board_UART0, &uartParams);

I am calling the  UART_read(uart, &input, 1); inside the main loop on SimpleBLEPeripheral_taskFxn, it works the major part of time, but some times I miss 1 byte 1/500 times. My application requires reads byte to byte no another way.

My concern is I MUST have to call UART_read() every time I want receive UART data and the UART read is define as CallBack (a pseudo interruption), but some times it lost the incoming data

I tried in several ways calling the UART_read inside the UART Read CallBack, inside the main loop on SimpleBLEPeripheral_taskFxn, and still happen the same issue

I read severals post in the forum without a real solution examples:

https://e2e.ti.com/support/embedded/tirtos/f/355/t/484490

https://e2e.ti.com/support/wireless_connectivity/proprietary_sub_1_ghz_simpliciti/f/156/t/538869

Thanks

Ela

can some one give one hand with this?


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>