Skip to main content
VC T
Visitor II
June 3, 2019
Question

I am using UART1 of STM32F407VE in interrupt method. I am checking loopback method.But I am losing some characters . I am using docklight serial monitor to send 20-30 set of characters.I need to store around 255 bytes of data to a buffer.

  • June 3, 2019
  • 0 replies
  • 527 views

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);
 
}

This topic has been closed for replies.