This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Debugging using serial port


Hi All,

We tried to debug an application thru the serial cable. We connected our
i386-pc target's COM1 to our Linux host's COM1(/dev/ttyS0).

We have used i386-elf-gdb. We ran the commands:
(gdb) set remotebaud 38400
(gdb) target remote /dev/ttyS0

Remote debugging using /dev/ttyS0
Remote packet too long: ..  |
Ethernet recv:
000246FC: FF FF FF FF FF FF 00 09  6B C4 05 FE 08 00        |........k.....
|
Ethernet recv:
000234CC: FF FF FF FF FF FF 00 D0  B7 40 58 D9 08 00        | dot  dot  dot  dot  dot  dot  dot  dot  dot  at X dot  dot  dot 
|
Ethernet recv:
00023ADC: FF FF FF FF FF FF 00 50  8B B1 DD 76 08 06        |.......P...v..
|
Ethernet recv:
000240EC: FF FF FF FF FF FF 00 D0  B7 84 1F CF 08 00        |..............
|
Etherne
Remote packet too long: ..  |
Ethernet recv:
00023ADC: FF FF FF FF FF FF 00 50  8B FC AB 00 08 06        |.......P......
|
Ethernet recv:
000240EC: FF FF FF FF FF FF 00 02  A5 36 98 F5 08 00        |.........6....
|
---Type <return> to continue, or q <return> to quit---

When we use - 
set remote debug 1, I get the following output...
Sending packet: $Hc-1#09...Sending packet:  $Hc-1#09...Sending packet:
$Hc-1#09..  Sending packet: $Hc-1#09...Timed out. Timed out. Timed out.
Ignoring packet error, continuing... Sending packet: $qC#b4...Sending packet:
$qC#b4...Sending packet: $qC#b4...Sendi  ng packet: $qC#b4...Timed out. Timed
out. Timed out. 
Please help us out to enable serial debugging using redboot.

Thanx,
Nikhil




DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return  e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.  Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.

--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]