Serial Debugging

Hi,
I am having problem trying to debug a embedded system(On intel platform)
through serial port.I have checked the Cable.I have set the baud rates at
both the target and Host to 57600 baud.The following is what i am doing.

  1. On target machine

pdebug -v /dev/ser1,57600 &

  1. On host machine
    #gdb
    (gdb) target qnx /dev/ser1
    (The Host machine has serial port set to 57600 baud)
    At this point i get messages like
    " Timeout in midpacket -retrying.
    : MsgNak received - resending"
    It continues for three times and then quits.

Can somebody tell me if anything is missing from the following steps to
achieve Remote debugging over a serial line

Any help is greatly appreciated.

Sreekanth

Hi Sreekanth,

Your baud rate is too high, try it at 9600 first and go up gradually.

Tien N.

“Sreekanth” <sreekanth@cambira.com> wrote in message
news:acgph9$8op$1@inn.qnx.com

Hi,
I am having problem trying to debug a embedded system(On intel
platform)
through serial port.I have checked the Cable.I have set the baud rates at
both the target and Host to 57600 baud.The following is what i am doing.

  1. On target machine

pdebug -v /dev/ser1,57600 &

  1. On host machine
    #gdb
    (gdb) target qnx /dev/ser1
    (The Host machine has serial port set to 57600 baud)
    At this point i get messages like
    " Timeout in midpacket -retrying.
    : MsgNak received - resending"
    It continues for three times and then quits.

Can somebody tell me if anything is missing from the following steps to
achieve Remote debugging over a serial line

Any help is greatly appreciated.

Sreekanth