ARM Technical Support Knowledge Articles

SINGLE-STEP AND TRACE

Applies to: MON251 Target Monitor

Answer


Information in this article applies to:


QUESTION

We are trying to use Mon251 V2 on our design with an 80C251G1D-16BI. We generated a ROM monitor at adress 01E800h. The ROM monitor starts running well. When we are in "Record trace" mode, "step by step" and "break point" all work as expected but execution time is too slow.

When "record trace" is off, execution speed is correct but we can't activate the "step by step" and break point" functions.

Is this normal?

ANSWER

Yes and No...

The reason that the trace is slow is because the monitor has to send 20 bytes of information to the PC for each instruction that is executed. At 9600 baud (1000 cps approx.) that is only 50 instructions per second. That's pretty slow!!!

Single-step and break-points work whether or not trace is enabled. If you can't single-step, something else must be wrong. Make sure you don't try to step over instructions that modify the stack pointer (since the monitor uses the stack, too).

You may want to check the configuration to ensure that serial break is enabled. That lets you stop execution by clicking on the STOP button.

Article last edited on: 2005-11-16 15:48:57

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