How to reduce switching voltage spike at the output of buck boost converter

I am trying to design buck boost converter, but we are getting switching spike at output voltage. This is affecting our sensor measurement, which is affecting the close loop implementation. My queries are following

  1. how to reduce the switching spike, I already implemented rc snubber parallel to the switch, but it not reducing significantly.
    2.can we do modification in out voltage sensor measurement too, I am attaching the circuit?

Hello @nitishnit2016 ,

Apologies for the delayed response. I am assuming you placed an RC snubber in the switch node, which would help clamp the spikes in the switching node to help reduce EMI. If the goal is to improve the output, try adding some more capacitance and making sure there is low ESR and ESL in the capacitors. If your output caps have too much ESL, then at the high and low switching transitions in the switch node, the output voltage will have voltage spikes.

Hope this helps.
Regards,

Jonathan