← Back to Pull requests

docs (blog): add article on building an IEC 60730 Class B safety cont… #891

Open
unknown opened this pull request with 430 lines diff across 5 files
View on GitHub
unknown unknown commented on Dec 01, 2026 12:42 UTC
Author

Building an IEC 60730 Class B Safety Controller using ESP32-C5

<!--
⚠️ PRE-SUBMISSION REMINDERS
1. Read the project style guidelines (CONTRIBUTING.md).
2. For Work In Progress, please use the Draft PR feature.
3. Ensure you have tested locally with Hugo.
-->

📝 Description

This PR introduces a technical tutorial article on building an industrial IEC 60730-1 Annex H (Class B) safety controller on the dual-core ESP32-C5 using Espressif's ESP-BIST library.

  • Article path: content/blog/2026/11/esp32c5-iec60730-class-b-safety-controller/index.md

  • Core topics covered:

  • - Asymmetric Trust Model: LP-Core RISC-V acting as an on-die bare-metal Safety Supervisor over the HP-Core running FreeRTOS.
    - IEC 60730-1 Table H.1 silicon diagnostic mapping (CPU, CSR, RAM March-A, stack overflow, flash CRC, pad readback).
    - Host Diagnostics (HD) runtime architecture for integrated operating systems (FreeRTOS & Zephyr).
    - Freedom From Interference (FFI) design features: hardware DMA bus-master clock quiescing, external PSRAM buffer allocation, and non-blocking sensor sampling.
    - Closed-loop actuator pad voltage readback and in-flight dark-pulse testing.
    - Fail-closed checkpoint withholding mechanism driving hardware LP WDT recovery.
    - Current status of esp-bist (v1.1.0 stable standalone STL across supported RISC-V SoCs; v2.0 Host Diagnostics OS integration).

    Publish date

    Expected publish date: 2026-12-15

    Review process

  • Initiate technical review

  • - [ ] This item is N/A
    - Add subject matter experts (Functional Safety / ESP-BIST / ESP32-C5 teams)
  • Once tech review mostly done, initiate editorial review

  • - Add technical editors (@f-hollow and/or @pedrominatel)

    Checks

  • Article folder and file names:

  • - Folder path is content/blog/2026/11/esp32c5-iec60730-class-b-safety-controller
    - Folder and file names have no underscores, spaces, or uppercase letters
  • New article's YAML frontmatter:

  • - Title updated
    - Date matches the format date: 2026-11-30T10:00:00+08:00
    - Summary updated
    - Authors added (authors: [espressif])
    - Tags added
  • Updated article's YAML frontmatter:<br>

  • - [ ] This item is N/A
  • Article media files:

  • - No external raster images added; diagrams use Hugo-native Mermaid blocks
    - Hugo shortcodes ({{< alert >}}) used for repository callouts and status notes
  • Links in articles:

  • - Verified all external links point to public repositories and documentation
    - No links to Google Docs present
    - Specific component versions linked
  • Git history:

  • - Commits are clean and squashed
    - Commit messages follow Conventional Commits format (feat(blog): add IEC 60730 Class B safety controller article on ESP32-C5)
    - Feature branch rebased on main

    🔗 Related

  • Reference project: espressif/esp-co2-safety-demo

  • Component registry: espressif/esp-bist

  • Component registry: espressif/esp_sensairshuttle
  • 🧪 Testing (Hugo)

  • I have run hugo server locally and verified there are no build errors.

  • I have checked the rendered output on Desktop and Mobile view.

  • I have verified that internal links and syntax highlighting work correctly.
  • Diff: 430 lines (+322 / -108) across 5 files Reviewer: sylvioalves Review duration: 4632m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.45) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 430 lines diff across 5 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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.363
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #891"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 45.1% (MEDIUM) · Higher = larger blast radius
    45.1%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 24.1% · Safe to merge
    24.1%