// enable circular mode DMA1_Channel4->CCR |= DMA_CCR_CIRC; // enable interrpt after full transfer DMA1_Channel4->CCR |= DMA_CCR_TCIE;