mcu_hosted_sdio_sdmmc_combined/cp

Example of the component espressif/esp_hosted v3.0.2
# mcu_hosted_sdio_sdmmc_combined — Coprocessor

Demonstrates running ESP-Hosted's SDIO transport on the same SDMMC
controller that also hosts an external SD card — the two share the
bus driver but live on different slots. The host brings up Wi-Fi
through ESP-Hosted on SDMMC slot 1 (on-board ESP32-C6), mounts a
FAT-formatted SD card on SDMMC slot 0, scans Wi-Fi before *and* after
filesystem I/O to confirm the radio survives the card init, then
writes / renames / reads a file via the standard FATFS / VFS
interface.

## Supported Platforms and Transports

### Supported Coprocessors

| Coprocessor | ESP32 | ESP32-C Series | ESP32-S Series |
| :----------: | :---: | :------------: | :------------: |
| Support     | Yes   | Yes            | Yes            |

### Supported Host Devices

| Host Device | ESP32-P4 | ESP32-H2 | Other MCUs | Linux |
| :---------: | :------: | :------: | :--------: | :---: |
| Support     | Yes | Yes | [Yes](https://github.com/espressif/esp-hosted/blob/master/docs/getting-started-mcu.md) | [Yes](https://github.com/espressif/esp-hosted/blob/master/docs/getting-started-linux.md) |

### Supported Connection buses

| Connection bus | SDIO | SPI Full-Duplex | SPI Half-Duplex | UART |
| :------------- | :--: | :-------------: | :-------------: | :--: |
| Linux host     | Yes  | Yes             | No              | No   |
| MCU host       | Yes  | Yes             | Yes             | Yes  |

The co-processor firmware needs no example-specific options — just select the transport (SDIO, since the point of this example is sharing the SDMMC controller):

```bash
cd examples/mcu_hosted_sdio_sdmmc_combined/cp
idf.py set-target esp32c6
idf.py menuconfig
```

```text
Component config
└── ESP-Hosted
     └── Configure coprocessor
          └── CP transport
               ├── Communication bus (co-processor <== bus ==> host)
               │    ├── ( ) SPI Full Duplex
               │    ├── (X) SDIO                    <── default
               │    ├── ( ) SPI Half Duplex         ← MCU host only
               │    └── ( ) UART                    ← MCU host only
               └── SDIO Configuration               ← clock, GPIOs, checksum (defaults OK)
```

Each bus has its own settings submenu (pins, clock, checksum) — defaults are fine for bring-up.

CP dependency config is **pre-set in `sdkconfig.defaults`** (do not remove):

```text
CONFIG_ESP_HOSTED_CP_FEAT_WIFI=y   # Wi-Fi feature on the coprocessor (default)
CONFIG_BT_ENABLED=n                # BT controller off — not needed here
```

Then flash and monitor:

```bash
idf.py -p <cp_usb_serial_port> flash monitor
```

<!-- generated from ../README.md — edit that file, not this one -->

To create a project from this example, run:

idf.py create-project-from-example "espressif/esp_hosted=3.0.2:mcu_hosted_sdio_sdmmc_combined/cp"

or download archive (~10.17 KB)