> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Complex workflows

> Guides for using Inlay on bring-up, driver development, debugging and RCA, testing, migrations, and optimization.

Use these guides when a task spans several stages, from a first build to a verified result on hardware. Each guide shows what to give Inlay, what to check at each stage, and how to make the result repeatable.

The guides assume Inlay is installed and your firmware project is open. If it isn't, start with the [Quickstart](/docs/quickstart.md).

## Choose a workflow

> [card] [Rapid bring-up](/docs/solutions/rapid-bring-up.md)
>
> For a board, board revision, or peripheral that hasn't run yet. Get it to start up, verify the first peripheral transaction, and save a repeatable board check.

> [card] [Driver development](/docs/solutions/driver-development.md)
>
> For a board that boots and a part that needs a driver. Build the driver from its datasheet and board connections, then verify normal and failure paths.

> [card] [Debugging and RCA](/docs/solutions/debugging-and-rca.md)
>
> For firmware that fails on hardware. Separate hardware and software causes, test a correction, and keep the evidence behind it.

> [card] [Automated testing](/docs/solutions/automated-testing.md)
>
> For behavior you need to keep working. Build repeatable host, target, and bench checks with results you can review.

> [card] [Platform migrations](/docs/solutions/platform-migrations.md)
>
> For a change of MCU, board, or SDK. Move firmware to new hardware while preserving its behavior and board constraints.

> [card] [Migrate to XMOS](/docs/solutions/sigmastudio-to-xmos.md)
>
> For a port to an XMOS board. Turn a SigmaStudio DSP project, or MCU, DSP, FPGA, or older XMOS firmware, into a reviewed plan and an XMOS implementation.

> [card] [RTOS migrations](/docs/solutions/rtos-migrations.md)
>
> For a change of RTOS on the same board. Move firmware between real-time operating systems while preserving application behavior.

> [card] [Performance optimization](/docs/solutions/performance-optimization.md)
>
> For firmware that misses a size, speed, or power budget. Measure it, make a bounded change, and compare again.

## Work in small, verifiable steps

Every guide follows the same loop. Start with one result you can test, then repeat the loop as the project grows.

**1. Define the outcome**

State one observable milestone or metric, and the constraints the work must preserve.

**2. Record a baseline**

Capture the current build, test result, board behavior, or measurement before you change anything.

**3. Make a bounded change**

When the change has trade-offs or touches several modules, plan it first. Then implement the smallest useful increment.

**4. Verify on the intended target**

Repeat the same test or measurement on the same board, and keep the output for review.

## Choose a mode for each stage

| Mode | Use it to | Switch with |
| - | - | - |
| **Plan** | Read code, datasheets, schematics, and captured serial output, then agree on an approach. Plan mode writes a plan but doesn't edit your source, build, or flash. | `/plan` |
| **Act** | Edit code, build, run tests, flash, read serial output, take instrument measurements, and run hardware scripts. | `/act` |
| **Debug** | Do everything Act does, plus start a GDB session and inspect target state. | `/debug` |

When you approve a plan, Inlay implements it in Act mode. In a project that targets an XMOS board, **Migration** mode is also available for planning a port to that board. See [Agent modes](/docs/core-concepts/modes.md) for details.

## Prepare your project

> [card] [Quickstart](/docs/quickstart.md)
>
> Install Inlay, connect a firmware project, and verify your first change.

> [card] [Core concepts](/docs/core-concepts/overview.md)
>
> Learn how modes, approvals, sessions, skills, memory, and subagents work.

> [card] [Monitor and debug](/docs/debug-mode/overview.md)
>
> Collect serial, debugger, signal, power, trace, and coverage evidence.

> [card] [Supported hardware](/docs/supported-hardware/overview.md)
>
> Check support for platforms, peripherals, probes, connections, and instruments.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.