PWM DMA settings
Hi there, i am using STM32F401RE development board and using PWM generation using DMA. I am following register level programming approach and here the issue lies in the DMA settings. Like if I set my PSIZE and MSIZE to 32-bit long and also if my data_buffer is "uint32_t" then and then only the proper wave generation is happening. If I change either the DMA setting to a half-word or a byte OR even if I change the buffer data type to "utin16_t or uint8_t", it is corrupting my entire waveform. Any specific reason for this?
Note: I am using PLL 72MHz as core frequency. Does it have any effect on it. I am using DMA_1 Stream 5, Timer 2, Channel 1.
Also how much impact does the xSIZE selection (PSIZE and MSIZE selection) have on the code?
