.xe application running on an xTAG or in the xsim simulator. Choose the application and target, then connect a Serial Monitor tab or ask Embedder to capture the output.
Prepare the target
- Install XMOS XTC Tools on the computer running Embedder. Launch Embedder from the XTC tools environment, or set
EMBEDDER_XTC_PATHto the XTC installation. - Build the
.xewith xSCOPE support. - For hardware, connect and power the board and its xTAG. For a simulated run, you don’t need to connect anything.
.embedder/xmos.json. Merge these fields into the file if it already exists:
.embedder/xmos.json
Embedder ignores older XMOS settings in
EMBEDDER.md, such as xmos_xe. If any remain, the Monitor shows a notice asking you to move them to .embedder/xmos.json.
Start a monitored run
- Open a Serial Monitor tab. See Open a Serial Monitor tab.
- Select the Port for your target:
- XMOS xTAG followed by an adapter ID, for that xTAG.
- XMOS xSCOPE, when Embedder detects XMOS hardware but can’t list its adapters.
- XMOS xsim (simulator), for a simulated run. It appears for XMOS projects when xsim is available.
- In App (.xe), keep Auto-detect or choose a build. The Monitor saves your choice as
xein.embedder/xmos.json. - Select Connect.
.xe that ran and whether it loaded that image or joined a session that was already running. On hardware, the image runs from RAM and doesn’t survive a power cycle or reset. To keep it, program it to boot flash; see XMOS debugging.
Confirm the selected application, the hardware or simulator target, and the expected startup output before you interpret the result. Simulator output is evidence about the simulated run, not the connected board.
Reconnect after agent commands
Before Embedder runs a shell command, including a build, it disconnects the Monitor’s xSCOPE connections. It does the same before it flashes, starts a debugger server, or runs a hardware script. The Monitor tab showsxSCOPE monitoring stopped. Reconnect explicitly after the command finishes.
- Output already captured stays in the Monitor history.
- On hardware, the program keeps running without being observed. A simulated run stops.
- You can’t reconnect until the command and its cleanup finish. That includes background shell commands and any processes they leave running. An early attempt shows
xSCOPE Monitor is suspended while shell commands or hardware cleanup are running. Reconnect after they finish. - Embedder doesn’t reconnect the Monitor for you. The exception is xSCOPE output that Embedder captures itself, such as boot output after a flash. The Monitor joins that session once any hardware commands finish.
- Trace recordings that share the xSCOPE connection stay connected during these commands.
.xe at the same path, the new session runs the new build. If you changed xe in .embedder/xmos.json since that load, the new session runs the configured .xe instead.
.xe execution controls.
Record probes and prints in Trace
An xSCOPE event recording captures values from the firmware’s registered probes and its xSCOPE prints. Use the matching.xe and select hardware or the simulator explicitly. To share a Monitor connection with the recording, set "xscope": true before you connect it.
Send supported input
Host input needs all of the following:"xscope": truein.embedder/xmos.json.- A connection started in realtime xSCOPE mode.
- Firmware built with xSCOPE that receives input through
xscope_data_from_host.
.xe again, or give it a reset command.
Read an existing run
Troubleshoot
xrun was not found: install XTC Tools, launch Embedder from the XTC tools environment, or setEMBEDDER_XTC_PATHto the XTC installation.XMOS xSCOPE requires an .xe artifactorXMOS .xe not found: rebuild, checkxein.embedder/xmos.json, and confirm the App (.xe) selection.Several xTAGs found: select the port for the intended xTAG, or setadapterIdin.embedder/xmos.json.- xTAG port shows
(in use),(no target), or(invalid firmware): XTC Tools reports that state for the xTAG. Close the program that’s using it, connect and power the target, or check the xTAG with the XTC Tools. No xTAG found: plug in the xTAG, or set"target": "simulator"for a simulated run.- A debugger session holds the xTAG: stop the debugger server before loading a different
.xe, or load the image through the debugger. - Monitor shows
xSCOPE monitoring stopped: an agent command suspended the connection. Wait for the command and its cleanup to finish, then reconnect. - Input unavailable: check
"xscope": true, the realtime connection, and the firmware’sxscope_data_from_hostreceiver. - No output: confirm that the selected build enables xSCOPE and reaches its logging code.
- Settings in
.embedder/xmos.jsonare ignored: check that the file is valid JSON and uses only supported fields. Embedder ignores the whole file if it can’t read it.