AnsweredAssumed Answered

Timer update DMA generation problem

Question asked by EvgenS Po on Apr 7, 2018
Latest reply on Apr 8, 2018 by EvgenS Po

Hello! I'm working with stm32f042 MCU. My task is to read GPIO 8-bit data (7-0 bits) periodically, the faster, the better. I use timer 3 to generate DMA request and DMA channel 4. The idea is the following one: timer periodically generates DMA request on update event, so GPIO->IDR is read. But it doesn't work. Timer doesn't generate DMA request, DMA counter doesn't change, no GPIO reading happens.

 

Init code

//DMA channel 4

Outcomes