Get the FREE Ultimate OpenClaw Setup Guide →

specialized

Scanned
npx machina-cli add skill beriberikix/zephyr-agent-skills/specialized --openclaw
Files (1)
SKILL.md
2.4 KB

Zephyr Specialized Hardware & Reliability

Integrate complex peripherals and build resilient systems that recover gracefully from unexpected failures.

Core Workflows

1. LVGL GUI Development

Build sophisticated graphical user interfaces for LCD and TFT displays.

  • Reference: lvgl_gui.md
  • Key Tools: Widgets, Styles, Double Buffering, native_sim simulator.

2. Audio I2S & Codecs

Implement high-quality digital audio streaming and codec management.

  • Reference: audio_i2s.md
  • Key Tools: CONFIG_I2S, DMA streaming, Ping-pong buffering.

3. Watchdog & Reliability

Ensure your system never hangs in the field using hardware watchdog timers.

4. Fault Injection & Resilience

Test your system's ability to recover from unexpected software and hardware errors.

  • Reference: fault_injection.md
  • Key Tools: Chaos testing, k_oops(), Reset reason diagnostics.

Quick Start (Watchdog Feed)

# Enable watchdog support
CONFIG_WATCHDOG=y
// Feed the dog in your main loop
while (1) {
    // Perform application work
    wdt_feed(wdt_dev, wdt_channel);
    k_sleep(K_MSEC(1000));
}

Professional Patterns (Reliability & UX)

  • Safe Boot Animation: Use a simple, non-interactive LVGL screen to show system status while critical subsystems (e.g., cloud connectivity) are initializing.
  • Zero-Pop Audio: Always use volume ramping when starting or stopping I2S streams to protect hardware and improve user experience.
  • Bitmask Health Monitoring: Use a bitmask to track the health of all background threads; the watchdog monitor only feeds the timer if ALL bits are set periodically.

Resources

  • References:
    • lvgl_gui.md: GUI widgets and performance tuning.
    • audio_i2s.md: Audio streaming and DMA patterns.
    • watchdog_reliability.md: Watchdog setup and health checks.
    • fault_injection.md: System resilience and chaos testing.

Source

git clone https://github.com/beriberikix/zephyr-agent-skills/blob/main/skills/specialized/SKILL.mdView on GitHub

Overview

Integrate complex peripherals and build resilient Zephyr-based systems. This skill covers LVGL GUI development, Audio I2S/Codecs, Watchdog timers, and Fault Injection to support reliable HMIs, audio devices, and mission-critical applications.

How This Skill Works

Leverages dedicated workflows for LVGL GUI development, I2S audio streaming, and fault-tolerance tooling. Each workflow maps to practical references (lvgl_gui.md, audio_i2s.md, watchdog_reliability.md, fault_injection.md) and patterns like Safe Boot Animation, Zero-Pop Audio, and Bitmask Health Monitoring. It emphasizes runtime reliability with wdt_feed(), DMA-based I2S, and chaos testing to validate recovery.

When to Use It

  • Building LVGL-based HMI on LCD/TFT displays.
  • Implementing high-quality I2S audio streams and codecs.
  • Ensuring field reliability with hardware watchdog timers.
  • Performing fault injection and chaos testing to validate resilience.
  • Designing high-reliability mission-critical systems with health monitoring and safe UX.

Quick Start

  1. Step 1: Enable watchdog support in Kconfig (CONFIG_WATCHDOG=y) and enable LVGL/I2S as needed.
  2. Step 2: In your main loop, feed the watchdog and sleep, e.g. wdt_feed(wdt_dev, wdt_channel); k_sleep(K_MSEC(1000));
  3. Step 3: Implement basic health checks and consider Bitmask Health Monitoring to gate watchdog feeding.

Best Practices

  • Use Safe Boot Animation to show status while subsystems initialize.
  • Apply Zero-Pop Audio with volume ramping when starting/stopping I2S streams.
  • Implement Bitmask Health Monitoring to gate watchdog feeding only when all health bits are set.
  • Validate LVGL UIs with native_sim to catch rendering issues early.
  • Prefer DMA-based I2S with Ping-pong buffering for smooth audio and reduced CPU load.

Example Use Cases

  • Industrial HMI panel using LVGL on Zephyr with a clear startup status and responsive UI.
  • Portable audio device leveraging I2S, DMA, and CODECs for high-quality sound with minimal latency.
  • Medical device employing a windowed watchdog and health checks to avoid field hangs.
  • Firmware resilient to faults via fault injection and chaos testing to ensure recovery paths.
  • System with health-driven watchdog gating and diagnostics for reliable resets and recovery.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers