← Back to Pull requests

requirements: add openocd-esp32 #716

Closed
unknown closed this pull request without merging on Dec 04, 2026 14:04 UTC
View on GitHub
unknown unknown commented on Dec 03, 2026 20:15 UTC
Author

requirements: add openocd-esp32

Add Espressif's OpenOCD, published on PyPI as openocd-esp32, to the module's Python requirements. With it, west packages pip --install installs the OpenOCD build that ESP32-family debugging needs. Today, users download it from GitHub and pass -DOPENOCD and -DOPENOCD_DEFAULT_PATH on every build.

A companion Zephyr PR makes the Espressif boards select this OpenOCD automatically.

Platform marker

The package has no source distribution, only wheels for Linux (x86_64, aarch64, armv7l, armv6l), macOS (x86_64, arm64) and Windows (x86, x64). The requirement is limited to those platforms, so pip skips it elsewhere (for example on Windows ARM64) instead of failing the whole west packages pip --install. pip markers can't tell glibc from musl, so musl-based Linux still fails.

The minimum version, 0.12.0.post20260703, is the first OpenOCD release on PyPI (0.0.0.dev0 is a placeholder). It is newer than OpenOCD v0.12.0-esp32-20251215, which Zephyr thread awareness needs.

Testing

  • Evaluated the marker for Linux x86_64 (included), Linux riscv64 (excluded), macOS arm64 (included), Windows AMD64 (included) and Windows ARM64 (excluded).

  • In a clean ubuntu:24.04 container, west packages pip --install installs openocd-esp32 0.12.0.post20260831.

  • On an ESP32-P4X-Function-EV-Board, with the companion Zephyr change, west flash and west debug use this OpenOCD. GDB stops at main(), and with CONFIG_DEBUG_THREAD_INFO=y, info threads lists the Zephyr threads.
  • 🤖 Generated with Claude Code

    Diff: 205 lines (+153 / -52) across 2 files Reviewer: marekmatej Review duration: 1069m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 205 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.319
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #716"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.3% (MEDIUM) · Higher = larger blast radius
    36.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.3% · Safe to merge
    14.3%