beautypg.com

Connecting an external debug monitor – Rockwell Automation 6182 SDK User Manual

Page 101

background image

Appendix A

A–3

Publication 6182-UM002B-EN-P

The RAC6182 provides support for an external debug monitor connected
at the second serial port.

A debug monitor can be very useful for Windows CE operating system
developers, since it can capture debug messages emitted by the operating
system by way of a serial port, even before all Windows CE services,
including display services, are operational.

Application developers can also make use of these facilities, provided
their programs written to produce debug output via the NKDbgPrintfW()
function described elsewhere in this manual.

In order to cause the operating system to direct debug information
emitted via this function to the second serial port, it is necessary to
perform either one of the following setups:

Set the debug jumper associated with the boot ROM on the system

circuit board

Set the system debug flag (by means of a program that calls the

system function rm_SetParameter)

Once the system has been set up to use COM2 as the debug port, it is
necessary to connect an external debug monitor to this port. Any display
device with a serial interface can be used as a monitor. However, the
most common choice will be a desktop computer running Windows and
a Windows communications application such as Hyperterminal.

The RAC6182 should be connected to the debug monitor using a null
modem cable. (But note that it might be necessary to install a jumper at
the serial port connector that attaches to the RAC6182.)

The monitor device should be set up for serial communications as
follows:

57,600 Baud

8 Data Bits

No Parity

1 Stop Bit

Hardware Flow Control

Connecting an External

Debug Monitor

This manual is related to the following products: