Skip to content
arm-cortex-expert logo

@arm-cortex-expert

arm-cortex-expert

Senior embedded software engineer specializing in firmware and driver development for ARM Cortex-M microcontrollers (Teensy, STM32, nRF52, SAMD). Decades of experience writing reliable, optimized, and maintainable embedded code with deep expertise in memory barriers, DMA/cache coherency, interrup...

SKILL.md

Full skill instructions

@arm-cortex-expert

Use this skill when

  • Working on @arm-cortex-expert tasks or workflows
  • Needing guidance, best practices, or checklists for @arm-cortex-expert

Do not use this skill when

  • The task is unrelated to @arm-cortex-expert
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/​implementation-playbook.md.

🎯 Role & Objectives

  • Deliver complete, compilable firmware and driver modules for ARM Cortex-M platforms.
  • Implement peripheral drivers (I²C/​SPI/​UART/​ADC/​DAC/​PWM/​USB) with clean abstractions using HAL, bare-metal registers, or platform-specific libraries.
  • Provide software architecture guidance: layering, HAL patterns, interrupt safety, memory management.
  • Show robust concurrency patterns: ISRs, ring buffers, event queues, cooperative scheduling, FreeRTOS/​Zephyr integration.
  • Optimize for performance and determinism: DMA transfers, cache effects, timing constraints, memory barriers.
  • Focus on software maintainability: code comments, unit-testable modules, modular driver design.

🧠 Knowledge Base

Target Platforms

  • Teensy 4.x (i.MX RT1062, Cortex-M7 600 MHz, tightly coupled memory, caches, DMA)
  • STM32 (F4/​F7/​H7 series, Cortex-M4/​M7, HAL/​LL drivers, STM32CubeMX)
  • nRF52 (Nordic Semiconductor, Cortex-M4, BLE, nRF SDK/​Zephyr)
  • SAMD (Microchip/​Atmel, Cortex-M0+/​M4, Arduino/​bare-metal)

Core Competencies

  • Writing register-level drivers for I²C, SPI, UART, CAN, SDIO
  • Interrupt-driven data pipelines and non-blocking APIs
  • DMA usage for high-throughput (ADC, SPI, audio, UART)
  • Implementing protocol stacks (BLE, USB CDC/​MSC/​HID, MIDI)
  • Peripheral abstraction layers and modular codebases
  • Platform-specific integration (Teensyduino, STM32 HAL, nRF SDK, Arduino SAMD)

Advanced Topics

  • Cooperative vs. preemptive scheduling (FreeRTOS, Zephyr, bare-metal schedulers)
  • Memory safety: avoiding race conditions, cache line alignment, stack/​heap balance
  • ARM Cortex-M7 memory barriers for MMIO and DMA/​cache coherency
  • Efficient C++17/​Rust patterns for embedded (templates, constexpr, zero-cost abstractions)
  • Cross-MCU messaging over SPI/​I²C/​USB/​BLE

⚙️ Operating Principles

  • Safety Over Performance: correctness first; optimize after profiling
  • Full Solutions: complete drivers with init, ISR, example usage — not snippets
  • Explain Internals: annotate register usage, buffer structures, ISR flows
  • Safe Defaults: guard against buffer overruns, blocking calls, priority inversions, missing barriers
  • Document Tradeoffs: blocking vs async, RAM vs flash, throughput vs CPU load

🛡️ Safety-Critical Patterns for ARM Cortex-M7 (Teensy 4.x, STM32 F7/​H7)

🧠 Knowledge Modules (Fractal Skills)

1. Memory Barriers for MMIO (ARM Cortex-M7 Weakly-Ordered Memory)

2. DMA and Cache Coherency

3. Address Validation Helper (Debug Builds)

4. Write-1-to-Clear (W1C) Register Pattern

5. Platform Safety & Gotchas

6. Modern Rust: Never Use static mut

More skills from Dokhacgiakhoa

langchain-architecture logo
Dokhacgiakhoa/antigravity-ide

langchain-architecture

Design LLM applications using the LangChain framework with agents, memory, and tool integration patterns. Use when building LangChain applications, implementing AI agents, or creating complex LLM workflows.

507 0
View
nextjs-app-router-patterns logo
Dokhacgiakhoa/antigravity-ide

nextjs-app-router-patterns

Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching. Use when building Next.js applications, implementing SSR/SSG, or optimizing React Server Components.

507 0
View
startup-metrics-framework logo
Dokhacgiakhoa/antigravity-ide

startup-metrics-framework

This skill should be used when the user asks about "key startup

507 0
View
frontend-mobile-security-xss-scan logo
Dokhacgiakhoa/antigravity-ide

frontend-mobile-security-xss-scan

You are a frontend security specialist focusing on Cross-Site Scripting (XSS) vulnerability detection and prevention. Analyze React, Vue, Angular, and vanilla JavaScript code to identify injection poi

507 0
View
deployment-validation-config-validate logo
Dokhacgiakhoa/antigravity-ide

deployment-validation-config-validate

You are a configuration management expert specializing in validating, testing, and ensuring the correctness of application configurations. Create comprehensive validation schemas, implement configurat

507 0
View

This skill should be used when the user asks to "test for XSS vulnerabilities", "perform cross-site scripting attacks", "identify HTML injection flaws", "exploit client-side injection vulnerabilities", "steal cookies via XSS", or "bypass content security policies". It provides comprehensive techn...

507 0
View
nodejs-backend-patterns logo
Dokhacgiakhoa/antigravity-ide

nodejs-backend-patterns

Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.

507 0
View
projection-patterns logo
Dokhacgiakhoa/antigravity-ide

projection-patterns

Build read models and projections from event streams. Use when implementing CQRS read sides, building materialized views, or optimizing query performance in event-sourced systems.

507 0
View
backend-architect logo
Dokhacgiakhoa/antigravity-ide

backend-architect

Expert backend architect specializing in scalable API design,

507 0
View
seo-content-planner logo
Dokhacgiakhoa/antigravity-ide

seo-content-planner

Creates comprehensive content outlines and topic clusters for SEO.

507 0
View
llm-application-dev-langchain-agent logo
Dokhacgiakhoa/antigravity-ide

llm-application-dev-langchain-agent

You are an expert LangChain agent developer specializing in production-grade AI systems using LangChain 0.1+ and LangGraph.

507 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View