inlay bench start. Your sessions on other computers can then flash, read serial output and debug through it, and it can take GitHub and Slack jobs.
Prepare the machine
The bench machine runs macOS, Linux or Windows. On it:- Install Inlay.
- Connect the board, the debug probe and any instruments.
-
Install the device drivers, and make sure your account can open the USB serial ports and probes. On Linux, add your account to the
dialoutandplugdevgroups, and check that your probes’ udev rules allow it. -
Install the flashing tools your board needs, such as probe-rs or OpenOCD:
On macOS, run
brewas your normal user, not withsudo. On Windows, install probe-rs withwinget install probe-rs.probe-rs. - To let the bench take jobs, clone the firmware repositories you want it to work on.
Set up a bench
On the bench machine, open a terminal in a repository folder, or in the folder that holds your checkouts, and run:inlay bench setup is the same command.
1
Sign in
If you aren’t signed in, the command shows a one-time code and opens the sign-in page in your browser. Check that the code there matches, then approve.Over SSH, or on a machine without a display, nothing opens on the bench. The command prints a link and a code instead: open the link on your laptop or phone and enter the code.
2
Answer the questions
The command names the bench after the machine. To pick another name, run it with
--name lab-mac.It then asks Who can use the bench. Use the arrow keys and Enter to choose:It may also ask:
- Copy a folder so jobs can read it? On macOS, jobs can’t read toolchains under Documents, Desktop or Downloads. Choose Yes to copy the folder to
~/.inlay/readable/. - Take jobs on this bench for every repo your team connects? This appears when the folder has no GitHub checkouts.
3
Check the results
Under This machine, the command lists what it found:A line that starts with ◐ Partial or ◐ Offline says what’s left to do. Finish it on the Connect work page, which the command opens in your browser. Over SSH, open the link it prints on your laptop or phone.
Under Setting up, each step ends with a check and how long it took. When the bench comes online, the command reports whether requests can reach it:
If the folder has GitHub checkouts, the bench takes jobs for those repositories, one at a time. See Run jobs on a bench to change this.
Run the command again
Runninginlay bench start again on the same machine is safe. It keeps the bench’s name, sharing and job settings, asks no questions, checks the machine, and restarts the service if needed. Run it whenever the bench is offline or a check fails.
To diagnose the machine without changing anything, run:
Options
Check a bench on the web
In the Inlay app, choose Benches in the sidebar and select the bench’s name. Its page shows:- Who can use it, Only you or Shared with the team, and whether it’s Online, seen just now or Offline with when it was last seen.
- Takes jobs, with how many jobs it runs at once. See Run jobs on a bench.
- The bench’s checks. Failing checks are listed first, marked Broken or Warning. When checks are more than a day old, the page asks you to run them again.
- Recent requests, with where each was asked and how it ended.
Choose who can use a bench
A bench you set up is personal until you share it. Sharing a bench with a team gives every member full access, including running any program on the machine. With jobs on, their GitHub and Slack requests can also run on it.unshare makes the bench personal again. Add --team <name> to take it out of one team only. Teammates’ running jobs stop within 30 seconds.
On the Benches page, the bench’s row also lists the teams that can use it. Choose + to give a team access, or × beside a team to remove it.
Use a bench in a session
Choose where a session runs before you start it:- In VS Code, select the environment button at the top of the chat. It shows Local until you pick a bench. Under Where should this run?, choose the bench under Benches. Inlay starts a new chat on it.
- In the terminal UI, run
/env, then choose the bench under BENCHES.
/bridge opens the Benches manager. To select a bench for the current chat directly, run /bridge <name>, for example /bridge lab-mac.
Bench serial ports start with bridge:. Confirm the ports and target before you ask Inlay to flash:
Add a bench with a code
A bench that isn’t in anyone’s account yet can be added from your computer with a code. On the bench machine, run:inlay bench add line with the bench’s fingerprint. If the bench already belongs to a team, it prints the command to check it instead. On your computer, run the line it printed:
Work through a bench
To run a command on the bench machine, such as listing probes, use
inlay bench exec:
inlay bench watch lab-mac. On the bench machine, inlay bench queue lists who holds and who waits for each probe or board.
Describe the boards on a bench
Inlay chooses how to flash from the boards described in~/.inlay/bench/hardware.toml on the bench machine. Describe a board when Inlay can’t detect the target, or when you flash with OpenOCD. After Inlay flashes a target that isn’t described yet, it saves that target to the file.
The bench reads the file each time Inlay checks its hardware, so you don’t need to restart it. Add a [[board]] table for each board:
- When the file describes several boards, Inlay asks for the chip name and flashes with probe-rs. To flash with OpenOCD, describe only that board in the file.
- Use the exact key names and values above. Inlay skips a board with an invalid value, such as
stlinkinstead ofst-linkor aflashBasewithout0x. - Boards that Inlay saves can include other keys, such as
serialPort. Leave them as they are.
Check a bench from your computer
list shows your benches, whether each is online, and who can use it. verify checks a bench end to end: the connection, serial ports, flashing tools, GDB server and file transfer. Leave the name out when you have one bench online. Resolve missing tools or device permissions on the bench machine, then run inlay bench doctor there.
Stop or remove a bench
To add a removed bench again, run
inlay bench reclaim --confirm on the bench machine, then inlay bench start.
Troubleshoot
- Benches isn’t in the sidebar, or
inlay bench startsays benches aren’t available: ask your Inlay administrator. - Sign-in waits: approve the request in the browser where the code was shown. Over SSH, open the printed link on another device and enter the code.
- ◐ Offline, or No word from the bench service in 60 s: check that the machine can reach Inlay, then run
inlay bench startagain. Read the log withinlay service logs. - Board shows no serial ports found: check the USB cable, target power, drivers and device permissions, then run
inlay bench doctor. - Flashers shows none on PATH: install probe-rs or OpenOCD as described in Prepare the machine, then run
inlay bench startagain. - Toolchains says a folder stays unreadable to jobs: on macOS, run
inlay bench start --copy-readableto copy it out of the protected folder. - Old bridge service:
inlay bench doctorfound a bridge service from an older Inlay. Remove it, because it conflicts with the bench. - On Linux, the service runs only while you’re signed in: Inlay couldn’t keep your user services running after sign-out. Ask the machine’s administrator to enable lingering for your account.
- Inlay finds no target, or ignores a board: check the entries in the board file for misspelled keys or invalid values, or give Inlay the chip name.
- A command is rejected: the machine may limit which programs the bench can run. Ask the machine’s administrator.