AnsweredAssumed Answered

K64F FreeRTOS UART demo not receiving any data

Question asked by Manuel Malagon on Mar 15, 2017
Latest reply on Apr 23, 2017 by Daniel Chen

Hello

 

Recently I have created a demo project for the FRDM-K64F board using the SDK2.1. The sample project is to see how to use the UART in FreeRTOS.

 

The board sends data properly but it then stops working and is not receiving anything. I single-stepped into the code and I'm observing that the code gets stuck at line 290 in the file fsl_uart_freertos.c, specifically on the statement

 

ev = xEventGroupWaitBits(handle->rxEvent, RTOS_UART_COMPLETE | RTOS_UART_RING_BUFFER_OVERRUN | RTOS_UART_HARDWARE_BUFFER_OVERRUN, pdTRUE, pdFALSE, portMAX_DELAY);

 

Why is this happening? I haven't modified anything, I'm using the project exactly as it is generated. I attach a copy in case you don't want to generate it. Just import it within eclipse.

 

Thanks!!

Original Attachment has been moved to: uart_rx.zip

Outcomes