I would like to ask ask if anyone know why my dc/dc converter works with open loop control(Duty cycle) but with PI control(closed control loop) doesnt. My control circuit doesnt react for any change of Ki or Kp, My reference output voltage is 25V, my input voltage is 5-30V. It's buck-boost converter. If use duty cycle to control my MOSFET, it works perfectly. I attach file with that topology. I checked hundreds times that topology of PI controler is okey, I wasted so many hours on that, maybe someone else can help me?