AnsweredAssumed Answered

UART only receiving one byte of data before sending all 0's.

Question asked by Brendan Merna on Aug 30, 2017
Latest reply on Sep 6, 2017 by Mark Butcher

I'm using a MK22F51212 chip on a custom circuit board. The UART0 line is hooked up to a ORG1411 GPS and I'm trying to read NMEA strings out of the device and into a buffer.

 

I am following the demo project in the KSDK 2.0 driver_examples/uart/polling to initialize and read the UART data.

 

I am able to read the 8 bytes out of the buffer. This is the first 8 bytes sent by the GPS which I have confirmed is accurate based on the GPS data sheet. After that every read I make I only read 0's, this happens whether I'm reading a byte at a time or a whole 8 byte buffer.

Is there another step I need to do after a read? I'm using the UART_ReadBlocking function.

Outcomes