CMSIS-Pack
Version 1.6.0
Delivery Mechanism for Software Packs
|
An SDF file enables the silicon provider to describe more complex debug topologies than with a Debug Description in a tool agnostic way. Multiple debug and access ports and the setup of the different debug/trace components can be described consistently. Also, mandatory settings for a debugger can be described, such as trace signal delay settings, availability/usability of certain reset methods or timings, etc. This information is used by the debugger to access the right components that are requested by the user or application. The SDF format provides the XML elements for defining the debug system view of a device. These are "expert" settings that cannot be specified in a PDSC file.
<debugconfig>
element.Example CMSIS System Description File (*.SDF)
The XML schema file sdf_schema.xsd defines the sections used in a *.SDF file. The current sdf_schema.xsd can be found under the ARM.CMSIS.*.Pack in the .\CMSIS\Utilities-directory.
Parents | Element Chain | ||
---|---|---|---|
root | description root point for SDF | ||
Attributes | Description | Type | Use |
schemaVersion | Version of sdf_schema.xsd the description is compatible with | xs:decimal | required |
Child Elements | Description | Type | Occurrence |
/system_description/debug_and_trace_config | Description how to configure debug and trace. | complexType | 1..1 |
/system_description/platform | Overall platform description. | complexType | 1..1 |
Describes the recommended debug and trace configuration for the device.
Parents | Element Chain | ||
---|---|---|---|
system_description | /system_description | ||
Child Elements | Description | Type | Occurrence |
/system_description/debug_and_trace_config/debug | Describes the debug connection configuration | complexType | 0..1 |
/system_description/debug_and_trace_config/trace | Describes the trace configuration | complexType | 0..1 |
Describes the recommended debug configuration for the device.
Parents | Element Chain | ||
---|---|---|---|
debug_and_trace_config | /system_description/debug_and_trace_config | ||
Child Elements | Description | Type | Occurrence |
/system_description/.../config_item | Describes a configuration item attribute/value pair | xs:string | 0..* |
For a list of applicable configuration items, refer to config_item.
A config_item can appear in various SDF elements. This group contains individual configuration items.
Parents | Element Chain | ||
---|---|---|---|
debug | /system_description/debug_and_trace_config/debug | ||
trace_capture | /system_description/debug_and_trace_config/trace/trace_capture | ||
config_items | /system_description/platform/scanchain/../config_items | ||
Attributes | Description | Type | Use |
name | Name of the configuration item. | xs:string | required |
The config_items applicable to the debug element are the following:
Item | Description |
---|---|
TRSTOnConnect | Debugger should perform TAP reset on connect (True/False) - Default Value:True |
SRSTOnConnect | Debugger should perform a System reset on connect (True/False) - Default Value:False |
AllowTRST | Allow the Debugger to perform TAP reset (True/False) - Default Value:True |
DoSoftTRST | Debugger should perform a Soft Reset (True/False) - Default Value:True |
TRSTHoldTime | TAP reset hold time in milliseconds - Default Value:10 |
TRSTPostResetTime | Delay after TAP reset before next operation - Default Value:10 |
ResetHoldTime | Time in milliseconds that the target is held in a hardware reset state - Default Value:100 |
PostResetDelay | Time in milliseconds that the target will wait after reset is released before attempting any other debugging operations - Default Value:10 |
Linked_SRST_TRST | Target hardware has System Reset and TAP reset physically linked (True/False) - Default Value:False |
The config_items applicable to the device element are the following (only applicable for devices that are child elements of another device or DAP):
Item | Description | Use |
---|---|---|
CORESIGHT_BASE_ADDRESS | the 4K aligned base address of a CoreSight device | Required |
CORESIGHT_AP_INDEX | the access port index of the device | Required |
The config_items applicable to the trace element are the following:
Item | Description | Default |
---|---|---|
CLOCK_EDGE | Set to 0 or 1 to specify the clock edge on which to capture data | 1 |
DELAY_TRACE_CLOCK | Adjust the sampling point for the trace clock by the specified number of picoseconds | 0 |
DELAY_TRACE_SIGNAL_1 to DELAY_TRACE_SIGNAL_n | Adjust the sampling point for parallel trace signal 'n' by the specified number of picoseconds | 0 |
Item | Description |
---|---|
HSSTP_LANES | The number of lanes (1-6) |
HSSTP_SPEED | The HSSTP link speed (HSSTP_2_5Gbps, , HSSTP_3_0Gbps, HSSTP_3_125Gbps, HSSTP_4_25Gbps, HSSTP_5_0Gbps, HSSTP_6_0Gbps, HSSTP_6_25Gbps, HSSTP_8_0Gbps, HSSTP_10_0Gbps, HSSTP_10_3125Gbps, HSSTP_12_0Gbps, HSSTP_12_5Gbps, HSSTP_SETM_1_5Gbps, HSSTP_SETM_3_0Gbps, HSSTP_SETM_6_0Gbps) |
HSSTP_PROTOCOL | The HSSTP protocol (HSSTP_PROTOCOL_ARM_HSSTP, HSSTP_PROTOCOL_8_BIT_SETM, HSSTP_PROTOCOL_16_BIT_SETM, HSSTP_PROTOCOL_32_BIT_SETM) |
HSSTP_NDALT | Reverse byte bit-ordering (HSSTP_NDALT_Disabled/HSSTP_NDALT_Enabled) |
HSSTP_CONNECTOR | The physical connector type (HSSTP_CONNECTOR_HSSTP/HSSTP_CONNECTOR_SMA) |
HSSTP_RX_EQUALIZATION | The RX equalization type (RX_EQUALIZATION_DFE/RX_EQUALIZATION_LPM) |
HSSTP_CRC | The type of CRC to use (HSSTP_CRC_Enabled, HSSTP_CRC_Disabled, HSSTP_CRC_Reversed, HSSTP_CRC_Ignored) |
Describes the recommended trace configuration for the device.
Parents | Element Chain | ||
---|---|---|---|
debug_and_trace_config | /system_description/debug_and_trace_config | ||
Child Elements | Description | Type | Occurrence |
/system_description/debug_and_trace_config/trace/trace_capture | Describes the trace capture device | complexType | 0..* |
Describes settings for the trace capture device.
Parents | Element Chain | ||
---|---|---|---|
trace | /system_description/debug_and_trace_config/trace | ||
Child Elements | Description | Type | Occurrence |
/system_description/.../config_item | Describes a configuration item attribute/value pair | complexType | 0..* |
Attributes | Description | Type | Use |
type | Trace capture type: for example parallel or HSSTP. | xs:string | required |
Describes the platform configuration (scanchain, topology and cluster arrangement).
Parents | Element Chain | ||
---|---|---|---|
system_description | /system_description | ||
Child Elements | Description | Type | Occurrence |
/system_description/platform/scanchain | Lists all DAPs/Devices in the order that they appear on the scanchain (Note - order is reverse to DAP references in PDSC files). The first device in the scanchain is one closest to target's TDI pin. | complexType | 0..* |
/system_description/platform/topology | Describes the system topology | complexType | 0..1 |
/system_description/platform/clusters | Describes the cluster arrangement | complexType | 0..1 |
Lists all DAPs/devices in the order that they appear on the scanchain.
Parents | Element Chain | ||
---|---|---|---|
platform | /system_description/platform | ||
Child Elements | Description | Type | Occurrence |
/system_description/platform/scanchain/dap | Describes a DAP and a list of devices associated with that DAP. | complexType | 0..* |
/system_description/platform/scanchain/device | Describes a single device on the scan chain. | complexType | 0..* |
Example:
Describes a DAP and a list of devices associated with that DAP.
Parents | Element Chain | ||
---|---|---|---|
scanchain | /system_description/platform/scanchain | ||
Child Elements | Description | Type | Occurrence |
/system_description/platform/scanchain/device | List of devices associated with this DAP. | complexType | 0..* |
/system_description/platform/scanchain/../../device_info_items | Contains implementation details for the DAP. Applicable items for a DAP are "JTAG_IDCODE" (the JTAG ID code for the DAP) or "DPIDR" (the Debug Port Identification Register contents). | complexType | 0..* |
/system_description/platform/scanchain/../../config_items | Configuration items specific to a DAP type. | complexType | 0..* |
Attributes | Description | Type | Use |
name | Unique name of the DAP. | xs:string | required |
type | Specifies the type of the DAP (e.g. ARMCS-DP). | xs:string | required |
irLength | Specifies the IR length of the DAP (default value: 4). | xs:string | optional |
protocol | Colon delimited list of protocols via which the DAP can be use. Possible values are SWD, JTAG, and cJTAG. | xs:string | optional |
targetsel | Specifies the SW-DPv2 TARGETSEL register value that selects this DAP in a serial-wire debug multi-drop system. | xs:string | optional |
Example:
Parents | Element Chain | ||
---|---|---|---|
scanchain | /system_description/platform/scanchain | ||
dap | /system_description/platform/scanchain/dap | ||
Child Elements | Description | Type | Occurrence |
/system_description/platform/scanchain/device | Describes a single nested device associated with this device. | complexType | 0..* |
/system_description/platform/scanchain/../../device_info_items | Describes a sequence of device information items. | complexType | 0..* |
/system_description/platform/scanchain/../../config_items | Configuration items specific to this device. | complexType | 0..* |
Attributes | Description | Type | Use |
name | Unique name of the device. | xs:string | required |
type | Specifies the device type (see below). | xs:string | required |
irLength | Specifies the IR length of the device (default value: 4). | xs:string | optional |
Depending on the context, a device type can be one of the following types:
Example:
The configuration items are specific to the device type or DAP. Refer to /system_description/.../config_item for a list of applicable device information items and a code example.
Parents | Element Chain | ||
---|---|---|---|
device | /system_description/platform/../device | ||
dap | /system_description/platform/scanchain/dap | ||
Child Elements | Description | Type | Occurrence |
/system_description/.../config_item | Describes a configuration item. | complexType | 0..* |
The device information items are specific to the type of device or DAP and describe implementation specific details. Refer to /system_description/platform/scanchain/../../device_info_items/device_info_item for a list of applicable device information items and a code example.
Parents | Element Chain | ||
---|---|---|---|
device | /system_description/platform/../device | ||
dap | /system_description/platform/scanchain/dap | ||
Child Elements | Description | Type | Occurrence |
/system_description/platform/scanchain/../../device_info_items/device_info_item | Describes a sequence of device information items. | xs:string | 0..* |
Describes implementation specific details of the specified device or DAP.
Parents | Element Chain | ||
---|---|---|---|
device_info_items | /system_description/platform/../../device_info_items | ||
Attributes | Description | Type | Use |
name | Unique name for the device information item. | xs:string | required |
The following device information items are applicable for each type of "device":
Device | Device Information Item | Description |
---|---|---|
CSMEMAP | AP_TYPE | Access port type is one of AHB-AP, APB-AP-M, APB-AP and AXI-AP |
ROM_TABLE_BASE_ADDRESS | The ROM table base address (in hex) | |
CSETM | VERSION | The ETM Version (e.g. 4.0 - required) |
SUPPORTS_CONTEXT_IDS | Supports Context ID Tracing (True/False - Default Value:False) | |
SUPPORTS_VIRTUAL_CONTEXT_IDS | Supports Virtual Context ID Tracing (True/False - Default Value:False) | |
SUPPORTS_CYCLE_ACCURATE | Supports Cycle Accurate Trace (True/False - Default Value:False) | |
SUPPORTS_DATA_VALUE_TRACE | Supports Data Value Trace (True/False - Default Value:False) | |
SUPPORTS_DATA_ADDRESS_TRACE | Supports Data Address Trace (True/False - Default Value:False) | |
SUPPORTS_DATA_ONLY_MODE | Supports Data Only Trace Mode (True/False - Default Value:False) | |
SUPPORTS_TIMESTAMPS | Supports Timestamps(True/False - Default Value:False) | |
SUPPORTS_TRACE_RANGES | Supports Trace Ranges (True/False - Default Value:False) | |
SUPPORTS_BRANCH_BROADCAST | Supports Branch Broadcasting (True/False - Default Value:False) | |
SUPPORTS_CONDITIONAL_INSTRUCTIONS | Supports tracing conditional non-branch instruction (True/False - Default Value:False) | |
SUPPORTS_Q_ELEMENTS | Supports Q Elements (True/False - Default Value:False) | |
CSMTB | RAM_SIZE_BYTES | MTB SRAM buffer size in bytes |
SUPPORTS_USER_PRIV | User/Privileged support present | |
CSTPM | VERSION | The PTM Version (eg 1.1) - Required |
SUPPORTS_VMID | VMID Tracing support (True/False - Default Value:False) | |
SUPPORTS_CONTEXT_IDS | Context ID Tracing support (True/False - Default Value:False) | |
SUPPORTS_RETURN_STACK | Return stack support (True/False - Default Value:False) | |
SUPPORTS_CYCLE_ACCURATE | Cycle Accurate trace support (True/False - Default Value:False) | |
SUPPORTS_BRANCH_BROADCAST | Supports Branch Broadcasting (True/False - Default Value:False) | |
SUPPORTS_TIMESTAMPS | Supports Timestamping (True/False - Default Value:False) | |
SUPPORTS_FIFOFULL | Supports FIFOFULL (True/False - Default Value:False) | |
CSTMC | CONFIG_TYPE | The TMC device configuration can be one of (ETR, ETF or ETB) - required |
RAM_SIZE_BYTES | The SRAM memory size used in ETF and ETR configurations (512 Bytes to 4 GiB) - Default: 512 Bytes | |
CSTPIU | SUPPORTED_PORT_SIZES | Semicolon separated list of supported port sizes (in bits) - required |
ARCHITECTURE | The TPIU variant is one of (Coresight, TPIU-Lite, V7-M or V8-M) - Required |
Example:
Describes the system topology.
Parents | Element Chain | ||
---|---|---|---|
platform | /system_description/platform | ||
Child Elements | Description | Type | Occurrence |
/system_description/platform/topology/topology_link | Describes how CoreSight devices and cores are connected. | complexType | 0..* |
Example:
Describes how CoreSight devices and cores are connected.
Parents | Element Chain | ||
---|---|---|---|
topology | /system_description/platform/topology | ||
Attributes | Description | Type | Use |
name | Unique name for the link. | xs:string | optional |
type | Specifies the link type. Can be on of the following: ATB, CoreTrace, or CTITrigger. | xs:string | required |
master | Unique name of the master device in the link. | xs:string | required |
slave | Unique name of the slave device in the link. | xs:string | required |
mater_interface | Specifies the mater interface number. | xs:string | optional |
slave_interface | Specifies the slave interface number. | xs:string | optional |
trigger | Specifies the trigger number. | xs:string | optional |
Example:
A complete set of links for a Cortex-A7 implementation with ETM and TPIU might look like this:
Describes the cluster arrangement.
Parents | Element Chain | ||
---|---|---|---|
platform | /system_description/platform | ||
Child Elements | Description | Type | Occurrence |
/system_description/platform/clusters/cluster | Lists the devices that make up the cluster and a unique name for the cluster. | complexType | 0..* |
Lists the devices that make up the cluster.
Parents | Element Chain | ||
---|---|---|---|
clusters | /system_description/platform/clusters | ||
Attributes | Description | Type | Use |
name | Unique name for the cluster (for example Cortex-A15_SMP_0). | xs:string | required |
devices | Colon separated list of named devices in the cluster, for example "Cortex-A15_0:Cortex-A15_1:Cortex-A15_2:Cortex-A15_3". | xs:string | required |