trace_start
Configure and start on-chip trace recording with MCDS. Enable instruction flow, data read/write addresses, and values, with optional timestamps for debugging.
Instructions
Start on-chip trace recording using MCDS.
Configures and starts the MCDS trace engine. Must be called before running the target. Call trace_stop() and trace_list() after the target halts.
Args: sources: List of trace sources to enable. Supported values: "program" — instruction flow (PC trace) "write_addr" — data write addresses "write_data" — data write values "read_addr" — data read addresses "read_data" — data read values Default: ["program"] timestamps: Enable trace timestamps (default: True)
Returns: Confirmation of trace configuration
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "trace_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | No | ||
| timestamps | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |