title: USART1 Interrupt IRQHandler how to receive string
body: <p>I am able to receive bytes of incoming data via serial from the pc to STM32051 board but any time that i type in 2 or more characters to send at a time the interrupt stops until i reset the board to repeat same process... How can i change the IRQHandler code to receive payload of 23 bytes or string? can anyone help me with a sample code or modify my current code so i can receive this payload? thanks,</p>
  
  <p>Here's the IRQHandler function that can receive only one byte.</p>
  
  <pre><code>void USART1_IRQHandler(void)
  {
    unsigned char getbuffer [200], finalbuffer, targetdata[];
    if(USART_GetITStatus(USART1, USART_IT_RXNE) )
    {
      getbuffer [i] = USART_ReceiveData(USART1);
      buffer = (getbuffer [i]); 
      USART_SendData(USART1, buffer);//Feedback 
      i++;          
    }
  }
  </code></pre>