2022-06-08 07:32 AM
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?
2022-06-08 07:49 AM
Hi @SGonz.2 ,
What device are you using?
Best regards
Diane
2022-06-08 07:52 AM
I'm using a STM32F407VET6