Question
STM32H7 DMA stops after first transfer
I tested this example from the STM32CubeH7 repository and it works fine.
When I try the DMA1 instead of the BDMA, the DMA stops after the first transfer.
I made only the following changes to use the DMA1
__HAL_RCC_DMA1_CLK_ENABLE(); // Enable the clock for DMA1
DMA_Handle.Instance = DMA1_Stream0 // Instance = DMA1_Stream0 instead of BDMA_Channel0
DMA_Handle.Init.Request = DMA_REQUEST_GENERATOR0; // DMA request instead of BDMA request
dmamux_ReqGenParams.SignalID = HAL_DMAMUX1_REQ_GEN_LPTIM2_OUT // DMAMUX1 instead of DMAMUX2