This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28027: how to process data received to SCI

Part Number: TMS320F28027
Other Parts Discussed in Thread: CONTROLSUITE

This is for a school project. I am trying to received data from SCI. I am using controlSUITE V230 API based examples. 

if(SCI_getRxFifoStatus(mySci) != SCI_FifoStatus_Empty)
    {
        uint16_t ReceivedChars [4];
        uint16_t i = 0;
        while(SCI_getRxFifoStatus(mySci) != SCI_FifoStatus_Empty){
            ReceivedChars[i++] = SCI_getData(mySci);
        }

    }

By observing ReceivedChars with the debugger the values returned are inconsistent. I know that the terminating character will cause problems but I expect the first character to be the one sent through serial.