2022-12-28 11:26 PM
Hi
I want to use DMA with complematry pwm. I am usşng stm32f030 its working only one sample. I have to use stdperiph .
Thanks
2022-12-29 12:50 AM
> uint32_t DestAddress = (uint32_t) &(TIM16->CCR1);
> DMA_InitStructure.DMA_PeripheralBaseAddr = (uint32_t)&DestAddress;
By doing this, DMA stores the values not into TIM16_CCR1 but into memory where the DestAddress variable is located.
You want
DMA_InitStructure.DMA_PeripheralBaseAddr = (uint32_t) &(TIM16->CCR1);
If you are in doubts, always start by reading out and checking the registers, here TIM and DMA registers.
JW