How to debug by COM port

C

C.C. Wu

Hi all,
I'd like to get embedded XP debug infomation of kernel boot procedure. I
have installed Windows Debugger Version 6.5.0003.7 in a host computer, and
I boot my system from a target computer.
The target computer's boot.ini is
[boot loader]
timeout=0
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Embedded" /debug
/debugport=com1 /baudrate=115200
..

I launched WinDbg on my host computer, and executed Kernel Debug, but I can
not make host connect with target.

Microsoft (R) Windows Debugger Version 6.5.0003.7
Copyright (c) Microsoft Corporation. All rights reserved.

Opened \\.\COM1
Waiting to reconnect...


I have tested communcation between them. The host always sends 0x69 0x69
0x69 0x69 0x06 0x00 0x00 0x00...., so the COM port works normally.

Does anybody know what's going on with my embedded XP? Do I need some
components for kernel debug?

Thanks.
C.C. Wu
 
A

Andy Allred [MS]

Try reducing the baud rate to something like 57600 or 19200 in the boot.ini
and ensure the machine with winddbg is capable of the same rate.

-andy
 
C

C.C. Wu

Hi Andy,
I still can not connect with Target even if I have set the baud rate down to
19200.
I made a UART cross line because two computers' UART cannot connect
directly.
The normal UART cross line is 9 Pins, but I only used 3 lines, Tx, RX and
Ground. Do you think this is a problem?
TX <------> RX
RX<-------> TX
Ground<-------------> Ground



Thanks.
C.C. Wu

Andy Allred said:
Try reducing the baud rate to something like 57600 or 19200 in the boot.ini
and ensure the machine with winddbg is capable of the same rate.

-andy

--
Embedded team blog: http://blogs.msdn.com/embedded/

This posting is provided "AS IS" with no warranties, and confers no rights.



C.C. Wu said:
Hi all,
I'd like to get embedded XP debug infomation of kernel boot procedure. I
have installed Windows Debugger Version 6.5.0003.7 in a host computer,
and
I boot my system from a target computer.
The target computer's boot.ini is
[boot loader]
timeout=0
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Embedded" /debug
/debugport=com1 /baudrate=115200
.

I launched WinDbg on my host computer, and executed Kernel Debug, but I
can
not make host connect with target.

Microsoft (R) Windows Debugger Version 6.5.0003.7
Copyright (c) Microsoft Corporation. All rights reserved.

Opened \\.\COM1
Waiting to reconnect...


I have tested communcation between them. The host always sends 0x69 0x69
0x69 0x69 0x06 0x00 0x00 0x00...., so the COM port works normally.

Does anybody know what's going on with my embedded XP? Do I need some
components for kernel debug?

Thanks.
C.C. Wu
 
G

Guest

I found that sometimes the status line in your Kernel Debug window will
incorrectly display "Debuggee not connected" when it actually is connected.

Try repeating your test, then after a few minutes, click the "Break" button
in the toolbar, then click the "Run" button in the toolbar. When I did this,
the status line in my Kernel Debug window changed from "Debuggee not
connected" to "Debuggee is running".

HTH
Jack


C.C. Wu said:
Hi Andy,
I still can not connect with Target even if I have set the baud rate down to
19200.
I made a UART cross line because two computers' UART cannot connect
directly.
The normal UART cross line is 9 Pins, but I only used 3 lines, Tx, RX and
Ground. Do you think this is a problem?
TX <------> RX
RX<-------> TX
Ground<-------------> Ground



Thanks.
C.C. Wu

Andy Allred said:
Try reducing the baud rate to something like 57600 or 19200 in the boot.ini
and ensure the machine with winddbg is capable of the same rate.

-andy

--
Embedded team blog: http://blogs.msdn.com/embedded/

This posting is provided "AS IS" with no warranties, and confers no rights.



C.C. Wu said:
Hi all,
I'd like to get embedded XP debug infomation of kernel boot procedure. I
have installed Windows Debugger Version 6.5.0003.7 in a host computer,
and
I boot my system from a target computer.
The target computer's boot.ini is
[boot loader]
timeout=0
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Embedded" /debug
/debugport=com1 /baudrate=115200
.

I launched WinDbg on my host computer, and executed Kernel Debug, but I
can
not make host connect with target.

Microsoft (R) Windows Debugger Version 6.5.0003.7
Copyright (c) Microsoft Corporation. All rights reserved.

Opened \\.\COM1
Waiting to reconnect...


I have tested communcation between them. The host always sends 0x69 0x69
0x69 0x69 0x06 0x00 0x00 0x00...., so the COM port works normally.

Does anybody know what's going on with my embedded XP? Do I need some
components for kernel debug?

Thanks.
C.C. Wu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top