Updating the BenchPod firmware

Updating takes a few minutes and one USB-C cable to your computer. You do not need an embeddedci.com account for it: the benchpod CLI downloads the newest firmware and installs it over USB. If you are signed in to embeddedci.com, you can also update from the web app instead (see below).

Firmware 4.0 and client compatibility

Firmware 4.0 runs on every v3 board. It needs the Python SDK and the MCP server 4.0 and the benchpod CLI 0.10 or later: update them before the pod. Older clients get the refusal BP0030, but they can still update the firmware or roll it back, so a pod is never stuck. CLI 0.10 in turn needs firmware 4.0: against an older pod it runs only status, flash-self, install-blobs, dfu, bootsel, discover and identity, and every other command exits with code 7 (this pod needs firmware 4.0: benchpod flash-self).

What changes on the pod with 4.0:

  • LAN over TLS only. HTTPS-only is on by default (a pod updated from 3.10 gets it too): on Ethernet and Wi-Fi the pod answers its API on port 8443 only. Plaintext port 8080 keeps answering over the USB cable. The CLI, the SDK and the MCP server use TLS by themselves and pin the pod's certificate on first use. Turn plaintext back on with benchpod lan-tls https-only off over USB or embeddedci.com, or the HTTPS-only switch in the pod's Settings.
  • SCPI off by default. VISA and other SCPI tools need it switched on first: benchpod lan-tls scpi on over USB or embeddedci.com, or the SCPI switch in the pod's Settings.
  • Signed firmware only. The pod installs only signed images, over every path; its signature policy is always required and nothing loosens it. To run a firmware you built yourself, install it over USB DFU (benchpod flash-self ./your.bin with the pod in DFU).
  • A small USB console. The console keeps status, ping, identity, dfu, reboot, usb-network, lan-policy, lan-tls, log, wifi-set and wifi-show (for the web setup wizard), and the new net-reset (forget Wi-Fi, Ethernet back to DHCP: benchpod net-reset). Wi-Fi scan and clear, the cloud CA and proxy, the identity reset and the blob list moved to JSON commands over the USB network adapter, which the CLI uses by itself.
  • New JSON names. Rates are in hertz (freq_hz, sample_rate_hz, clock_hz), flags are booleans ("enabled": true), la is now la_step and la_pull, can_config/can_disable are can_start/can_stop, and generate takes volts or microamps only. Refusals carry a code and its values; see Error codes and the firmware API reference.

The short version

With the CLI installed. Over USB, the pod is plugged into your computer with a USB-C cable:

benchpod --version                # 0.6.0 or later; update the CLI first if it is older
benchpod flash-self --enter-dfu   # pod on USB-C: fetches the newest firmware and installs it
benchpod discover                 # the pod shows the new version

Works whatever firmware the pod runs, and also brings back a pod whose firmware does not start. Needs dfu-util (step 2).

The steps below say the same in full, including how to install or update the CLI.

1. Install or update the benchpod CLI

Check whether you have it, and which version:

benchpod --version

Command not found? Install it:

brew trust embeddedci-com/tap
brew install --cask embeddedci-com/tap/benchpod
benchpod --version

The binary isn't Apple-notarized, so the cask strips the quarantine flag on install. It also installs dfu-util, which flash-self needs.

# or the plain binary (the releases/latest/download URL is always the newest release)
curl -fsSL -o benchpod.tar.gz \
  https://github.com/embeddedci-com/benchpod-cli/releases/latest/download/benchpod_Darwin_arm64.tar.gz
tar -xzf benchpod.tar.gz benchpod
sudo mv benchpod /usr/local/bin/

On an Intel Mac use benchpod_Darwin_x86_64.tar.gz. If you download the archive with a browser instead, clear the quarantine flag once with xattr -d com.apple.quarantine ./benchpod.

Already installed? Update it to the newest release before you update the pod. Firmware 3.9.0 and later need CLI 0.6.0 or later: they change how the pod connects over USB, and an older CLI may not reach the pod afterward.

brew update
brew upgrade --cask benchpod
benchpod --version

Installed the plain binary instead of the cask? Run the same curl lines as for the install: the download is always the newest release and replaces the old binary.

2. Check dfu-util

The CLI writes the firmware with dfu-util, the standard tool for USB firmware updates. On macOS and Linux the Homebrew install brings it along. Elsewhere, install it once:

The Homebrew cask installs it. Without the cask: brew install dfu-util.

3. Plug the pod into your computer

Use a USB-C data cable (many USB-C cables only charge). The pod can stay wired to your board and on Ethernet; nothing else needs to change. Stop any test, capture or terminal that is using the pod, and close other programs that hold its USB console (a serial monitor, screen).

4. Update the firmware

benchpod flash-self --enter-dfu   # pod on USB-C: fetches the newest firmware and installs it

Works whatever firmware the pod runs, and also brings back a pod whose firmware does not start. Needs dfu-util (step 2).

Over the USB cable with DFU (the default), in about one to two minutes, it:

  1. Downloads the newest published firmware.
  2. Restarts the pod into its USB bootloader.
  3. Writes the firmware with dfu-util and starts it.
  4. Waits for the pod to come back and installs the FPGA and Wi-Fi chip images that go with this firmware, if the pod needs them.

With --network the pod receives the image itself, checks it and writes it to its flash, then restarts; the CLI then installs the FPGA and Wi-Fi chip images the same way. That takes about half a minute, plus about 2 minutes when a new Wi-Fi chip image goes in.

Do not unplug the pod until the command finishes. To install a specific release instead of the newest, add --firmware-version v3.9.0 (any tag from the firmware releases).

5. Check it worked

benchpod discover

The pod is listed with its new version (for example fw v3.9.0). A registered pod also shows the new version on its row in the web app once it has reconnected.

Using pytest, the Python SDK or the AI-agent plugin? Update the Python packages too:

pip install --upgrade embeddedci embeddedci-mcp

Updating from the web app instead

A pod that is registered on your account and online can be updated over its cloud link, without a cable:

  1. Sign in and open the BenchPod page.
  2. Click Update next to the pod's firmware version (or open the pod and go to its Settings tab, then Update firmware).
  3. Pick the release (the newest is preselected) and start the update. You can close the window while it runs.

When the update brings a new Wi-Fi chip image, it goes in last among the FPGA and Wi-Fi images. The pod writes it into its Wi-Fi chip in about 2 minutes, and its Wi-Fi is off meanwhile: a pod on Wi-Fi shows offline for that time and the update carries on once it is back. Keep the pod powered.

Update the CLI and the Python packages as well (steps 1 and 5) if you use them with this pod.

If something goes wrong