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

How to measure current on the nRF52840 Preview DK?

I have a PCA10056 Preview DK that I want to measure CPU active current on (amongst other things). The DK version is 0.12.0.

Setup:

  • I have the DMM (Keysight 34465A) connected to P22.
  • SB40 is cut.
  • SW6 is in the "nRF ONLY" position.
  • I cut SB13-15, SB16 and SB20-22 around external flash.
  • SW9 is in the "VDD" position.
  • Power is supplied through the J2 USB connector (the debugging connector).

Code:

NRF_P0->DIRSET = 0xFFFFFFFC;
NRF_P0->OUTCLR = 0xFFFFFFFC;
NRF_P1->DIRSET = 0xFFFFFFFF;
NRF_P1->OUTCLR = 0xFFFFFFFF;

NRF_POWER->DCDCEN = 1;
NRF_POWER->DCDCEN0 = 1;

NRF_CLOCK->EVENTS_HFCLKSTARTED = 0;
NRF_CLOCK->TASKS_HFCLKSTART = 1;
while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0);

while (1)
{

}


According to the product spec, with CPU running, HFXO and DC/DC enabled, I should see ~3.3mA draw. I see 2.0mA. Normally lower current is great, but I think I am doing something wrong. What else do I need to do to get the values in the spec?

Related