Skip to content
Development
Skill

/lwip-integration

Use when integrating, porting, configuring, or debugging lwIP TCP/IP stack, netif drivers, memory pools, sys_arch, DHCP, TCP, UDP, or embedded networking issues

From plugin
aix-skills
3976 skills

Claude Code

$ npx -y skills add easyzoom/aix-skills --skill lwip-integration --agent claude-code

SKILL.md

lwip-integration.SKILL.md
name: lwip-integration
description: Use when integrating, porting, configuring, or debugging lwIP TCP/IP stack, netif drivers, memory pools, sys_arch, DHCP, TCP, UDP, or embedded networking issues

lwIP Integration

Overview

Use this skill to integrate lwIP by separating hardware Ethernet/Wi-Fi drivers, `netif` glue, memory pools, threading model, and protocol configuration. A successful port proves link, IP configuration, packet RX/TX, and resource stability under load.

When To Use

Use this skill when:

  • The user wants to add or debug lwIP on bare metal, FreeRTOS, RT-Thread, Zephyr, vendor SDKs, or custom network drivers.
  • The issue involves `lwipopts.h`, `sys_arch`, `netif`, DHCP, TCP/UDP, pbufs, memory pools, packet loss, or hard faults in networking.
  • The target uses Ethernet, Wi-Fi, PPP, SLIP, or a vendor network interface.

Do not use this skill when the physical link or board interface is not proven. Use `hardware-interface-debug` first for PHY, RMII/MII, clocks, or wiring issues. For FreeRTOS-native TCP/IP, use `freertos-plus-tcp-integration`. For MQTT over lwIP, use `mqtt-embedded-integration` after basic connectivity works.

First Questions

Ask for:

  • MCU/SoC, network interface, PHY/module, RTOS, and lwIP version.
  • Driver source: vendor SDK, custom MAC driver, Wi-Fi module, or simulator.
  • Threading model: NO_SYS raw API, tcpip_thread, socket/netconn API, or RTOS integration.
  • `lwipopts.h`, memory sizes, pbuf pool settings, and enabled protocols.
  • Current symptom: no link, no IP, DHCP timeout, ping fails, TCP stalls, memory exhaustion, or crash.
  • Packet/log evidence: link status, IP address, ARP, ping, Wireshark, counters, or asserts.

Integration Checklist

1. Confirm link before IP. Verify PHY/module link, MAC address, link callbacks, and carrier status before debugging DHCP or TCP.

1. Confirm `netif` glue. `netif_add`, input path, output path, MTU, flags, hostname, and link/status callbacks must match the driver.

1. Match threading model. Do not call raw API from arbitrary threads. Use tcpip callbacks or socket/netconn APIs according to configuration.

1. Size memory deliberately. Check `MEM_SIZE`, `MEMP_NUM_*`, `PBUF_POOL_SIZE`, TCP windows, mailbox sizes, and stack sizes.

1. Implement OS abstraction if needed. For RTOS ports, `sys_arch` must provide semaphores, mutexes, mailboxes, timeouts, and critical sections.

1. Verify with layered tests. Link, static IP, ARP, ping, UDP echo, TCP connect, sustained transfer, and reconnect.

Common Failures

  • DHCP fails because link callback never reports up.
  • Ping fails because ARP output path or MAC address is wrong.
  • TCP stalls because pbufs or mailboxes are exhausted.
  • Random crashes from raw API calls outside tcpip_thread.
  • Cache/DMA incoherency corrupts RX/TX buffers.
  • Stack overflow in tcpip_thread or network driver task.

Verification

Before claiming lwIP works:

  • State interface, RTOS mode, API style, and IP configuration.
  • Confirm link status, MAC address, IP address, gateway, and netmask.
  • Confirm ping or UDP/TCP test with counters.
  • Report memory pool usage or at least configured pool sizes.
  • If DMA/cache is involved, state cache maintenance policy.

Example

User:

lwIP DHCP 一直拿不到 IP。

Agent:

1. Asks for PHY link status, `netif` setup, `lwipopts.h`, RTOS mode, and DHCP logs. 1. Confirms link callback and RX path before changing DHCP settings. 1. Tests static IP ping to separate driver/link problems from DHCP problems.

Read more
@easyzoom
Ships withaix-skills

AIX Skills is a public collection of Agent Skills, templates, and references for building repeatable AI workflows.

Stars on GitHub

Momentum

stars in total
39
Star history of easyzoom/aix-skills on GitHub, a chart by star-history.com

Other skills on aix-skills.

8051-mcu-debug

8051-mcu-debug

Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers,…

@easyzoom@easyzoomInstall Skill
avem-integration

avem-integration

Use when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers,…

@easyzoom@easyzoomInstall Skill
ble-gatt-integration

ble-gatt-integration

Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications,…

@easyzoom@easyzoomInstall Skill
bootloader-debug

bootloader-debug

Use when debugging embedded bootloaders, application jumps, vector table offsets, firmware upgrade flow, OTA state, image…

@easyzoom@easyzoomInstall Skill
canbus-integration

canbus-integration

Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing,…

@easyzoom@easyzoomInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about lwip-integration.

Which coding agents can use lwip-integration?
lwip-integration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.