STM32WB55 acquire signal from GPIO using DMA and trigger TIM
I have a board P-NucleoWB55 and I'm trying to acquire a signal with external clock, very similar to uart, I tried with usart in slave mode without succcess, I tried with spi slave without success.
Now I'm trying to trigger a DMA transfer with a timer and clock source ETR.
I'm following this thread but the code use old api and I don't understand how start the timer.
I configured TIM2 Clock Source ETR2 and Counter Period, DMA TIM2_UP.
I read the AN4666 but I don't understand very well the example.
I tested this code:
HAL_TIM_Base_Start(&htim2);
HAL_DMA_Start_IT(&hdma_tim2_up, GPIOB->IDR, (uint32_t)buf, sizeof(buf));I receive interrupt for timer but not for dma.
Thank you for suggestions
