This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PPK little negative offset which is breaking AVG value

I use PPK wit ha stardard setup with all switches set to DK. Everything works fine, excepted that I have a little offset and the IDLE state is negative... which make the AVG value to be wrong (negative). See following pictures.

image description image description

This is more visible if I put the nRF52 in sleep mode (supposed to consume around 1 uA AVG), and we can see the negative offset of about 10 uA there.

image description

Is there a way to Calibrate or correct this offset ? The resistor calibration could only change the scale, but how do we get to mesure negative currents there ?

I didn't find anything usefull on the PPK manual for that. Any idea ? Thanks

  • The startup calibration routine should do this automatically. Can you try to switch the "DUT Select" switch to external (with nothing connected) and see what the measurement says? What if you turn off the DUT by pressing DUT off, what is the measurement then?

    What DK are you using? The fluctuations you are seeing is looking very much like Segger traffic. The on board debugger is unfortunately pulling some current shown on the ppk measurements. If you want to make very accurate measurements, it is recommended to either use your own hardware which does not have the on board debugger, or cut all lines between the on board debugger and the nRF.

    If you see that the unwanted current draw is stable at all times at e.g 10µA, you can do a little hack and change line 1164 in ppk.py from

    self.global_offset = np.average(PlotData.avg_y[1000:8000])

    to

    self.global_offset = -10e-6

    Again, if you do not see this offset when using the external DUT connection, then you need to disconnect the Segger lines when using the DK.

  • Thanks for the hints and the hack, it may help me to adjust the measurements.

    First to answer your question, I use nRF52 DK (PCA 10040 v1.1.1).

    I'm not sure exactly why, but I think I found the root cause of the errors. Because I need to use a custom board with sensors connected to the DK board (this is the goal on my measurements), I connected the PPK not directly in top of DK, but with some wires. Not sure how, but these wires seems to perturb the offset calibration.

    But I think then it's just a matter of offset that could be added at the end for calculation, if it's stable and always the same.

    When I turn the DUT off or switch to external DUT, the AVG is correctly around zero (some noise around zero with peaks at +/- 500 nA).

    Thanks for your quick answer !

  • OK, I found the cause : was the GND of the serial link I used to monitor my DUT. Connected on same PC as USB, but maybe was not at exact same level and was causing a little current leakage... measured by the PPK. Disconnecting this GND solved the issue.

  • Was a real leak of current on my setup : the GND of the serial link was causing this little current leak, measured correctly by the PPK.

Related