AnsweredAssumed Answered

STM32L4xx with DMA receive timeout on UART

Question asked by devilfish_mm on Nov 7, 2016
Latest reply on Nov 8, 2016 by waclawek.jan

I'm trying to setup DMA with a timer to check a timeout for my UART 1 on STM32L476G-EVAL board. The conditions are:

1. I've setup the DMA receive buffer to be 32 bytes.
2. If I start receiving data, I want to start the timer.
3. If I do not completely receive 32 bytes of data within 1 second, I want the timer to timeout.

I've looked at the example from AN3103 which is for STM32F1x CPU but am having a hard time converting to STM32L4 code. Can someone help to setup a timer that will working with input capture reset mode as suggested in AN3103?