Solved
Configuring Timer3 for capture Compare input with DMA on CH4. STM32H750
After attempting to code it up myself and after it didn't work attempted to verify using CubeMX.
I have 2 questions:
- CubeMX does not give me the ability to select Alternate Function 2 on GPIOB pin 1 as input for TIM3_CH4, while Datasheet - STM32H750VB STM32H750ZB STM32H750IB STM32H750XB - 32-bit Arm® Cortex®-M7 480MHz MCUs, 128 Kbyte Flash, 1 Mbyte RAM, 46 com. and analog interfaces, crypto States PORTB alternate function does connect to TIM3_CH4 for AF2. Is this correct should TIM3 be able to do capture compare off PORTB_PIN1, or did I miss something?
- After doing HAL_TIM_IC_Start_DMA, I see the DMA copy TIM3->CCR4 to the destination (in memory) continuously even before any edge input comes in on PORTB_PIN1. Is additional synchronization needed or should this work as I expect after a __HAL_LINKDMA?
