.ccxml target configuration for it, either from TI or from your project. Which devices and probes work depends on what your CCS installation supports, and Embedder hasn’t been tested with every TI device and probe combination, so check readiness before you rely on a new setup.
- C2000 (C28x): Embedder can generate the
.ccxmlfor qualified C28x devices, so the TI device name is enough. - Other targets, such as Sitara and MSP430: supply a TI-authored
.ccxml. On a multicore device, such as the Sitara AM2634, you also choose the core.
Supported probes
Modern scripting is the scripting interface in CCS 20 and later. Legacy scripting is the Debug Server Scripting (DSS) in earlier versions, such as CCS 12, and it has a smaller feature set.
Give the value as
Debug Interface in EMBEDDER.md, as probe in a script, or name the probe in your request. If your .ccxml names a probe, Embedder uses that probe. Other TI connections named in a .ccxml are kept as written. If no probe is named anywhere, Embedder uses XDS110. Embedder detects connected XDS110 and XDS100 probes with the utilities in your CCS installation.
Prepare CCS
- Install CCS with its scripting support, target database, and drivers for your probe and device.
- Connect and power the target. Close any CCS IDE debug session that owns the probe, because Embedder opens its own connection.
- Build a debug artifact that CCS can load, such as an ELF-format
.outfile, with matching symbols. - Identify the TI target configuration (
.ccxml) for the board. For C28x, the TI device name is enough. For a multicore device, note the core you want from that configuration, such asCortex_R5_0. - Run
/debugand ask Embedder to check the installation, probe version, target configuration, and device before connecting.
If CCS is installed somewhere else, set
EMBEDDER_CCS_ROOT to the CCS folder that contains ccs_base and scripting, in the environment that launches Embedder. You can also give the folder in your request.
Choose the target configuration
Embedder resolves the probe, device, and.ccxml from, in order of priority:
- Values you give in your request.
- The project’s saved CCS configuration in
.embedder/ccs.json. Debug InterfaceandTarget MCUin EMBEDDER.md.
.ccxml is given, Embedder searches the project, .embedder/targetConfigs/, and ~/ti for one that matches the probe and device. If several match, Embedder lists them so you can choose one. If none match and the device is a qualified C28x device, it generates one at .embedder/targetConfigs/<probe>-<device>.ccxml.
For any other target, give the board’s TI-authored .ccxml, such as the one from the TI SDK or your CCS project. Prefer it for multicore boards and boards that need GEL initialization. Embedder also can’t generate a configuration for XDS100v1 with C28x devices that use ICEPick routing or a CLA.
Embedder saves the resolved setup in .embedder/ccs.json and reuses it. If you change boards or probes, give the new device, probe, and .ccxml explicitly, or delete .embedder/ccs.json to start discovery again.
Program and debug
main. Starting a CCS session closes any open J-Link, OpenOCD, or XMOS debugger session.
Once connected, you can ask for:
- Breakpoints, run, and interrupt.
- Step, step over, and step out.
- Register and memory reads.
- Expression evaluation.
- Resets offered by the target.
- The call stack, with modern CCS scripting only. Frames don’t include local variables; evaluate an expression to read a variable.
Script the connection
For a repeatable check, save a hardware script under.embedder/hardware/:
persistent=True.
For a multicore Sitara target, pass the board’s .ccxml and the core:
gdb.ccs_connect() again with the same configuration and that core, then pass the core ID to later calls. After connecting, you can use the shared debugger helpers.
Keep a session open between scripts
By default, each script opens and closes its own CCS connection. Passpersistent=True on the first gdb.ccs_connect() call to keep the session open, then use gdb.* helpers in later scripts without reconnecting. Embedder holds the hardware for that chat while the session is open.
The session ends when you call gdb.disconnect(), after five minutes without debugger operations, or when the chat or Embedder closes. Breakpoints still belong to the script that set them and are cleared when it exits.
gdb.disconnect() takes a policy: preserve requests no change, resume leaves the target running, and halt leaves it halted. TI disconnect and GEL behavior can still affect the target.
Attach to existing firmware
For firmware already on the board, ask for attach-only with the matching artifact. Embedder loads symbols without loading the program, then halts the target. Ask for no-halt as well to skip that halt. Attach-only opens a new private connection. It doesn’t join a CCS IDE session. The TI connection sequence and GEL initialization can still affect execution. CCS handles no-halt on a programming connection differently from J-Link and OpenOCD: it loads the program, then starts execution. Don’t use no-halt as a substitute for attach-only.Read memory
On C28x, memory addresses are target word addresses, and read sizes are in bytes. Each 16-bit word is returned low byte first, and the result is trimmed to the byte count you asked for. Byte reads withgdb.read_memory() are qualified for C28x only. On other TI cores, use gdb.read_memory_elements() with an explicit bit_size, and a page from gdb.memory_pages() where the core needs one.
Troubleshoot
- No compatible CCS installation found: repair the CCS installation so its scripting support, probe connection files, drivers, and device definitions for your target are present, or set
EMBEDDER_CCS_ROOT. - Probe is owned by another session: close the CCS IDE debug session that uses the probe, then connect again.
- Several cores are configured: pass
corewith one of the core names the error lists. - Generic XDS100 is ambiguous: specify
xds100v1,xds100v2, orxds100v3, or supply the matching.ccxml. - Multiple target configurations match: give the intended
.ccxmlexplicitly. - Configuration conflicts with the requested device or probe: use the correct TI configuration instead of forcing mismatched values.
- A CCS device is required: give the device name, or set
Target MCUinEMBEDDER.md. - Automatic target configuration is unavailable: supply a TI-authored
.ccxml. Embedder generates one only for qualified C28x devices. - Stack query is unsupported: the session uses legacy CCS scripting. Use register, memory, and expression queries, or a modern CCS setup.