AnsweredAssumed Answered

UART with DMA and new line detection

Question asked by winix on Sep 23, 2015
Latest reply on Sep 25, 2015 by Keaven
Hi all, in my project which takes data from a device from UART, and I have made it use the DMA to save the info.  The callbacks HAL_UART_RxCpltCallback and HAL_UART_RxHalfCpltCallback are called and working well.  However, I have to detect the new line character to do some action according to the data, what is the best approach to this?  I am using STM32F051, and the UART_IT_LBD interrupt looks interesting but cannot get it to fire.

Sorry if this is a silly question, but I really do not know which direction to go at the moment.