FirmwareMaestro Docs
fwm CLI Agent

fwm CLI Agent

An interactive, AI-powered terminal assistant for Nordic nRF Connect SDK and Zephyr firmware development.

fwm is the FirmwareMaestro CLI — an interactive, AI-powered REPL for Nordic Semiconductor nRF firmware development. Everything happens inside the fwm agent REPL: scaffolding new Zephyr / nRF Connect SDK projects, building, flashing, running validation sequences, cross-referencing datasheets, and asking the AI agent for help on real firmware problems.

Top-level commands

CommandPurpose
fwm agentLaunch the interactive REPL (this is where you spend all your time).
fwm updateRe-run the installer to upgrade fwm to the latest version.
fwm completions <shell>Emit a shell completion script (bash, zsh, fish, powershell).

Everything else — building, flashing, scaffolding, analysis, validation, authentication — is available as a slash command inside the REPL, or by asking the AI agent directly.

Launch flags

fwm agent accepts the following flags:

FlagPurpose
-q, --query <TEXT>Single-shot mode — run one query and exit.
--planStart in plan mode (read-only; requires approval before writes).
--compliance <STD>Enable a safety standard (misra-c-2012, cert-c, iso26262, iec61508, iec62304, do178c).
--max-iterations <N>Cap the agent loop at N iterations.
--dry-runDisable tool-call writes (write_file, edit_file, git_commit).
--no-historyDon't save or load session history.

Key capabilities

Supported MCUs — 21 Nordic targets

All targets run nRF Connect SDK (nCS) on top of Zephyr RTOS. Run /targets inside the REPL to see every chip's default Zephyr board.

SeriesCountTargetsPurpose
nRF527nRF52805, nRF52810, nRF52811, nRF52820, nRF52832, nRF52833, nRF52840BLE SoC (Cortex-M4 / M4F)
nRF531nRF5340Dual-core BLE SoC (Cortex-M33)
nRF545nRF54H20, nRF54L05, nRF54L10, nRF54L15, nRF54LM20Next-gen BLE / multiprotocol
nRF703nRF7000, nRF7001, nRF7002Wi-Fi 6 companion IC
nRF915nRF9131, nRF9151, nRF9160, nRF9161, nRF9280Cellular IoT (LTE-M / NB-IoT + GNSS)

AI backend

All AI requests are proxied through api.firmwaremaestro.com. Authenticate with /login inside the REPL on first run.

The agent emphasizes:

  • Deep nRF Connect SDK awareness — Zephyr devicetree, Kconfig layering, common subsystems (Shell, NVS, MCUboot, Sensor, I²C, SPI, USB, power management).
  • Datasheet-aware code review — errata cross-referencing, register validation, interrupt and timing analysis in /debug mode.
  • Memory-constrained, power-aware patterns and idiomatic Nordic CLI usage (west, nrfutil, nrfjprog).

Safety compliance

Enable a standard with fwm agent --compliance <std>:

  • MISRA C:2012
  • CERT C
  • ISO 26262
  • IEC 61508
  • IEC 62304
  • DO-178C

Next steps

On this page