Nordic boards are common in battery-powered products, and that is where hardware testing pays off most: a firmware change that keeps the radio on a little longer shows up as current, not as a failed assert. A BenchPod flashes the board over SWD, powers it from a switched rail with current measurement, and runs your pytest against it.
What is tested, and what is supported
The nRF51 and nRF52 families are Supported: they use the same SWD flash path as our tested STM32F4, with the nRF OpenOCD target files. We have not run an nRF board on our bench yet, and we are adding boards to move this entry to Tested.
Supported means we stand behind it. If your board does not flash or behave, tell us which board and what you see, and we make it work. The pod is built around an FPGA, so when a chip needs different timing we change gateware or firmware and ship it as an update. What supported means has the details.
One known note: a board with readback protection enabled needs a mass erase first.
Flash it
benchpod flash --target target/nrf52.cfg --file build/zephyr/zephyr.elfUse target/nrf51.cfg for the nRF51. The pod needs SWDIO, SWCLK and the reset line, plus UART TX and RX for the console and at least two grounds. I/O is 1.8 or 3.3 V, which covers Nordic boards.
A test that boots and measures
import pytest
@pytest.mark.hardware
def test_boots_and_idles(benchpod, wiring, firmware):
assert benchpod.flash(
file=firmware, target="target/nrf52.cfg",
swclk=wiring.swclk, swdio=wiring.swdio,
target_power=wiring.efuse,
).ok
benchpod.power_off(wiring.efuse)
benchpod.power_on(wiring.efuse, delay=1.5)
with benchpod.open_uart(rx=wiring.uart_rx, tx=wiring.uart_tx) as uart:
assert uart.read_until(r"booted", timeout=12), uart.textPower the board from the pod's target power output and the same test can also check the current it draws, see power control for HIL and power and brownout testing.
Next steps
- Supported hardware and the SWD page.
- Have an nRF board you want us to try? Write to hello@embeddedci.com with the board name.