Skip to content

Circuitpython esp_hosted integration - #3

Draft
HeathenUK wants to merge 4 commits into
mainfrom
cursor/circuitpython-esp-hosted-integration-670f
Draft

HeathenUK wants to merge 4 commits into
mainfrom
cursor/circuitpython-esp-hosted-integration-670f

Conversation

@HeathenUK

Copy link
Copy Markdown
Owner

This PR outlines a theoretical design and architectural plan for integrating ESP-Hosted functionality into CircuitPython.

The goal is to enable the use of SDIO-connected ESP32 modules as Wi-Fi co-processors, similar to how the Raspberry Pi Pico W utilizes the CYW43 chip.

Key Design Points:

  • Leverages MicroPython's Existing ESP-Hosted Driver: Explores adapting the existing ESP-Hosted support found in upstream MicroPython.
  • CircuitPython wifi.radio API Integration: Aims to expose ESP-Hosted functionality through the standard wifi.radio API, ensuring a consistent user experience.
  • SDIO Transport Layer: Utilizes lib/sdmmc for low-level SDIO communication (CMD52/CMD53, interrupts, DMA). This requires port-specific SDIO host controller drivers.
  • ESP-Hosted Protocol Layer: Implements the protobuf-based control and data plane for communication with the ESP32 slave.
  • lwIP Integration: Bridges the ESP-Hosted network interface to the lwIP TCP/IP stack.
  • Potential esphosted Module: Considers a dedicated Python module for explicit control over the ESP-Hosted interface.

Challenges Identified:

  • Timing and throughput requirements for SDIO.
  • Memory footprint for buffers and lwIP.
  • Requirement for specific ESP-Hosted firmware on the ESP32 slave.
  • Robust interrupt handling and power management.

This PR serves as a conceptual framework for a significant future enhancement, detailing the necessary components and considerations for implementation.


Open in Cursor Open in Web

@cursor

cursor Bot commented Dec 14, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 3 commits December 14, 2025 22:53
This commit integrates the esp-hosted-mcu component to provide WiFi functionality on the ESP32-P4 by leveraging an ESP32-C6 co-processor. It updates CMakeLists.txt, Makefile, and board configurations to enable the necessary components and drivers. The previous native ESP-Hosted SDIO transport code is removed as it is now handled by the esp-hosted-mcu component.

Co-authored-by: gadyke <[email protected]>
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.

2 participants