Skip to content

Plan: the P4's radio chip updated from the Firmware card #250

Closed

Description

@ewowi

Goal. A P4 with WiFi shows its ESP32-C6's ESP-Hosted firmware and updates it from the Firmware card, over the SDIO link the two chips share, so the C6 matches the host's ESP-Hosted release on major.minor.

Outcome. Shipped. The Firmware card's WiFi coproc tab shows the C6's version, warns on a mismatch and installs the matching image from the release, a URL or a file; a dead link no longer reboots the board; WiFi associates on every boot and survives teardown; the request tail matches a native radio.

Decisions.

  • One pin drives both chips: the C6 image is built from the slave/ project of the same esp_hosted component the P4 links. Rejected: a separately versioned C6 image, which can drift.
  • A release asset (shared-c6-slave-<version>.bin), not embedded: embedding ~1.3 MB would cost every P4 update for a chip that rarely changes.
  • The update is one more OtaTarget (Coprocessor) beside App and MoonBase, through the same URL and upload paths.
  • The C6's status line moved from the System card to the Firmware card's tab (MIGRATING entry).
  • Rejected for the dead-link gate: the TRANSPORT_UP event and the version query; coprocessorLinkUp() is the signal.

Where its knowledge lives. build-system.md (The P4's radio chip image), lessons.md (ESP32-P4 round 3), performance.md (HTTP cost of the P4's WiFi co-processor), FirmwareUpdateModule.h, platform_esp32_ota.cpp, FirmwareImage.h (coprocessorRejection), coprocessor_image.py.

Steps.

  1. The C6 image in every release: built and verified on the latest pre-release.
  2. The C6 as an update target: OtaTarget::Coprocessor, another chip's image refused.
  3. The WiFi coproc tab: verified on .132 from a file and on the MHC-WLED shield from the release.
  4. A dead link does not abort the board: wifiRadioReady() gate; the dead-link boot itself was not seen on the bench and reopens on a user's report.
  5. Association on every boot: ten power cycles on the MHC-WLED shield.
  6. Teardown and re-init: verified on .139, nothing to change.
  7. The WiFi tail: within the stop rule against a native-radio S3.

Planned 2026-11-12, closed 2026-11-16.

Activity

  1. added
    plan
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions