I've recently got my PCB developed for a power supply unit using the LM5021-1. After testing i've concluded there's problems in the circuit for the Vcc pin. I've used the following circuit for this, which is basically a copy from an example inside the LM5021 datasheet (exact copy apart from having to replace some old components):
Now my test results so far have looked like this (measured on Vin_stab label):
This keeps repeating itself. As seen here the lowest voltage reached is around 7V and the highest voltage is around 20V. This fits according to the datasheet: The 20V is when the LM5021 starts while the 7V is when it shuts down. The circuit is supposed to go above 20V and after the AUX winding starts powering up it will take over and stay around 14V. I simulated this circuit in LTSpice aswell (slightly different components) and got the following result:
I've tried adding a capacitor in parallel (basically going from 1uF to 11uF) to stay at 20V for a longer period but this didn't seem to resolve the problem so far. I've also tried without a mosFet on the output of the LM5021-1, which should result in the AUX winding not powering up and the circuit never lowering to 14V as intended but instead staying above 20V. This ended with the same result of turning on and off.
I've seen another solution using only high value resistors (1M and above) in series from 325V, a diode from the AUX winding and a capacitor. But i am wary of using this since i did not get the simulation to work this way.
My question is why the PCB result is different to the simulated result and how to resolve this?
Link to datasheet: https://www.ti.com/document-viewer/LM5021/datasheet. Schematic is posted in paragraph 8.2
Also here is the full schematic: Vaux and Vaux_O are connected by jumper. (Same for other "_O" labels)