ARM Technical Support Knowledge Articles

STRANGE DATA RECEIVED SHARING THE SERIAL P

Applies to: uVision Debugger

Answer


Information in this article applies to:


QUESTION

I'v successfully configured the monitor for my target hardware and have my target program running. However, I'm having trouble getting the correct data from the target's serial port. I am typing characters in the serial window. My target program reads these and stores them in a queue. When I look at the queue, I have many extraneous characters mixed in with the characters I typed. Is the monitor interferring with the serial port? If so, how do I correct it?

ANSWER

The debugger communicates with the target monitor using the serial port. This is how your programs get downloaded and single-steps are performed. However, the monitor communication uses a protocol that avoids interfering with your code. So you should be able to share the serial port with the debugger.

To see if the monitor is the culprit, follow these steps:

  1. Load the monitor.
  2. Run your program.
  3. Enter all your data in the serial window.
  4. Wait for the data to get processed by your target hardware.
  5. Stop program execution and look at the data buffer.

There should be no problems with the data (assuming the problem was caused by the monitor).

If you still see strange characters, there must be a problem with your program.

SEE ALSO

Article last edited on: 2004-06-29 10:28:58

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