FRDM K64F UART communication using MCU xpresso

Hi, I started to work on FRDM k64F using MCU xpresso. I want my frdm board to receive input data through its UART port, any UART port. I went through the examples given in MCU for UART communication like polling, edma transfer, and few methods.

But was not able to figure out which would be an efficient and easy way of receiving data. The data I want to receive as an input to my board looks like this

" Temperature value is %d" for every minute.

I have worked on frdm boards with mbed compiler but quite confused with MCU expresso.

HI, thank you for your reply. I ran the uart_interupt demo using UART 0. Then I initialized the UART 3 pin (PTC 17 and PTC 16). I tried connecting the Rx (PTC 16) to other board which would send 140 or 100, dummy data. But the data is not being read by the Rx pin. It is always showing as 0.

I tried extending the example by sending a message from KW41Z board to K64F.

The message is

Data is being sent

But the uart_readblocking function is able to read just the first character "D" and print it. It is not receiving all the characters in the message. So I tried initializing a buffer but was not successful in that.

The (*data) attribute in readblocking function is reading just one byte and not rest of the message.