2019-06-03 06:38 AM
This is my interrupt handler...
void USART1_IRQHandler(void)
{
uint8_t data;
HAL_UART_IRQHandler(&huart1);
__HAL_UART_CLEAR_FLAG(&huart1, UART_FLAG_RXNE);
data = (uint8_t)(huart1.Instance->DR & (uint16_t)0x00FFU);
HAL_UART_Transmit(&huart1,(uint8_t*)&data,1,10);
}