I guess it may be pretty simple thing due to my lack of understanding. I designed a PSU converting 12V to 5V using TPS54202HDDCR. Followed the datasheet and made the schematic as follows:
I used eq. 3 for relationship between, Vout, Vref and the two resistor values of the divider. In the text I saw that Vref is 0.596V. Considered to have a little bit higher voltage than the required.
For example, I have 0.596*(100K/13K+1) which should lead to 5.18V. Also, this is the exact same schematic as the one shown in Section 8.2.1 and Fig. 8-1 for typical application.
Yet, when I made the PCB the output is not 5.18V, but 7.1V.
I tried with other values for 2.5V, and I got 4.5V.
The resistors are 1% so I don't think there is something wrong there. I found I added this divider for EN (R1 and R2) to the PCB just in case. Removed it hoping to get the correct values but had the same high voltage again.
Connected to a load it does not go down also (burnt a chip due to high voltage...). I am curious what am I doing wrong?