When setting the pwm frequency to 0 Hz a division by zero was performed, leading to a crash of the system. Now we don't update the timers