本文へ移動
cccskills
無料GitHub で公開

power-performance

Power management and performance optimization for Zephyr RTOS. Covers system power states (Idle, Suspend, Off), device-level power management, residency hooks, and code/data relocation for speed efficiency. Trigger when optimizing battery life, reducing latency, or managing memory constraints.

インストール方法を見る

含まれるファイル(6)

  • SKILL.md3.0 KB
  • assets/power_budget_template.csv102 B
  • references/performance_tuning.md1.5 KB
  • references/power_management.md1.9 KB
  • scripts/power_budget_estimator.py3.0 KB
  • skill-meta.yaml504 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Zephyr Power & Performance

Maximize the efficiency of your embedded system by balancing power consumption and computational performance.

Core Workflows

1. Power Management (PM)

Implement system-level and peripheral-specific power saving strategies.

  • Reference: power_management.md
  • Key Tools: pm_device_action_run, pm_state_set, Residency hooks.

2. Performance Tuning

Optimize critical code paths and monitor system resources.

3. Memory Optimization

Relocate code and data to utilize the fastest memory available.

Quick Start (Device Suspend)

#include <zephyr/pm/device.h>

const struct device *spi0 = DEVICE_DT_GET(DT_NODELABEL(spi0));

void sleep_spi(void) {
    pm_device_action_run(spi0, PM_DEVICE_ACTION_SUSPEND);
}

Professional Patterns (Optimization)

  • Aggressive Suspend: Transition peripherals to low-power states as soon as their transaction is complete.
  • ITCM/DTCM: Use Tightly Coupled Memory for time-critical control loops to avoid Flash latency.
  • Runtime Monitoring: Always enable the thread analyzer during development to find the "RAM floor" for your application.
  • Coordinated Sleep: To coordinate sleep across modules, see kernel-services for Zbus-based event-driven power management.

Automation Tools

Examples & Templates

Validation Checklist

  • Target peripherals enter and exit suspend/resume states without functional regressions.
  • Measured idle and active power align with expected optimization deltas.
  • Thread analyzer and map data confirm stack/RAM budgets are within limits.
  • Relocated time-critical functions execute from intended memory region.

Resources

  • References:
    • power_management.md: System states, device PM, and hooks.
    • performance_tuning.md: Optimization strategies and relocation.
  • Scripts:
    • power_budget_estimator.py: Duty-cycle based battery-life estimator.
  • Assets:
    • power_budget_template.csv: Initial state/current budget template.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Custom board bringup for Zephyr RTOS using Hardware Model v2 (HWMv2). Covers directory structure, board.yml metadata, core configuration files (Kconfig, defconfig, CMake), and revision management. Trigger when creating new board definitions or porting Zephyr to custom hardware.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills692026年5月19日 更新

Build system management for Zephyr RTOS. Covers West workspace initialization, manifest management, Sysbuild multi-image builds, Kconfig symbols, and CMake integration. Trigger when setting up workspaces, configuring builds, or troubleshooting build-time errors.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills692026年5月19日 更新

Bluetooth Low Energy (BLE) integration for Zephyr RTOS. Covers GATT Services/Characteristics, GAP advertising, connection parameters, power optimization strategies, and the professional Send-When-Idle design pattern. Trigger when adding BLE connectivity, optimizing battery life for wireless devices, or implementing custom GATT profiles.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills692026年5月19日 更新

IP networking fundamentals for Zephyr RTOS. Covers IoT protocol selection (LwM2M, CoAP, MQTT), IP stack configuration and trimming (IPv4/IPv6, UDP/TCP), and professional SDK integration as Zephyr modules using West manifests. Trigger when building cloud-connected applications, optimizing network memory usage, or integrating external cloud SDKs.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills692026年5月19日 更新

USB and CAN connectivity for Zephyr RTOS. Covers USB device stack configuration (CDC ACM, HID, MSC), CAN controller integration, and professional USB-to-CAN adapter patterns including buffering and protocol packetization. Trigger when adding USB interfaces, implementing CAN bus communication, or building hardware diagnostic tools.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills692026年5月19日 更新

Devicetree management for Zephyr RTOS. Covers syntax, bindings, overlays, Hardware Model v2 (HWMv2), and advanced node/property deletion patterns. Trigger when defining hardware topology, creating overlays, or mapping pins and peripherals.

日本語の概要は準備中です。原文の説明を表示しています。

beriberikix/zephyr-agent-skills692026年5月19日 更新

beriberikix のスキルをすべて見る

このスキルの問題を報告する