This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UART PROBLEM ARM lpc1769

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++; }

Parents
  • what is wrong in the code

    global_temp1 = multiptr2_init1; route1(); DVAorIP2(); decode2bytes(); changesoutput1(); global_temp1 = configpm[glbtmpvar]; PORTD = ' '; if (multiptr2_init1<17) { PORTD = 'b'; if (multiptr2_init1 & 0x01) { PORTD = 'a'; } } ASCII_TO_LCD(); PORTD = 0xC9; dis(); J_num = 16; second_name(); PORTD = 0xDC; dis(); decode2bytes(); PORTD = 0xE1; dis(); changesoutput2(); global_temp2 = configpm[glbtmpvar]; if (multiptr2_init1 & 0x01) { global_temp1 = global_temp2 >> 4; } else { global_temp1 = global_temp2 & 0x0F; } decode2bytes(); } else if (screen_num == 26)

Reply
  • what is wrong in the code

    global_temp1 = multiptr2_init1; route1(); DVAorIP2(); decode2bytes(); changesoutput1(); global_temp1 = configpm[glbtmpvar]; PORTD = ' '; if (multiptr2_init1<17) { PORTD = 'b'; if (multiptr2_init1 & 0x01) { PORTD = 'a'; } } ASCII_TO_LCD(); PORTD = 0xC9; dis(); J_num = 16; second_name(); PORTD = 0xDC; dis(); decode2bytes(); PORTD = 0xE1; dis(); changesoutput2(); global_temp2 = configpm[glbtmpvar]; if (multiptr2_init1 & 0x01) { global_temp1 = global_temp2 >> 4; } else { global_temp1 = global_temp2 & 0x0F; } decode2bytes(); } else if (screen_num == 26)

Children