Skip to content
Back to skills

Esp32 W5500 Ethernet

ASecurity

Use when using W5500 SPI Ethernet with ESP32, diagnosing DHCP, socket failures, link loss, SPI timing or Ethernet/Wi-Fi coexistence.

  • 16 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
ai-agentsapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add Esmail-sarhadi/esp32-agent-skills --skill esp32-w5500-ethernet --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Esp32 W5500 Ethernet?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Esp32 W5500 Ethernet
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/esmail-sarhadi-esp32-w5500-ethernet/badge)](https://www.skillsdirectory.com/skills/esmail-sarhadi-esp32-w5500-ethernet)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: esp32-w5500-ethernet
description: Use when using W5500 SPI Ethernet with ESP32, diagnosing DHCP, socket failures, link loss, SPI timing or Ethernet/Wi-Fi coexistence.
license: MIT
---

# ESP32 W5500 Ethernet

W5500 is an SPI Ethernet controller with its own hardwired TCP/IP stack and socket resources. It is not the same architecture as an RMII PHY attached to an ESP32 Ethernet MAC. Choose the driver/API path accordingly.

## Hardware integration

- Verify module supply and logic voltage, SPI pin routing, CS, SCK, MOSI, MISO, RESET and interrupt wiring.
- Check the exact W5500 module schematic; some boards include regulators, level shifting, magnetics and RJ45 LEDs, others do not.
- Keep SPI traces short and validate clock rate against wiring, board layout and module quality.
- Provide stable reset sequencing and adequate supply decoupling.

## Driver and socket model

- Use the supported Ethernet library/IDF component for the selected framework release.
- Respect W5500 hardware socket count and buffer allocation; close sockets on every error path.
- Do not mix APIs for native lwIP Ethernet and W5500 offload sockets without understanding ownership.
- Bound DNS, connect, read and write timeouts; handle cable removal and DHCP lease loss.

## Diagnostics

- Verify link before DHCP, DHCP before DNS, DNS before TCP and TCP before application protocol.
- Log PHY/link status, assigned address, gateway, DNS, socket number and error code.
- Test a minimal ping/TCP client before adding WebSocket, MQTT or socket.io libraries.
- Capture SPI transactions and reset behavior when failures occur after long uptime.

## Regression matrix

| Scenario | Expected behavior |
|---|---|
| Cable absent at boot | Firmware remains responsive |
| Cable inserted later | Link and DHCP recover |
| DHCP unavailable | Bounded retry, no task starvation |
| Peer closes socket | Socket reclaimed |
| Repeated reconnect | No socket exhaustion or heap trend |
| Wi-Fi and W5500 together | Explicit routing and ownership behavior |

## Agent rules

- Name the exact W5500 driver and framework version.
- Do not call every post-DHCP crash a W5500 hardware fault; isolate driver, socket API and task context.
- Keep application protocol out of the Ethernet bring-up test.
- Record unresolved community reports as leads, not fixes.

Files in this skill

  • LICENSE.txt823 B
  • SKILL.md2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.