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

# Rapid bring-up

> Take a new board or peripheral from its first build to a verified, repeatable firmware milestone.

Use this workflow to bring up a new board, a board revision, or a new peripheral one observable step at a time. First get a working build and a way to observe the target. Then confirm startup and connections, and verify the first peripheral transaction or output.

Pick a small first milestone, such as a boot message, a device ID read, or a measured GPIO transition. Keep unrelated application changes out of that first check so a failure is easier to isolate.

## Define the milestone

Tell Inlay the board revision, fitted parts, operating conditions, and the result that counts as success:

```text theme={"theme":"css-variables"}
Bring up the BME280 on the schematic's I2C bus. Read chip ID, temperature,
and pressure once per second. Build the debug image and verify the ready
message plus three samples over UART.
```

If the board has never booted, make a startup marker or a debug connection the first milestone. Move on to the peripheral after that works.

Prepare the project context below before you send the request, so Inlay works from the board's schematic and the recorded build commands.

## Prepare project context

1. Run `/project` and select the project for this board. For a board without one, [create a project](/docs/quickstart.md#connect-a-firmware-project) or [start one from the schematic](/docs/core-concepts/schematics.md#start-a-project-from-a-schematic). Check that its platform matches the board or its MCU.
2. Run `/peripheral` and add the fitted components.
3. Run `/upload-schematics` and add the board's complete [schematic set](/docs/core-concepts/schematics.md), including the power and connector sheets.
4. Run `/init`. Check the build, flash, and monitoring commands it records in [`INLAY.md`](/docs/core-concepts/inlay-md).

Compare suggested parts with the actual board. A catalog match doesn't confirm the populated variant or its wiring.

## Check the hardware assumptions

Confirm the supply voltage, reset and boot configuration, clock source, and debug or logging connection. For the first peripheral, check its power sequence, bus pins, pull-ups, chip select or address straps, and any enable signal against the populated board.

```text theme={"theme":"css-variables"}
Check the sensor's power-up sequence, I2C address, pull-ups, and pin mapping
against the datasheet and @sch:component:U4. Report unresolved assumptions
before changing the driver.
```

Replace the part and `U4` with the fitted device and its reference designator in your design. See [Reference schematic entities](/docs/core-concepts/schematics.md#reference-schematic-entities) for the `@sch:` forms.

When the work involves architectural choices, run `/plan` first. Review the plan, then approve it so Inlay implements the smallest working path in Act mode. See [Plan mode](/docs/core-concepts/modes.md#plan-review-an-approach-before-implementation) for the approval options in VS Code and the terminal UI.

## Establish a startup baseline

Build the smallest suitable application from the project's existing SDK or board support. Confirm the firmware file and the target before [flashing](/docs/debug-mode/flashing.md). Then capture a known boot marker over [UART](/docs/debug-mode/uart.md), [RTT](/docs/debug-mode/rtt.md), or another connection the board supports.

```text theme={"theme":"css-variables"}
Build the minimal startup application for this board revision. If the build
passes, flash the confirmed target and capture its configured boot output
for ten seconds. Report programming success and the boot marker separately.
```

If no marker appears, check power, reset, clocks, output routing, and the capture settings before you add peripheral code.

Connecting can change what the target is doing. Opening a UART asserts DTR and RTS, which can reset a board that wires those lines to reset or boot pins. A new debugger connection can program or reset the target. When a failed run is evidence, read the output you already have before you reconnect, and follow the connection's guide.

## Build, flash, and observe

Once the board starts reliably, initialize one peripheral. Perform the smallest transaction that proves communication, such as a documented ID or status read, before you enable a larger workload.

Ask Inlay to stop if the build fails, to flash only the confirmed board, and to capture output with a timeout:

```text theme={"theme":"css-variables"}
Build the debug image. If it passes, flash the selected board and capture UART
for 15 seconds. Report the chip ID, ready marker, and three sensor samples.
```

Check that the values are plausible for the test conditions. A successful flash without the expected behavior is not a completed bring-up.

To graph numeric output as it arrives, run `/plot` in VS Code or open a **Plot** tab in the Monitor. See [Live plots](/docs/core-concepts/plot.md) for the line format the plot reads.

## Diagnose before expanding

Start with the observation that can tell the most likely causes apart:

| Question | Observation |
| - | - |
| Does startup run in the expected order? | Serial output over [UART](/docs/debug-mode/uart.md) or [RTT](/docs/debug-mode/rtt.md) |
| Does the bus transaction happen, with the right address and acknowledgment? | [Logic analyzer](/docs/debug-mode/logic-analyzer.md) |
| Are signal levels, rise times, and timing within the device's limits? | [Oscilloscope](/docs/debug-mode/oscilloscope.md) |
| What state are the CPU and the peripheral in? | [GDB](/docs/debug-mode/gdb.md), after you switch to Debug mode with `/debug` |

For a missing bus response, first check whether the expected pins toggle. If they do, inspect the address or chip-select timing and the acknowledgment. If they don't, inspect initialization, clocks, and pin configuration. Repeat the same bounded check after each change.

Preserve a fault before you reset the board. See [Monitor and debug](/docs/debug-mode/overview.md). If these checks don't explain the failure, continue with [Debugging and RCA](/docs/solutions/debugging-and-rca.md).

## Make bring-up repeatable

Save the working setup in `INLAY.md`, and ask Inlay to save the check as a [hardware script](/docs/debug-mode/hardware-scripts.md) under `.inlay/hardware/`. Record the board revision, firmware file, wiring, expected output, and any manual reset or power steps.

```text theme={"theme":"css-variables"}
Save the verified check as a hardware script. Read UART for up to 15 seconds
and pass only if the ready marker, the expected chip ID, and three in-range
samples appear. Do not flash the target. Put the board revision, firmware
file, and wiring in a comment at the top of the script.
```

Re-run the check from the intended startup condition before you add the next peripheral or feature. Ask Inlay to run it in Act or Debug mode, open the script in VS Code and run **Inlay: Run Hardware Script**, or run `inlay script <name>.py` in a terminal at the project root. Each run reports pass or fail with the script's summary.

When the first transaction works, continue with [Driver development](/docs/solutions/driver-development.md) to build the full interface, error handling, and regression checks.


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