2023-11-08 02:15 AM
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);
}
2023-11-10 12:54 AM
@Tesla DeLorean can you please tell it in simple words or modify the code which you think is not correct
2023-11-10 07:50 AM
What is connected to your UART tx pin?