I went through the example and verify the signal and varying different frequencies and it works perfectly fine for my eval TC37x board
I then tried to change the input pin to #define PWM_IN IfxGtm_TIM1_1_P02_1_IN with the expectation if I changed the CMU_CLKEN_CLK1, I will get the same result
IfxGtm_Cmu_enableClocks(&MODULE_GTM, IFXGTM_CMU_CLKEN_CLK1); /* Enable the CMU clock 1 */
But my g_measuredPwmFreq_Hz = +Inf
and g_measuredPwmDutyCycle = NaN
The data sheet calls out the CMU_CLK0, CMU_CLK1, CMU_CLK6, CMU_CLK7 are used for the TIM filters counters.
What did I do wrong or assume changing the input pin to TIM1 and enable the CLK1 will not work in this case?