STMicroelectronics / stm32l0xx_hal_driver

Provides the STM32Cube MCU Component "hal_driver" of the STM32L0 series.
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

Missing LIN break detection callback in UART HAL driver #10

Open NicoPy opened 4 months ago

NicoPy commented 4 months ago

It is currently not possible to detect a line break on a UART using stm32l0xx_hal_uart.h and stm32l0xx_hal_uart.c. This has been requested long ago here but it has still not been implemented. Any reason for that ?

Note : Same question for other bits like Auto Baud Rate Flag/Error.

KRASTM commented 3 months ago

ST Internal Reference: 183583

KRASTM commented 3 months ago

Hello @NicoPy,

Regarding your question about Auto baud rate detection, unfortunately there is no intention to add this feature to this series for the moment, may be in the future, I will keep you informed. However, there is an example in H5 series STM32CubeH5\Projects\NUCLEO-H533RE\Examples\UART\UART_AutoBaudrate_Detection, you can use it, to adapt and use this feature on L0.

With regards,

NicoPy commented 3 months ago

Hello @KRASTM , Thanks for your answer. Today I realized there is no interrupt for Auto Baud Rate. Just flags indicating finished with/without error when a character has been received. So, a callback is not needed. Regards, Nicolas