title: Receiving a string through UART in STM32F4
body: <p>I've written this code to receive a series of char variable through <code>USART6</code> and have them stored in a string. But the problem is <strong><strong>first</strong> received value</strong> is just a junk! Any help would be appreciated in advance.</p>
  <pre><code>while(1)
  {
              
      //memset(RxBuffer, 0, sizeof(RxBuffer));            
      i = 0;
      requestRead(&amp;dt, 1);   
      RxBuffer[i++] = dt;
              
      while (i &lt; 11)
      {
           requestRead(&amp;dt, 1);
           RxBuffer[i++] = dt;
           HAL_Delay(5);
      }
  
  </code></pre>
  <p>function prototype</p>
  <pre><code>static void requestRead(char *buffer, uint16_t length)
  {
      while (HAL_UART_Receive_IT(&amp;huart6, buffer, length) != HAL_OK)
      HAL_Delay(10);     
  }
  </code></pre>