Problem with TIM3 Input capture with DMA
Hello everybody,
I am trying to use the TIM3 those input capture mode with DMA transfer. After buffer is full the DMA call the callback function IT. Then i execute the stop DMA function. But after this sequence, the DMA no reinitialize. I am using the Cube MX for initialize the code.
What could I be doing wrong?
I am using the STM32C011F6P6
The code:
uint16_t period_buffer[52];
HAL_TIM_IC_Start_DMA(&htim3, TIM_CHANNEL_1, (uint32_t*) period_buffer, 52);
void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
{
HAL_TIM_IC_Stop_DMA(&htim3, TIM_CHANNEL_1);
}
