triggered PWM from ADC end of conversion
I want to change pwm duty cycle after measuring output voltage


ST's timers have buffered register options, they call it preload. They will update at an overflow.
You can safely write directly to the compare registers from where you have your ADC computation result as long as in TIMx_CCMRx the bit OCxPE is set.