How can I set the address for DMA
I try to use DMA to transport data from GPIO input regester (GPIOx_IDR) to some other buffer memory. DMA reguest is created by timer with input capture mode so I turn on DMA by HAL_TIM_IC_Start_DMA(). This function doesn't have a arugument for source address of data so I tried to set source data address like DMA1_Chanel5->CPAR = &GPIOB->IDR;
But it didn't work. Are there any solution for this?
my code is down below
uint32_t buf[10];
DMA1_Channel5->CPAR = (uint32_t)tx_buf;
HAL_TIM_IC_Start_DMA(&htim2,TIM_CHANNEL_1,buf,10);
