Hi Geo EnI faced exactly the same issue on BluePill STM32F103CB, when trying to generate a sawtooth on PB9 (Timer 4 CH4 PWM) for ADC dithering (but that's another story).From my understanding, CubeMX generates wrong code line 76 of tim.cIt is __HA...