usart receive
USART receive is not providing the output please check and reply me asap
selected USART2 made it to asynchronous also enabled global interrupt
code lines that i have added
uint8_t txbuf[10]="hello ";
uint8_t rxbuf[10];
while (1)
{
/* USER CODE END WHILE */
HAL_UART_Receive(&huart2, rxbuf, sizeof(rxbuf), 100);
/* USER CODE BEGIN 3 */
}
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
HAL_UART_Transmit(&huart2, rxbuf, sizeof(rxbuf), 100);
}
