xcore.ai entry for other xcore.ai hardware. Embedder then runs, flashes, simulates, and debugs your application with XMOS XTC Tools and reads its output over xSCOPE.
Check the project setup picker for current availability. Flashing and debugging also depend on your xTAG, its connection to the board, and your installed XTC Tools.
Prepare your project and tools
- Install XMOS XTC Tools. Embedder finds them on your
PATH, throughXMOS_TOOL_PATH, or in the standard install folder. For another location, see Where Embedder finds XTC Tools. - For hardware, connect the xTAG (or the board’s integrated xTAG) and power the board. To run without a board, use the xsim simulator.
- In
EMBEDDER.md, setDebug Interface = xgdband record your build command. See Configure EMBEDDER.md. - Put the application, target, and other XMOS settings in
.embedder/xmos.json.
Choose a workflow
- xSCOPE for console output, probes, and host input.
- XMOS debugging for xTAG and xgdb sessions.
- XMOS xsim for simulation, virtual pins, and instruction traces.
- Flashing firmware for programming and boot checks.
- The XMOS migration guide for porting a SigmaStudio DSP project or other firmware with Migration mode.
Catalog platforms
Board-specific skills
When the project’s platform matches a board below, Embedder loads that board’s reference skill. It covers the physical board: pinout, power, clocks, peripherals, boot, and xTAG connections. The genericxcore.ai entry has no board skill. If your board isn’t in the picker, see board-skill setup.
Every XMOS project also gets the general xmos skill. In Debug mode, Embedder adds debug-xmos when XTC Tools are installed and either an xTAG is attached or .embedder/xmos.json sets "target": "simulator".
Each skill names the board revision it describes. Check the PCB marking before you rely on a connector table. Boards that share a package or firmware family aren’t automatically interchangeable.
For work on DSP storage layouts, shared buffers or memory pools, scratch-buffer reuse, or channel and phase counts, Embedder loads the
xmos-shared-memory skill when it’s needed. It also applies when data corrupts after a memory or assembly optimization, or when failures vary with channel or thread count. The skill covers byte-level capacity, ownership and lifetime, publication and reuse, cross-core synchronization, and boundary checks. It loads automatically in Migration mode. Name it in chat to use it directly:
Configure .embedder/xmos.json
Keep all XMOS project settings in .embedder/xmos.json at the project root. Every field is optional, and a missing file means the defaults. The file must be plain JSON, with no comments:
.embedder/xmos.json
Selections you make in the Monitor’s XMOS controls, such as the port and App (.xe), are saved to this file. An explicit
.xe in a request or script takes precedence over xe.
If the file contains an unknown field or an invalid value, Embedder ignores the whole file and uses the defaults. Check the field names and values when your settings don’t seem to apply.
Embedder doesn’t read XMOS settings such as xmos_xe, xscope_*, xmos_adapter_id, or xmos_sim from EMBEDDER.md; only Debug Interface = xgdb belongs there. If Embedder finds those keys, it shows a notice asking you to move them to .embedder/xmos.json.
Hardware or simulator
Every XMOS request picks the target the same way:- A target or adapter you name in the request or script, such as
simulator=Trueor an adapter ID. targetandadapterIdin.embedder/xmos.json, including selections saved from the Monitor.- Automatic detection: exactly one usable xTAG selects hardware.
- Several xTAGs attached and no
adapterIdset: the request fails and lists the adapter IDs. - No xTAG attached and no simulator choice: the request fails and suggests plugging in an xTAG, setting
"target": "simulator", or passingsimulator=True. - XTC Tools missing: the request fails and points you to the XTC Tools download page.
"target": "simulator" uses the simulator even when an xTAG is attached.
Profile a session
Profile a debug or simulator session to see where your application spends its time. Embedder records xgprof data from the moment the session starts until you stop the profile, then reports it by function, source line, or address. Hardware sessions produce sampled xgprof data. Simulator sessions produce execution counts. Don’t compare the two as equivalent numbers. Turn profiling on withprofile=True when you start the session from a hardware script, with gdb.xmos_connect(...) or xsim.start(...). Close any XMOS debug session or simulation that’s already running first. Otherwise the request fails with Close the existing XMOS session before enabling profiling or Close the existing simulator before enabling profiling.
.embedder/hardware/profile_bench.py
Use the
xsim.* helpers for a simulation started with xsim.start(), and the gdb.* helpers for a session started with gdb.xmos_connect(). A profile belongs to the script that started it, and Embedder stops it when that script ends.
Reports have one row per tile and logical core, in xgprof’s units. A missing value means the data isn’t available, not zero. If part of the capture fails, the profile is marked incomplete, and the reports it did capture are still readable.
Embedder keeps each profile in .embedder/artifacts/xmos-profiles/<profile_id>/, with its own copy of the .xe and the raw xgprof output, so its reports stay readable after you rebuild.
The profile covers startup as well as your workload, so use a fixed, repeatable workload for before-and-after comparisons. Keep the input, iteration count, target, clocks, optimization, and dependency revisions the same across runs.
Migrate to XMOS
Migration mode ports an existing design to the XMOS board selected for your project. Use it for a SigmaStudio DSP project (.dspproj), or for MCU, DSP, FPGA, or older XMOS firmware. It appears in projects that target an XMOS platform.
See the XMOS migration guide for how to start a migration, the export files to provide, how to read the converted design, and the migration’s limits.