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
- Run Embedder: Open Embedder Monitor.
- Select + to open a new tab, then choose Trace or Coverage under Views.
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.- Open a Trace tab.
- Open the source settings at the left of the Trace toolbar and choose RTOS events.
- 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.
- 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.
- Select Select ELF, then select Browse… to pick the ELF that matches the running firmware, or enter its path and select Use for recording.
- Select Record.
- Reproduce the issue, then select Stop.
Record xSCOPE probes and prints
- 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.
- In the capture settings next to it, keep Capture set to xSCOPE records.
- Select Record. Select Stop when you’ve reproduced the issue.
.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. From the Trace tab:- Open the source settings at the left of the Trace toolbar and choose Instructions (ETM).
-
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 MCUinEMBEDDER.md. See J-Trace setup. - Optional: to choose the firmware, select Select ELF. Otherwise Embedder uses an ELF it finds in the project.
-
Open the capture settings in the toolbar, which show the run time and instruction count, and set the capture under Capture:
- Select Capture. The button shows Capturing… until the result opens.
/debug, then ask:
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.- In the Trace tab, open the source settings at the left of the toolbar and choose Instructions (ETM).
- 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. - Choose the firmware with Select ELF. Streaming needs the ELF up front because addresses are resolved as they arrive.
- Select Stream.
- Reproduce the issue, then select Stop to keep what was captured.
/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:-
Select ⋯ (Configure coverage run) next to Run coverage and set the run:
- Select Run coverage. The button shows Capturing… until the report opens.
/debug, then ask:
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/.
Check the evidence
Before you draw a conclusion, confirm:- The recording used the ELF or
.xeof 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.
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.