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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | No | ||
| timestamps | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |