Skip to content

Troubleshooting

First check

$ ppk2 list
PPK2  serial=A1B2C3D4E5F6
  /dev/cu.usbmodemA1B2C3D4E5F62   [data port]
  /dev/cu.usbmodemA1B2C3D4E5F64   [idle]

It shows every PPK2 the computer sees and the state of its two ports. Most of the problems below show up here.

An error of ppk2 is one line starting with error:, with exit code 1. Each section below begins with that line. The errors of ppk2 convert are about its input file: they name the file and the line, and are not repeated here.

No PPK2 found

error: no PPK2 found (USB 1915:C00A): plug one in or check the cable

The computer does not see a PPK2 at all.

  1. The cable. Some USB cables carry power only. The PPK2's LED lights up either way.
  2. The socket on the PPK2. It must be USB DATA/POWER, not USB POWER ONLY.
  3. The hub. Try a port on the computer itself.
  4. What the system sees, with the table below.
System Look at You should see
macOS ls /dev/cu.usbmodem* Two entries
Linux ls /dev/ttyACM* Two entries. If they are there but cannot be opened, see the Linux note
Windows Device Manager, Ports Two serial ports. Ports named after J-Link belong to a debugger

The Linux and Windows rows have not been tried with a PPK2.

Data port not identified

error: could not identify the PPK2 data port: none of [...] answered GET_METADATA; close the nRF Connect Power Profiler if it is open, or pass --port to select the port explicitly

The ports are there, but none answered. The line names the ports in place of [...]. The cause is another program holding the PPK2, nearly always the Power Profiler app. ppk2 list then shows a port as [busy: held by another process?].

Quit the app, or disconnect the PPK2 inside it. If you know the path of the data port, --port skips the search.

Port busy

close the nRF Connect Power Profiler, or whatever else holds the port

The same cause, met while opening the port: the system reported it as busy. The line ends with these words.

No PPK2 with that serial

error: no PPK2 with serial A1B2C3D4E5F7: attached A1B2C3D4E5F6

A PPK2 is attached, but not the one --serial names. The line lists the serial numbers that are there.

Several PPK2s

error: 2 physical PPK2 devices found; pass --serial <usb-serial> to pick one

Several PPK2s are attached. ppk2 list gives their serial numbers:

ppk2 list
ppk2 capture --serial A1B2C3D4E5F6 --out trace.csv --seconds 30

No calibration received

error: metadata recovery failed after 3 attempts; last: <cause>

The port opened but the PPK2 did not send its calibration. ppk2 has already asked again, with a RESET in between, and reopened the port.

  • A capture that ended badly can leave the port stuck. This was seen on macOS, the only system tried. Wait a few seconds and try again. If that fails, unplug the PPK2 and plug it back.
  • Right after a process was killed, the system can refuse to open the port for a second or two.
  • Another program that just used the PPK2 may still be closing it.

No samples captured

error: no samples captured: check the PPK2 mode and the DUT's power

The PPK2 answered but sent nothing during the capture. Check that the mode matches the wiring: --source when the PPK2 supplies the device under test (DUT), nothing when the DUT has its own supply.

Output not writable

error: /data/trace.csv: Permission denied

The output file could not be created or written. The line names the path and gives the system's reason: a folder without write permission, a full disk.

Frames left by an unfinished run

error: trace.ppk2.frames: left by a run that did not finish: move or delete it

An earlier capture or conversion to that .ppk2 name did not finish and left its samples in the .frames file, 6 bytes each. It is all that remains of that run, so it is not overwritten. If you want to keep it, move it away; otherwise delete it. Then run again.

Capture ended short

error: capture ended with 2999000 of 3000000 samples: the PPK2 stopped sending, or the computer did not keep up

The samples that --seconds asks for had not all arrived one second after that time. The file holds what did arrive. A busy computer or a poor USB link can cause it: see lost samples.

Serial error

error: serial read: <cause>

The link to the PPK2 broke while the command ran: the cable was pulled, or the PPK2 lost its power. The line can also start with serial write: or serial open:, and it ends with the system's message. An output file is completed with what was recorded until then.

Current reads zero or far too low

  • In Ampere meter mode, the current must pass through the PPK2: supply to VIN, VOUT to the DUT. A second path to the DUT is not measured.
  • In Source meter mode, the DUT is off until a command switches it on, and off again when the command ends.
  • Values below 0.2 µA are written as 0. That is the floor of the PPK2, not a fault.

Digital inputs high while the DUT is off

Without power on the DUT, nothing drives the inputs, and they can read high.

Lost samples and stream-rate warnings

The computer did not keep up with the PPK2. The trace keeps its length, and each lost sample is recorded as 0.2 µA, as in Nordic's app, which lowers sums and means in proportion. Try another USB port or cable, without a hub, and close what else loads the machine.

Calibrated: false

ppk2 metadata prints Calibrated: false. Not a fault. See the Calibrated flag.

Checking a measurement

To check a measurement against the app:

  1. Capture the same DUT with the app and with ppk2 capture.
  2. Export the app's capture as CSV.
  3. Compare the two files.

The repository's validation/compare_cli.py does the comparison and writes a report. See the validation for the procedure. Its results show it on one dev kit, in both modes.

See also