ARM Technical Support Knowledge Articles

TRACE DATA LOST OR WRONG

Applies to: ULINK USB-JTAG Debugger

Answer


Information in this article applies to:


SYMPTOM

Trace data is lost or wrong when using Serial-Wire Realtime Trace on a Cortex-M3 based device and Trace: Communication Error is displayed in µVision Status Bar.

CAUSE

The main reason for wrong or lost trace data or Trace Communication Error is a misconfigured Core Clock under Cortex-M Target Driver Setup. The Core Clock must be the same as the CPU clock to get correct time values in the µVision Status Bar and register window. It is also essential to get correct trace information over Serial-Wire Output (SWO) when Trace Enable is selected.

RESOLUTION

Configure Core Clock under Cortex-M Target Driver Setup with the correct value. The value is related to the CPU clock. For example if the CPU runs at 72 MHz then the Core Clock must also be set to 72 MHz. When Trace is configured correctly, then Trace: Running ..." is displayed in µVision Status Bar during Target Debug Session.

Core Clock corresponds to the VTReg CORE_CLK. Within a Target Debug Session it is possible to adjust the Core Clock by changing the value of VTReg CORE_CLK. This can also be done in a debugger script.

MORE INFORMATION

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2008-11-25 07:48:27

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential