AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Multicore

skill-beriberikix-zephyr-agent-skills-multicore · by beriberikix

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 cores.

No reviews yet
0 installs
39 views
0.0% view→install

Install

$ agentstack add skill-beriberikix-zephyr-agent-skills-multicore

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-beriberikix-zephyr-agent-skills-multicore)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Multicore? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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.

  • Reference: [smpconfiguration.md](references/smpconfiguration.md)
  • Key Tools: CONFIG_SMP, k_spinlock, Thread Affinity.

2. OpenAMP & RPMsg

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

  • Reference: [openamprpmsg.md](references/openamprpmsg.md)
  • Key Tools: CONFIG_OPENAMP, message vrings, Resource Tables.

3. IPC Patterns

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

  • Reference: [ipcpatterns.md](references/ipcpatterns.md)
  • Key Tools: IPC Service, IPM drivers, Shared Memory.

4. LLEXT (Linkable Extensions)

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

  • Reference: [llextbasics.md](references/llextbasics.md)
  • Key Tools: CONFIG_LLEXT, dynamic ELF loading, Symbol Export.

5. Multi-domain SoCs (nRF5340)

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

  • Reference: [multidomainsysbuild.md](references/multidomainsysbuild.md)
  • Key Tools: west build --sysbuild, CONFIG_NRF53_BOOT_NETWORK_CORE_ON_STARTUP, domains.

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)

  • Linux Bridging: Use OpenAMP/RPMsg to bridge Zephyr real-time logic with a Linux application controller.
  • Core Isolation: Pin high-frequency interrupts (e.g., motor control) to Core 1 and keep the main application on Core 0 to prevent jitter.
  • Zero-Copy Transfers: Use shared memory regions for large data (video/audio) and only pass meta-data via IPC channels to minimize overhead.

Automation Tools

  • [smpconfigcheck.py](scripts/smpconfigcheck.py): Validate SMP-related Kconfig consistency in prj.conf.

Examples & Templates

  • [rpmsgchannelcontract.md](assets/rpmsgchannelcontract.md): Starter channel contract for RPMsg endpoint design.

Validation Checklist

  • [ ] SMP builds run with expected CPU count and no cross-core race regressions.
  • [ ] OpenAMP/RPMsg endpoint exchange passes bidirectional message tests.
  • [ ] IPC latency and throughput remain within target budget under load.
  • [ ] LLEXT module load/unload path resolves symbols and handles failure cases safely.
  • [ ] Multi-domain Sysbuild builds both core images and west flash programs each domain.

Resources

  • [References](references/):
  • smp_configuration.md: Configuration and spinlocks.
  • openamp_rpmsg.md: AMP and Linux interoperability.
  • ipc_patterns.md: Mailboxes and high-level IPC services.
  • llext_basics.md: Dynamic code loading.
  • [Scripts](scripts/):
  • smp_config_check.py: SMP config consistency checker.
  • [Assets](assets/):
  • rpmsg_channel_contract.md: RPMsg interface contract template.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.