2020-11-18 12:37 PM
I am not sure how to handle DMA channel from memory to peripheral. I have a circular buffer of 2*24 words that I want to load to PWM. I want to update(generate) new values once half and top of the buffer is reached. I was using similar thing for ADC to Memory. That was working. But I am unable to figure it out for this case. Any advice link for an example would be appreciated.
2020-11-18 01:01 PM
Which STM32?
Basically
For Cube, there are probably examples for this in the respective Cube example directory, e.g. https://github.com/STMicroelectronics/STM32CubeL4/tree/master/Projects/STM32L476G-EVAL/Examples/TIM/TIM_DMA
JW
2020-11-18 01:08 PM
Superb I am on it. And yes ,my fault that I did not wrote that I am working with cube. I will let all know If I will manage. Thanks a lot.
2020-11-18 01:38 PM
It does not seem to solve my question. Which should most probably be_ how to write an appropriate interrupt handler for the given DMA Channel/Stream.