Reading from Rx/Tx Serial Port

I am using the default online code and I am reading and writing to the Tx/Rx serial port. After roughly 20 minutes, the port stops receiving data. I can verify that data is leaving the serial port to the external device and that the device is sending data to the port, but the data never gets into the receive buffer.

I verified this by placing debug code in: PicSerialDrv.v → CheckUartInts in the “if(RXINTF2)” block of code.

I’ve tried the “Reset_Control_Block” and “Serial_Resume_Port” functions, but they didn’t seem to work.

Does anyone one know how to fix this??

I notice this more when I am trying to read and write to both serial ports.