ESP32‑P4 + ESP32‑C5(WT01P4C5‑S1)WiFi init fails with RuntimeError: Wifi Unknown Error 0xffffffff #19221
Replies: 3 comments 5 replies
-
|
This is a known issue with the ESP32-P4 + ESP32-C5 combo module. The WiFi runs on the C5 co-processor, which requires the correct firmware on both chips. wlan = network.WLAN(network.STA_IF) wlan.connect('SSID', 'PASSWORD') You're using MicroPython firmware specifically built for ESP32-P4 with C5 co-processor support If the error persists, it's likely a firmware incompatibility — report it on the MicroPython GitHub with your firmware version. |
Beta Was this translation helpful? Give feedback.
-
|
Please take a look here. It might help
https://github.com/Tangerino/micropython-p4-test-suite
Carlos
…On Mon, Jun 29, 2026 at 4:58 PM W .WAKHONGOLA ***@***.***> wrote:
This is a known issue with the ESP32-P4 + ESP32-C5 combo module. The WiFi
runs on the C5 co-processor, which requires the correct firmware on both
chips.
Try this:
pythonimport network
import time
wlan = network.WLAN(network.STA_IF)
wlan.active(False)
time.sleep(1)
wlan.active(True) # Give the C5 time to initialize
time.sleep(2)
wlan.connect('SSID', 'PASSWORD')
Also check:
You're using MicroPython firmware specifically built for ESP32-P4 with C5
co-processor support
The C5 firmware is up to date — flash it separately via esptool if needed
Try wlan.active(False) before True to force a clean reset of the WiFi
co-processor
If the error persists, it's likely a firmware incompatibility — report it
on the MicroPython GitHub with your firmware version.
—
Reply to this email directly, view it on GitHub
<#19221?email_source=notifications&email_token=AAYEPRCVEKPAFMJNBWPVXJL5CJ723A5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZUG4ZDSOBQUZZGKYLTN5XKU43VMJZWG4TJMJSWJJLFOZSW45FMMZXW65DFOJPWG3DJMNVQ#discussioncomment-17472980>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYEPREJU5UKIHZ6H4LAGZL5CJ723AVCNFSNUABHKJSXA33TNF2G64TZHMYTKMZTG4YTIMR3IRUXGY3VONZWS33OHMYTAMBWGQ2TOMVBOYBA>
.
You are receiving this because you are subscribed to this thread.Message
ID: <micropython/micropython/repo-discussions/19221/comments/17472980@
github.com>
--
*Merci beaucoup, Muito obrigado, Thanks*
*Carlos TangerinoMobile: +33 6 82 05 55 18*
|
Beta Was this translation helpful? Give feedback.
-
This error typically means the main CPU cannot talk to the co-processor at all. It sounds like you have correct versions for the main and hosted cpus EDITED! I looked at the datasheet linked from that (Chinese) document. It lists the P4<->C5 pin mapping:
This is different from the default pin mapping given here: Specifically: It looks like they use a different pin mapping on the P4; (using default C6 pins rather than the default C5 ones!) If you are building the C5 firmware yourself you will need to follow the steps in https://github.com/espressif/esp-hosted-mcu/blob/main/docs/sdio.md to make sure it uses SDIO transport. The physical pin mapping on the C5 itself looks correct, so you do not need to change pins when building the C5 firmware. And you need to ensure that the fP4 irmwares has the correct pins configured for the SDIO bus, I do this in
In the working config I created for my Tab5 firmware I have: This works and connects using the esp-32 C6 as the co-processor. The specific pins may be different on your board but the principle is the same. finally: My tab5's C6 co-processor has (factory flashed) esp-hosted based on IDF 5.4.x. I can talk to it with my IDF 5.5.4 based P4 port and connect, so some cross-matching of versions is possible. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m using the Wireless‑Tag WT01P4C5‑S1 board, which has ESP32‑P4 (host) and ESP32‑C5 (WiFi/BLE co‑processor) on board, connected via SDIO.
Board info: https://www.wireless-tag.com/product-item-101.html
You can download the document for the Wireless-Tag WT01P4C5-S1 board from the board info.
My setup
P4 firmware:
Official MicroPython GENERIC_ESP32P4 with Support for external C5 WiFi/BLE (v1.28.0, 2026‑04‑06).
Repo:https://micropython.org/download/ESP32_GENERIC_P4/
C5 firmware:
Built from espressif/esp‑hosted‑mcu (latest main branch, no code changes) for ESP32‑C5, flashed as the slave co‑processor firmware.
Repo: https://github.com/espressif/esp-hosted-mcu
Transport: SDIO (on‑board wiring as per manufacturer schematic).
ESP‑IDF version for building C5 fw: 5.5.4(as required by esp‑hosted‑mcu).
Minimal test code (REPL)
Error
The error happens immediately at wlan.active(True), before any connect or scan.
What I’ve checked
Both chips flash successfully; basic GPIOs/UART work.
C5 runs the esp‑hosted‑mcu slave firmware (no obvious boot errors on serial).
P4 MicroPython is the correct “external C5” variant.
This is not a “flash C5 with MicroPython” mistake — C5 is running the Espressif co‑processor firmware.
My question / ask for help
Are there any specific sdkconfig / menuconfig options I must set when building esp‑hosted‑mcu for ESP32‑C5 as SDIO slave to work with MicroPython’s external WiFi driver?
Does MicroPython’s network module for “external C5” require a specific version or branch of esp‑hosted‑mcu?
Are there known issues with ESP32‑P4 + C5 over SDIO in current MicroPython / esp‑hosted‑mcu?
I also opened an issue yesterday with the same problem:#19217
Any guidance on correct C5 firmware build config, required pins, or debug steps would be greatly appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions