I am using DMA on an STM32F4 Discovery board to push values from an array into a peripheral. This needs to be done repeatedly, so I am using the circular DMA mode:
DMA_InitStruct.DMA_Mode = DMA_Mode_Circular;
which gets the DMA source address to jump back to the start of the array automatically.
I would like to count how many times this wrap has happened. Is there an interrupt or other feature built in to do this?