The supply appears to be hiccuping. This usually points to an overloaded output. Did you test the HS1D diodes and 5.6V zener for leakage?
When the LNK304GN IC is regulating properly, the voltage on the FB pin should be 1.65VDC.
That said, the output voltage for the nominal 5V rail would be ...
1.65 / 5.6 x (10 + 5.6) = 4.60V
The voltage on the BP pin should be greater than 4.85V. If BP falls below 4.85V, the MOSFET shuts off until the voltage rises to 5.8V.
Hello.
Thanks for your feedback. I was not exactly sure what to expect from the operational mode of the lnk304. Since I saw some spikes coming out I thought it entered in overvoltage and shutdown for 800ms. As in the datasheet it talks about 1,6V at FB pin I thought that going about that was making the LNK304 skip the current cycle.
I tested everything except the HS1D for leakage. These I just tested with multimeter in diode mode and they seemed to have right FWD voltage.
Not sure exactly how to test for leakage? Add reverse voltage and see it it goes through? What level? Or just with some ohmmeter?
I even replaced the snubber network with a 330 ohms resistor in series with a high voltage 1nF paralleled with a 330K resistor and all it did was making the spikes higher (9v rail spiked to 17v) so I thought the snubber network with diode and zener was ok. I used thermal camera and the DU34 was getting hotter than the other one but not much more. I thought it was absorbing more reverse energy. I could not understand which diodes these DU34 and RJ28 are, but since it also didn't worked with the other snubber network I didn't looked further.
Picture with the other snubber network for 5V rail in attachment.
After removing the magnetic sensor that was loading the 5 V circuit with 230 ohms I got attached results more flat and with more voltage but this is not regulating properly and going above the 5v required level for the CPU. Anyway 230 ohms it not that much of a load (21mA) as it needs to drive a relay which takes similar level of current and relay was not activating. It may have been enough to put the circuit closer to instability.
For the other questions, this was the initial picture with dead LNK304 and fuse resistor (22ohms) which I changed. The LNK304 was "shorted" between D and S.
I measured the L1 to 375uH instead of marked 470uH but this should not be an issue as would only affect slightly the designed EMI.
Also in the control board there is no LDO before the CPU which is a D78F0503A from Renesas. It is feed directly with the 5V rail from the regulation of the flyback. Initially I was concerned it may have gotten blown by the spikes but it hold.

When I noticed no LDO I had to cut a trace with the power to the CPU to avoid damaging the CPU while testing the flyback.
Cheers,
Jorge