2010-02-23 07:07:19     gdbproxy connection fails

Document created by Aaronwu Employee on Sep 26, 2013
Version 1Show Document
  • View in full screen mode

2010-02-23 07:07:19     gdbproxy connection fails

Kaustubh Vaidya (INDIA)

Message: 86376   

 

hello,

 

By referring http://docs.blackfin.uclinux.org/doku.php?id=toolchain:debug:gdbproxy this document I am trying to connect my blackfin board to host PC through gdbproxy .But following error occurs,

 

kunal@localhost u-boot-1.1.6-2008R1.5]# bfin-uclinux-gdb

GNU gdb 6.6

Copyright (C) 2006 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for details.

This GDB was configured as "--host=i686-pc-linux-gnu --target=bfin-uclinux".

(gdb) target remote :2000

Remote debugging using :2000

Remote communication error: Connection reset by peer.

(gdb)

 

what is getting wrong can any body guide me?

 

Thank You.

QuoteReplyEditDelete

 

 

2010-02-23 08:03:29     Re: gdbproxy connection fails

Mike Frysinger (UNITED STATES)

Message: 86378   

 

you need to look at the output from gdbproxy itself.  the output from gdb isnt terribly useful.

QuoteReplyEditDelete

 

 

2010-02-24 08:30:31     Re: gdbproxy connection fails

Kaustubh Vaidya (INDIA)

Message: 86458   

 

Whenever I try to connect through gdbproxy it works fine,

 

[root@localhost bin]# ./bfin-gdbproxy bfin --connect='cable igloo parallel 0x378'

 

Remote proxy for GDB, v0.7.2, Copyright (C) 1999 Quality Quorum Inc.

MSP430 adaption Copyright (C) 2002 Chris Liechti and Steve Underwood

Blackfin adaption Copyright (C) 2008 Analog Devices, Inc.

 

GDBproxy comes with ABSOLUTELY NO WARRANTY; for details

use `--warranty' option. This is Open Source software. You are

welcome to redistribute it under certain conditions. Use the

'--copying' option for details.

 

Initializing parallel port at 0x378

IR length: 5

Chain length: 1

Device Id: 01010010011110100101000011001011 (0x00000000527A50CB)

  Manufacturer: Analog Devices

  Part(0):         BF533

  Stepping:     5

  Filename:     ./../share/urjtag/analog/bf533/bf533

warning:   bfin: no board selected, BF533 is detected

notice:    bfin: jc: waiting on TCP port 2001

notice:    bfin-gdbproxy: waiting on TCP port 2000

 

 

but when I start bfin-uclinux-gdb or bfin-elf-gdb & try to Connect to the gdbproxy via:

 

(gdb) target remote :2000

 

it gives output ,

 

Remote debugging using :2000

Remote communication error: Connection reset by peer.

 

on the same time at gdbproxy gives following message,

 

notice:    bfin-gdbproxy: connected

info:      [0] emulator not ready: DBGSTAT [0x1020]

info:      Resetting ...

bfin-gdbproxy: /usr/src/packages/BUILD/jtag/src/bfin/bfin.c:566: chain_wait_reset: Assertion `!in_reset' failed.

Aborted

 

why gdb not get connected?

 

Thank You.

QuoteReplyEditDelete

 

 

2010-02-24 10:14:16     Re: gdbproxy connection fails

Mike Frysinger (UNITED STATES)

Message: 86463   

 

if the Blackfin processor is in a bad state, then there isnt anything gdbproxy can do to recover.  that is why gdbproxy aborted.  make sure the processor is in a sane state (reset it in hardware) and only then connect to it via jtag.

 

you can also try the --reset option to the bfin gdbproxy target so that the proc is rebooted when gdb connects.

QuoteReplyEditDelete

 

 

2010-02-24 10:43:09     Re: gdbproxy connection fails

Kaustubh Vaidya (INDIA)

Message: 86468   

 

So ,that means I have to replace the processor if this problem is not solved?

QuoteReplyEditDelete

 

 

2010-02-24 11:00:57     Re: gdbproxy connection fails

Kaustubh Vaidya (INDIA)

Message: 86469   

 

whenever I try to GDB load operation as mentioned in http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:debugging#jtag_loading

 

I get this result;

 

You can't do that when your target is `exec'

 

is is happening because of the  problem mentioned in thread?

 

Thank You.

QuoteReplyEditDelete

 

 

2010-02-24 11:56:48     Re: gdbproxy connection fails

Mike Frysinger (UNITED STATES)

Message: 86471   

 

change the boot mode pins or try resetting the part

QuoteReplyEditDelete

 

 

2010-02-24 11:57:10     Re: gdbproxy connection fails

Mike Frysinger (UNITED STATES)

Message: 86472   

 

if gdbproxy quits, them obviously nothing else is going to work

QuoteReplyEditDelete

 

 

2010-02-24 14:06:37     Re: gdbproxy connection fails

Robin Getz (UNITED STATES)

Message: 86483   

 

Kaustubh:

 

It can also mean that your parallel port cable sucks, and you are picking up too much noise between it and the blackfin, that it can't have a solid communications between the two.

 

Check things with a scope.

 

-Robin

QuoteReplyEditDelete

 

 

2010-02-25 12:29:05     Re: gdbproxy connection fails

Kaustubh Vaidya (INDIA)

Message: 86543   

 

So is there any method present to check whether my processor is gone or still alive?

 

Thank you.

Attachments

    Outcomes