AnsweredAssumed Answered

FreeRTOS UART Receive without waiting for a character

Question asked by Eric O'Neill on Nov 14, 2017
Latest reply on Nov 20, 2017 by Daniel Chen

Hello,

I'm new to FreeRTOS and Kinetis processors in general. I'm trying to create a program where the UART sends a short message every second, and additionally the program can receive characters and store them in a buffer. With the example provided in the KSDK 2.0, the program waits until 4B are received before sending them all back. I would like the program to continue sending another message without waiting.

 

Would I need to create another uart task just for the receive buffer? Or is there a way to only call UART_RTOS_Receive once there is a character on the UART RX waiting to be received.

 

I am using a K66 processor with FreeRTOS. I used the freertos_uart example program from the KSDK 2.0 to start.

 

Let me know if there needs to be any clarification. Any help would be greatly appreciated.

Thanks,

Eric

Outcomes