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