So we are trying to generate PWM on PC1 using FTM1 but the problem is , in the initial stage , the moment the code starts after resets we are getting a random pulse every single time . It almost feels like during the boot there is a very small pulse which is either coming out of the GPIO or out of the FTM which is triggering the GPIO . we have tried changing the different GPIO(channels) as well but same spike is coming.
This is affecting our PWM behavior , any recommendations on how to avoid this ?
Please refer to the pulse on Channel 2 in the attached image .
We have tried
FTM1 Channel 0 - PTB2 , Channel 1 - PTA1
FTM3 Channel 0 - PTA2
And the peak is occurring right after the reset .