Multicore

From beriberikix/zephyr-agent-skills · View interactive version

Multicore is an AI agent skill from the GitHub repository beriberikix/zephyr-agent-skills. Developing for multicore systems in Zephyr RTOS. Covers Symmetric Multiprocessing (SMP), Asymmetric Multiprocessing (AMP) with OpenAMP/RPMsg, inter-processor communication (IPC) patterns, and Linkable Extensions (LLEXT). Trigger when designing for SoCs with multiple homogeneous or heterogeneous core

How to use this skill

Skill file

Zephyr Multicore Development

Leverage multiple CPU cores to increase performance, isolate critical tasks, and integrate heterogeneous systems.

Core Workflows

1. SMP Configuration

Run the Zephyr kernel and your threads across multiple identical cores.

2. OpenAMP & RPMsg

Communicate between heterogeneous cores (e.g., A-series and M-series) using standard protocols.

3. IPC Patterns

Implement efficient data exchange between cores using high-level services or low-level mailboxes.

4. LLEXT (Linkable Extensions)

Dynamically load and run binary modules at runtime without a full firmware update.

5. Multi-domain SoCs (nRF5340)

Build separate application-core and network-core images in one Sysbuild invocation.

Quick Start (SMP prj.conf)

# Enable SMP for dual-core SoCs
CONFIG_SMP=y
CONFIG_MP_NUM_CPUS=2
// Using spinlocks for cross-core sync
struct k_spinlock lock;
k_spinlock_key_t key = k_spin_lock(&lock);
// ... critical section ...
k_spin_unlock(&lock, key);

Professional Patterns (Architecture Design)

Automation Tools

Examples & Templates

Validation Checklist

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.