cancel
Showing results for 
Search instead for 
Did you mean: 

UART/USART IT Handler Has No Callback

raptorhal2
Lead
Posted on December 02, 2017 at 23:08

In stm32L4xx_hal_uart.c and usart.c for the HAL Driver version 1.10.0, a call to HAL_UART_IRQHandler returns back to the caller if no errors instead of HAL_UART_RxCpltCallback. This is contrary to the descriptive comments in the beginning of the driver source that says a callback is used for non-blocking mode. Non-blocking in DMA mode returns to a callback.

Unlike the HAL  COMM_IT example I am using a 1 word buffer.

I have not checked other driver versions.

Cheers, Hal

1 REPLY 1
LMI2
Lead
Posted on December 03, 2017 at 21:26

I have found that there is not allways a call to the callback in the ISR routine. You have to add them yourself.