Update MPER register with every HRTIM period
I am also failing in reproducing the DMA example from https://wiki.st.com/stm32mcu/wiki/Getting_started_with_HRTIM#To_go_further_about_DMA_burst.
HAL_HRTIM_BurstDMAConfig() is mentioned in the text, but not present in the code example. Did you miss to put it into the example?
Minor issue: I find it weird to edit HAL_HRTIM_MspInit() to change DMA_MEMORY_TO_PERIPH to DMA_MEMORY_TO_MEMORY as this gets overwritten by the next code generation.
Would it be safe to put this in the user section below:
/* USER CODE BEGIN HRTIM1_MspInit 1 */
hdma_hrtim1_a.Init.Direction = DMA_MEMORY_TO_MEMORY;
if (HAL_DMA_Init(&hdma_hrtim1_a) != HAL_OK)
{
Error_Handler();
}
/* USER CODE END HRTIM1_MspInit 1 */
This would result calling HAL_DMA_Init() twice. Is this OK?
Kind regards,
Guido
