Skip to content

feat(M4-P0C1): ESP32-P4 three-SV binary staging, atomic commit and readback - #336

Merged
masarray merged 14 commits into
mainfrom
feat/m4-p0c1-firmware-multisv-staging
Oct 25, 2026
Merged

masarray merged 14 commits into
mainfrom
feat/m4-p0c1-firmware-multisv-staging

Conversation

@masarray

Copy link
Copy Markdown
Owner

M4-P0C1 — ESP32-P4 control-plane implementation for three SCL-derived SV profiles

Part of M4 issue #333 and ARD. Builds on merged P0A/P0B.

Implemented in firmware

  • Bounded, statically allocated MultiSvConfigStore with exactly three nested V1 device profiles inside the already merged ARM3 V2 codec. No XML parser, heap allocation, new RT task, or 3 copies of the PTP clock.
  • New MULTISV BEGIN/CHUNK/VALIDATE/COMMIT/ABORT/STATUS/SHOW UART command family (existing 192-byte command bound; 48-byte binary chunks, sequential offsets, monotonic transactions).
  • Separate prevalidated candidate_ and committed_profiles_ banks; commit is all-or-nothing and preserves previous committed roster on any corrupt/partial upload.
  • V2 codec linked into actual ESP32-P4 ESP-IDF arstack_process_bus component; new control handler linked into the main IDF component and dispatched from existing UART control loop.
  • Readback: configured, generation, full-envelope hash, bytes, 3 MAC/APPID/svID/VLAN/rate identities.
  • Honest capability: MULTISV-CONFIG-STAGING-V2; command responses explicitly say output=INACTIVE_UNTIL_M4_P0C2. Legacy PROFILE V1 START and single-SV TX remain unchanged.
  • Host CTest uses the reference 3-MU SCD, V2 binary, 48-byte chunk streaming, CRC rejection, stale transaction/replay prevention, incomplete transfer, abort, atomic retry and valid readback.

Gate / what is not in this PR

This PR commits the firmware control-plane roster, NOT the actual three-stream TX engine. Do not advertise SV-MULTI3-V1 yet. The shared PTP grid/publisher task, three isolated waveform banks and GUI pages belong to subsequent P0C2/P0D/P0E.

CI required: C++ GCC+Clang+MSVC, ESP32-P4 firmware build, Embedded Profile, Studio Qt regressions. No change to published official M3.H.3 binaries. Protocol contract.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T13:02:14.020092Z 22e56db PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@masarray
masarray merged commit e35c09f into main Oct 25, 2026
15 checks passed
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