I want to design a buck converter capable stepping down a voltage of 17V to 4.2V.
The current should also be boosted by the same ratio.

This simulation does not work,I get an output voltage of 16.4V.Am not sure if its the switch,but i've used it in a boost converter and worked perfectly.I've calculated the values of the caps and the inductor from the best source available but still it does not work.This is only just a simulation but I dont think i should build a circuit when the simulation isn't even slightly working.
Specs are:
17-4.2V
Dutycycle of 25%
input ripple voltage of 1%
output ripple voltage of 1% as well.
The current should also be boosted by the same ratio.

This simulation does not work,I get an output voltage of 16.4V.Am not sure if its the switch,but i've used it in a boost converter and worked perfectly.I've calculated the values of the caps and the inductor from the best source available but still it does not work.This is only just a simulation but I dont think i should build a circuit when the simulation isn't even slightly working.
Specs are:
17-4.2V
Dutycycle of 25%
input ripple voltage of 1%
output ripple voltage of 1% as well.