Skip to main content
pbdiazam
Associate II
September 2, 2020
Question

UART Interrupt based program without HAL

  • September 2, 2020
  • 0 replies
  • 670 views

I have a weight cell connected to NUCLEO-F401RE over UART. I send specific frames and cell responds acording to these ones. I am able to send and receive fixed length frames successfully using HAL_UART_Transmit and HAL_UART_Receive.

The problem is that cell frame length responses are variable. These frames have fixed SOF and EOF (frame always starts with 0x44 and ends with 0x0A) so I tried receiving one byte at a time to detect SOF and EOF using HAL_UART_Receive_IT and push every character into a buffer.

Program does not work because I get overrun error and do not know how to fix it. Is this problem caused by HAL functions? If so, where can I find an example of UART RX interrupt without using HAL?

This topic has been closed for replies.