AnsweredAssumed Answered

Usart DMA Rx and timer input capture reset

Question asked by pcu on Dec 22, 2015
Latest reply on Dec 23, 2015 by waclawek.jan
I configured my STM32F4 like in the AN3109 where USART uses DMA for reception and RX pin is connected to a timer (input capture reset mode) because I do not know the size of incoming messages (modbus).
So far so good, it works.

But in the example of AN3109, timer is disabled (in the interrupt) after the timeout  and I do not see how it activates again.

It's a bit my problem:
-If I do not disable the timer after timeout there will be a multitude of interrupt in case of long period without message.
-If I disable the timer I do not see how to reactivate it for the begin of the next frame.
Any ideas?

Thank you.