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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-06-03 6: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);
}
Labels:
- Labels:
-
STM32F4 Series
-
UART-USART
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
