Other Parts Discussed in Thread: TMDS570LS31HDK
Hi,
I have two Hercules TMDS570LS31HDK Launchpad. My main goal is receiving data from Hercules 1 in Hercules 2.
Our data looks like Fig.1.
Fig.1. Sending Data (Correct)
Fig.2. Receiving Data (Incorrect)
I do not observe any problems while sending the data, but when I want to receive the data with Hercules 2, I noticed that some bytes are missing. (Seen in Fig.2.)
My experimental setup is as follows: When the GIOA7 button on Hercules 1 is pressed, data is sent from Hercules 1 to Hercules 2. Hercules 2 runs the code in the code snippet below.
uint8 packageData[100]; uint32 receivingSecondByteData; int byteNo; while(1){ receivingSecondByteData = 0; byteNo = 0; while(receivingSecondByteData != 0x16) { receivingSecondByteData = sciReceiveByte(scilinREG); packageData[byteNo] = receivingSecondByteData; byteNo++; } for(int i=0; i< 10000000; i++){} if(byteNo != 0){ vSciDisplayText(scilinREG, &packageData[0], byteNo); } for(int i=0; i< 10000000; i++){} }
I don't understand why I am not getting the data properly.
Thanks for help, Regards.