Skip to main content
Use trace when you need to know what the firmware did, not only what it printed. Pick the workflow by the question you want to answer. Ordinary text logs aren’t event recordings. To read them, use Serial transports. Each tool’s page covers its setup. This page explains how to run each recording and read the result.

Open the Trace and Coverage tabs

  1. Run Embedder: Open Embedder Monitor.
  2. Select + to open a new tab, then choose Trace or Coverage under Views.
The Trace tab’s toolbar starts with the source settings. Open them to choose the trace kind, RTOS events or Instructions (ETM), and to set the source and probe. The footer shows the event count and the dropped, resync, and errors counters for the current recording.

Record firmware events

Use an event recording when your firmware streams structured trace events over RTT or ITM. You get a timeline of tasks, interrupts, and user events instead of plain text.
  1. Open a Trace tab.
  2. Open the source settings at the left of the Trace toolbar and choose RTOS events.
  3. In Source, choose an RTT or ITM entry. RTT text channels, such as the default terminal, don’t appear here. If the list shows No trace sources, connect the probe in a Serial Monitor tab first.
  4. Set up the transport:
    • For RTT, choose the J-Link Device, Interface, and Speed under J-Link.
    • For ITM, first enter CPU and SWO in a Serial Monitor tab. See ITM and SWO.
  5. Select Select ELF, then select Browse… to pick the ELF that matches the running firmware, or enter its path and select Use for recording.
  6. Select Record.
  7. Reproduce the issue, then select Stop.
While Embedder waits for the firmware’s trace metadata, the footer shows No trace descriptor yet. If the firmware’s trace format isn’t supported, a banner starts with Trace not compatible:. In either case, check the firmware’s trace instrumentation and the selected channel. Use the tabs below the timeline to switch between the Events, Timing, Signals, Flow, Memory, and Symbols views. If the tab shows Symbolization: with an Attach ELF button, attach the ELF that matches the recorded build.

Record xSCOPE probes and prints

  1. Open the source settings at the left of the Trace toolbar. In Source, choose the entry that ends in XMOS xTAG and your adapter ID, or the one that ends in XMOS xsim (simulator). When Embedder detects XMOS hardware but can’t list its adapters, the entry ends in XMOS xSCOPE instead.
  2. In the capture settings next to it, keep Capture set to xSCOPE records.
  3. Select Record. Select Stop when you’ve reproduced the issue.
Make sure the selected application is the .xe of the build you’re investigating. See xSCOPE for application and target selection.

Capture an instruction window

Use a bounded ETM capture to see the most recent instructions an Arm target executed during a timed run from reset. You need a J-Trace on a target with routed trace pins, and the ELF of the running build.
An ETM capture resets the target, runs it for the set time, and then halts it. It also takes the probe from RTT and any running debug server, which disconnects GDB sessions. Save any existing fault evidence first.
From the Trace tab:
  1. Open the source settings at the left of the Trace toolbar and choose Instructions (ETM).
  2. Make sure Embedder knows the device. Choose the J-Link Device under J-Link in the source settings or in a Serial Monitor tab’s RTT settings, or set Target MCU in EMBEDDER.md. See J-Trace setup.
  3. Optional: to choose the firmware, select Select ELF. Otherwise Embedder uses an ELF it finds in the project.
  4. Open the capture settings in the toolbar, which show the run time and instruction count, and set the capture under Capture:
  5. Select Capture. The button shows Capturing… until the result opens.
The result opens in the Instructions view. Double-click a row to open its source line. To capture from chat, run /debug, then ask:
The capture is saved and appears in the Trace tab. A capture keeps only the end of the run. When more instructions ran than it kept, the tab notes that the buffer overran and shows only the tail of execution. ETM records instruction order, not elapsed time.

Stream from a known start

Use a streamed ETM capture when you need execution from reset onward, such as a startup fault, or a longer history than one capture holds.
  1. In the Trace tab, open the source settings at the left of the toolbar and choose Instructions (ETM).
  2. Choose the J-Link Device under J-Link in the source settings or in a Serial Monitor tab’s RTT settings. A stream doesn’t fall back to Target MCU.
  3. Choose the firmware with Select ELF. Streaming needs the ELF up front because addresses are resolved as they arrive.
  4. Select Stream.
  5. Reproduce the issue, then select Stop to keep what was captured.
A stream keeps a rolling window of the latest instructions, 262,144 by default. To change it, set Window under Stream in the capture settings, from 4,096 to 1,000,000. From the Trace tab, a stream stops on its own after five minutes. Streaming halts the target between capture slices, so the firmware runs far slower than normal. Interrupt-driven code, timeouts, and handshakes can behave differently. Use a stream to inspect execution order, not to prove deadlines or peripheral timing. The dropped counter in the footer shows instructions lost when the probe’s buffer overflowed. If it isn’t zero, the reconstructed call sequence has gaps. To stream from chat, run /debug, then ask:

Measure source coverage

Use coverage to see which functions and source lines a workload executed. Counts cover the whole run, not only the instructions the trace buffer kept. Coverage uses the same J-Trace setup and has the same reset and probe effects as an instruction capture. From the Coverage tab:
  1. Select ⋯ (Configure coverage run) next to Run coverage and set the run:
  2. Select Run coverage. The button shows Capturing… until the report opens.
The Run coverage button always uses an ELF it finds in the project. If the project has more than one firmware image, ask Embedder to run coverage with the exact ELF instead. The report shows Functions, Source lines, and Instructions totals. Switch between the Functions and Files views, and filter by name. Turn on Show in editor to mark covered and uncovered lines in the editor gutter. To run coverage from chat, run /debug, then ask:
Coverage describes the workload you ran. An executed line doesn’t prove that every branch or requirement was tested. Keep the firmware build and a description of the test with the report.

Reopen saved results

Select the history icon (Trace history or Coverage history) to list saved sessions. Open a saved result when you need a different view, instead of resetting the board again. Select Delete session to remove a trace you no longer need. Embedder saves results in the project:
  • Trace sessions are in .embedder/traces/<session-id>/. Copy the whole folder when you share a session, so its data and metadata stay together.
  • Coverage reports are in .embedder/coverage/.
Recordings from earlier Embedder versions still open. For XMOS simulator traces, you can also query a saved session from a script. See Analyze the capture from Python.

Check the evidence

Before you draw a conclusion, confirm:
  • The recording used the ELF or .xe of the build that ran.
  • Function and source names resolved.
  • The dropped, resync, and errors counters are zero, or you know why they aren’t.
  • You know whether the result is the whole run or only its tail.
Label partial results as partial when you report them.

Troubleshoot

  • The event recording is empty: check the firmware’s trace instrumentation, the selected channel, and for ITM, the clock settings.
  • Hardware is busy in another workflow.: Embedder or a hardware script is using the probe. Wait for it to finish or stop it, then try again.
  • An ETM capture or coverage run fails or comes back empty: see J-Trace troubleshooting.
To line up a trace with logic, power, or scope measurements, see Combined workflows.
Last modified on November 13, 2026