Skip to main content
LCE
Principal II
September 17, 2026
Solved

L07: DMA channel request change

  • September 17, 2026
  • 2 replies
  • 24 views

Heyho,

I just found that the STM32L07 has too few DMA channels for my application, so I probably might need to use a DMA channel for two peripherals - surely not at the same time.

So when switching the DMA request to another peripheral via DMA1->CSELR, is it enough to disable the DMA channel (DMA1_Channeln->CCR &= ~DMA_CCR_EN (no transfer active)), then set CSELR new?

 

Thanks in advance!

Best answer by waclawek.jan

Yes, but I’d also disable/enable the DMA at its source, e.g. TIMx_DIER.xxDE, USART_CR3.DMAT/DMAR, etc.

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
September 17, 2026

Yes, but I’d also disable/enable the DMA at its source, e.g. TIMx_DIER.xxDE, USART_CR3.DMAT/DMAR, etc.

JW

mƎALLEm
ST Technical Moderator
September 17, 2026

+ Need also to clear flags in IFCR of the previous transfer.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.