cancel
Showing results for 
Search instead for 
Did you mean: 

UART and timer interrupt issue

SGonz.2
Associate II

Hello! I having some problems using USART and timers

I'm receiving data by USART1+DMA and sending it by USB every 100[ms], if no data is received in 1[s], then timer TIM2 make an interrupt and sends a special USB message. This is done resetting timer's count value in USART's callback, so when no data is received, the counter overflows.

Receiving data by USART1+DMA Rx and sending it by USB works fine, but when I add the timer configurations it only executes the timer interrupts.

What's the problem? Is possible that UART uses TIM2 for something?

2 REPLIES 2
Diane POMABIA
ST Employee

Hi @SGonz.2​ ,

What device are you using?

Best regards

Diane

I'm using a STM32F407VET6