Hello
First I just try to triggle the DNA once, and try to use DMA to transfer data to register C6V. make the duty cyclic change from 50% to 25%.the code and config is as below:
the DMA config as below:

I enable the DMA function in function FTM_DRV_Init();

then I initial the dma as below:
EDMA_DRV_Init(&dmaController1_State, &dmaController1_InitConfig0,
edmaChnStateArray, edmaChnConfigArray, EDMA_CONFIGURED_CHANNELS_COUNT);
After initialization,I try to triggle the DMA as below:
triggerSingleBlock(0, ((uint8_t *)(&pwm_dutysignal)),(uint8_t *)(&((FTM1)->CONTROLS[6].CnV)),1);
void triggerSingleBlock(uint8_t channel, uint8_t * srcBuff, uint8_t * dstBuff, uint32_t size)
{
transferComplete = false;
/* configure eDMA channel for a single block mem-to-mem transfer */
EDMA_DRV_ConfigSingleBlockTransfer(channel, EDMA_TRANSFER_MEM2PERIPH, (uint32_t)srcBuff,(uint32_t)dstBuff, EDMA_TRANSFER_SIZE_32B, size);
/* trigger a sw DMA request for this channel */
EDMA_DRV_TriggerSwRequest(channel);
/* wait for the channel to complete */
while(!transferComplete)
__asm("nop");
}
the duty cyclic didn't change, so could you give me some advice?