TIM2, TIM3, TIM4 ERT mode on Nucleo-H743ZI2
Hello,
I am new on Nucleo-H743ZI2. Im trying to test the ETR mode on TIM2 (PA0), TIM3 (PD2) and TIM4 (PE0). I used the same code and setup for all the 3 timers. But only TIM2 functions properly. TIM3 just can increase once then the CNT will not increase anymore. TIM4 does not have any response on the pulse input, and the CNT does not change at all. I use a jump wire connect the 3.3V to each of the ETR pin to generate the pulse.
Can someone guide me what I should do on TIM3 and TIM4? Is there any special setting I need? Thanks in advance.





/* USER CODE BEGIN PV */
uint16_t Counter_Tim2;
uint16_t Counter_Tim3;
uint16_t Counter_Tim4;
/* USER CODE END PV */
/* USER CODE BEGIN 2 */
HAL_TIM_Base_Start(&htim2);
HAL_TIM_Base_Start(&htim3);
HAL_TIM_Base_Start(&htim4);
/* USER CODE END 2 */
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
Counter_Tim2 = __HAL_TIM_GET_COUNTER(&htim2);
Counter_Tim3 = __HAL_TIM_GET_COUNTER(&htim3);
Counter_Tim4 = __HAL_TIM_GET_COUNTER(&htim4);
HAL_Delay(10);
}
/* USER CODE END 3 */

