Skip to content

SDK/MCP: handle the gateware v65 emulation image split - #151

Merged
wardviaene merged 7 commits into
mainfrom
emu-split
Nov 24, 2026
Merged

wardviaene merged 7 commits into
mainfrom
emu-split

Conversation

@wardviaene

Copy link
Copy Markdown
Member

Firmware: embeddedci-com/benchpod-firmware#257 (gateware v65 splits the emulation image: no SWD, JTAG, SPI master or I2C master there while I2C/SPI/UART sensors run; the pod swaps to the loop image itself when none run).

  • BenchPod._ensure_bus_masters(feature) before SWD/JTAG flash(), open_spi/spi_flash, open_i2c, expansion() and capture_la(send=i2c|spi): on the emulation image of gateware 65+ it raises the BP0059 UnsupportedFeatureError naming the running sensors, else switches to LOOP (~3 s, logged).
  • New public BenchPod.has_bus_masters().
  • pytest plugin: benchpod_capability("spi_master" | "i2c_master") switches from emulation to loop, and skips while sensors run.
  • e2e test_e2e_spi.py fixture stops sensors and selects LOOP first.
  • MCP tool docstrings and guide text; READMEs and Unreleased CHANGELOG entries.
  • Bundled features table synced to revision 18 (bus_masters_image).

Tests: unit 1533 passed / 35 skipped, MCP and scripts 270 passed / 15 skipped. test_bundled_copy_matches_the_firmware compares against the sibling firmware checkout and passes once the firmware PR merges.
Hardware (benchpod-30a9f1, v65 dev fw): SDK e2e 161/70, MCP e2e 9/5, openhtf 2/1 (same as v64). SDK flash() from emu swaps then flashes; flash() and open_i2c() with a sensor running raise BP0059.

🤖 Generated with Claude Code

wardviaene and others added 6 commits November 24, 2026 14:48
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…masters

has_bus_masters() and _ensure_bus_masters(): SWD/JTAG flash, SPI, I2C, expansion and
capture_la(send) switch to the loop image when no sensor runs, raise BP0059 when one does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tion image

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…v65)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	packages/embeddedci/CHANGELOG.md
@wardviaene
wardviaene merged commit 7cb721c into main Nov 24, 2026
12 checks passed
@wardviaene
wardviaene deleted the emu-split branch November 24, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant