I want change easyweb to communicate with the camera and send hex data (camera) up through enthernet computer. I used the arm to connect to the camera via uart, but my problem is getting data from the camera with a piece of lost data when I put the counter(nn) above 315bytes. my camera send data HEX about 12kb. What is my problem? way to solve? my code received data from camera: while(1){ pdata[nn] = UARTGetChar(LPC_UART0);
if (nn==280)(break;}
nn++; }
You don't show enough that anyone will be able to help.
By the way - I don't much like your concept with that order of assign, test for done and increment of the index.
Breaking after assign to position [280] would indicate that you try to receive 281 bytes. It is more visual then to say
if (++nn == 281) break;
Another thing - noticed that my source code looks differently formatted than yours? Look above the message input box. It shows clear instructions how to post source code.