We use PTB8/FTM3_CH0(pin 77) of FS32K142HRT0VLL as a PWM control signal.
Now we need adjust PWM frequency without duty changed when PWM running, how can we do?
It was answered here:
Square wave output with variable frequency, FTM
You need to update the duty cycle as well when the frequency is changed.