Hi Hanlin. I implemented the non-inverting buck boost converter exactly the way it was in the diagram, and used the "two-stage" code u gave without making any changes, but the system still isn't working. There were some errors with the schottky diodes in my proteus software (as shown below). Can you help me to solve this problem ?