.dspproj) and with MCU, DSP, FPGA, or older XMOS firmware. Embedder converts the source into a text design you can review, plans the port with you, and implements the plan after you approve it.
Migration mode appears only when the selected project’s platform is an XMOS board or xcore device. Select the target board’s project before you start. See XMOS.
Prerequisites
- An Embedder project whose platform is the target XMOS board.
- For building and running the port: XMOS XTC Tools and the project’s
.embedder/xmos.json, set up as in Prepare your project and tools. - For a SigmaStudio port: the
.dspprojfile and, ideally, its exported system files. See Export files from SigmaStudio. - Optionally, the original product’s project folder: host code, tests, audio recordings, and schematics.
.ssprj) projects aren’t supported.
Export files from SigmaStudio
In SigmaStudio, choose Action → Export System Files. You don’t need the board attached to export. Provide these files with the.dspproj:
Embedder finds exports named after the project next to the
.dspproj, in its Export/ folder, or anywhere in the project folder you provide. The other export files (_IC_<n>.h, _REG.h, .hex, .dat, E2Prom) repeat this data, so Embedder skips them.
Start a migration
- VS Code
- Terminal UI
- Choose Migration from the mode menu beside the chat input, or enter
/migration. You can also pressShift+Tabuntil the Migrate to XMOS dialog opens. - Under Migrating from, choose a source:
- SigmaStudio project: under Project file, choose the
.dspproj. Exports Embedder finds are listed below it. Use Add export files to add others, or remove any you don’t want. To include host code, tests, recordings, or more exports, choose a folder under Project folder (optional). Embedder reads the folder where it is and doesn’t copy it. - Something else: choose a Source type, such as Older XMOS (XS1/XS2), MCU firmware (STM32, NXP, ESP32…), DSP processor code, USB audio bridge, or FPGA / CPLD. Then choose the Source folder, enter a Description of what the firmware does and what must carry over, or both.
- SigmaStudio project: under Project file, choose the
- Review the preview. For a SigmaStudio project, it shows the block count, inputs and outputs, sample rate, blocks that need custom code, and any warnings about the files you chose. For another source with a folder, it summarizes the folder.
- For a SigmaStudio project, optionally add Notes for the agent (optional).
- Select Start migration plan, or press
Cmd+Enter(macOS) orCtrl+Enter(Windows and Linux).
Esc to close the dialog and keep the current mode.You can also pass a path to /migration in the VS Code chat to start without the dialog.- Converts the source into a folder under
.embedder/migration/, named after the project file, the source folder, or the source type. Once the dialog has read the source, it shows the exact location. - Switches the chat to Migration mode.
- Loads the
xmos-migrationandxmos-shared-memoryskills and your board’s XMOS skills. A SigmaStudio migration also loadssigmastudio-migrationandxmos-audio-dsp. - Posts a start message that summarizes the source, the target board, and the converted design.
If the source can’t be read
In VS Code, the dialog shows the problem next to the file or folder. In the terminal UI,/migration reports the problem instead of starting. The table uses the dialog’s wording.
Review the converted design
A SigmaStudio migration folder contains:
A migration from another source writes only a
README.md, with your description and a survey of the source folder.
design.txt replaces the binary .dspproj as the source of truth for the migration. It lists the device and sample rate, I/O cells, every block, its parameters, and the wires between blocks. Values that contain spaces are quoted. Each block carries an xmos= status that says how it maps to XMOS:
design.txt and data/ into the XMOS app, so parameter scripts and reference models build from files in your repository.
Warnings in design.txt
Problems appear as issue records. Two depend on the export files:
stale_export: a setting differs between the saved.dspprojand its exports. Embedder asks which version the product ships instead of picking one. If the project is the current version, re-export from SigmaStudio.missing_internals: an ADI fixed-function block keeps values that the.dspprojnever stores, and the export files don’t supply them. Affected blocks include DC block, level detectors, band analyzers, signal detect, dynamic bass, Super Bass, Phat Stereo, curve-table compressors, slewed mutes, and oscillators. Provide the export folder to resolve it. Otherwise, Embedder designs the block from ADI’s documentation, reports it as an approximation, and checks it against recordings of the original hardware when you have them.
export_mismatch).
Plan, approve, and implement
Until you approve the plan, Migration mode works like Plan mode: Embedder reads the project and writes only the plan. It studies the design and the board, then asks only what the files can’t answer: I/O mapping, sample rate and latency, which controls stay tunable, and how to handle each approximate or unsupported block. The plan covers the feature map, architecture and cycle budget, test steps, and risks. Answer in chat when Embedder asks, or add your decisions up front:Build, run, and verify
When the implementation finishes, run the plan’s test steps and compare the results with the original design:
A simulator run doesn’t show real-time I/O timing, so repeat timing checks on the board. For tool setup and target selection, see XMOS. For general porting practice, see Platform migrations.