Escapement Project

MCU-Link throughput

Test conditions and firmware details

Throughput

probe-rs, 4 KiB reads. KiB/s, median of 7, attach excluded.
probe-rs, 4 KiB writes. KiB/s, median of 7, attach excluded.
Single-word read round trip. probe-rs, µs, median.

Custom host, SWD command matrix

. KiB/s, median of 3, ~250 ms.
One-word commands, 8 queued. AP read through DAP_Transfer, commands/s.
  • measured
  • failed
Stock measurement status: cases without a timed result. Rows: clock asked for. Marks: command, access, words, depth.

Measured SWD clock

Read data bits. MHz on the wire, each read's median transfer. The dashed line is the clock asked for.
Write data bits. MHz on the wire, each read's median transfer. The dashed line is the clock asked for.
Request bits. MHz on the wire, each read's median transfer. The dashed line is the clock asked for.

Recordings

Each point is one 64 KiB flash read, recorded with the analyser's leads on the debug pins. They load the lines, so some reads sample a cycle later than they do without them. Pointing at a point shows its read; a click opens the recording below.

Read data bits. MHz on the wire, median data bit.
Write data bits. MHz on the wire, median data bit.
Peak SWD rate. MHz, shortest mean period per transfer.

Recording notes

Stock acknowledgement errors: misread acknowledgements. .
  • stall, read correctly
  • stall, misread
2,000 × eight DPIDR reads, depth 2.

On the wire

MSPM0L1306, analyser at 1 ns on SWCLK and SWDIO, recorded 2026-11-04

These are recordings of the wire itself, every clock edge of a 64 KiB flash read at each clock asked for. Point at, tap or tab to an underlined figure to see the stretch of wire it comes from. The analyser's leads load the lines: with them on, the probe reads data a cycle later at 50 and 37.5 MHz than it does without them.

Asked for 50 MHz, Verge sends each request at 50 MHz and writes data at 50 MHz. It reads data at 37.5 MHz. Before the first bit of read data, the probe checks the acknowledge. That bit's period stretches to about 80 ns.

Capturing energy at 100,000 samples a second as well, Verge reads data at 30 MHz when asked for 50 or 37.5. Its writes keep their clock, but 14 of 95 writes at 50 MHz have one data period 8 ns longer.

NXP's firmware, asked for 10 MHz, reads data at 6.9 MHz and writes at 7.1. Asked for 25 or 50 MHz, it reads at 10.0 MHz and writes at 10.7. About one read in a hundred stops for about 6 µs in the middle of the word, and at 10 MHz so do 13 of 108 writes. Asked for 20 MHz with the leads on, it sent a write with wrong parity. The target answered the next write with FAULT, and the connect failed.

Verge (GCC): 64 KiB flash reads at 50, 37.5, 30 and 10 MHz928 ms; 2 channels: SWCLK, SWDIO; 412 KiB Verge (GCC): 64 KiB flash reads at 50, 37.5 and 30 MHz, capturing energy at 100,000 pairs/s825 ms; 2 channels: SWCLK, SWDIO; 393 KiB NXP's firmware: 64 KiB flash reads at 10, 20, 25 and 50 MHz825 ms; 2 channels: SWCLK, SWDIO; 195 KiB

Sources

Results
Tools
throughput.py, swd-throughput, wireclock.py, dap.py