2008-12-20 19:44:52     bfin-gdbproxy command line arguments

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

2008-12-20 19:44:52     bfin-gdbproxy command line arguments

AC CHAO (UNITED STATES)

Message: 66993   

 

Hello,

 

 

 

I am trying to use JTAG debugger.

 

The cable is JTAGBLUE as in (http://docs.blackfin.uclinux.org/doku.php?id=hw:jtag:jtagblue)

 

And I followed the connection in the web link above,

 

Then I ran

 

ac@ac-desktop:/opt/uClinux/bfin-uclinux/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

Error: Cable initialization failed!

error:     bfin: cable initialization failed

cable: syntax error!

error:     bfin: cable initialization failed

cable: syntax error!

error:     bfin: cable initialization failed

 

 

 

 

I think my command line arguments for bfin-gdbproxy could be wrong. Do you know the correct arguments?

 

Thank you.

 

 

 

Regards,

 

 

 

AC

QuoteReplyEditDelete

 

 

2008-12-21 00:26:26     Re: bfin-gdbproxy command line arguments

AC CHAO (UNITED STATES)

Message: 66999   

 

Hello,

 

 

 

The target hardware is BF548EZKIT. Do you know the correct arguments for bfin-gdbproxy?

 

Thanks.

 

 

 

Regards,

 

 

 

AC

QuoteReplyEditDelete

 

 

2008-12-21 16:19:12     Re: bfin-gdbproxy command line arguments

Mike Frysinger (UNITED STATES)

Message: 67018   

 

"cable initialization failed" means the cable wasnt found.  check your hardware is properly connected and that the parallel port settings are actually right.  you can test with the urjtag interface directly with `bfin-jtag`.

QuoteReplyEditDelete

 

 

2008-12-22 14:05:42     Re: bfin-gdbproxy command line arguments

AC CHAO (UNITED STATES)

Message: 67043   

 

Hi Mike,

 

 

 

I check the parallel port on my PC

 

ac@ac-desktop:~$ cat /proc/ioports

0000-001f : dma1

0020-0021 : pic1

0040-0043 : timer0

0050-0053 : timer1

0060-006f : keyboard

0070-0077 : rtc

0080-008f : dma page reg

00a0-00a1 : pic2

00c0-00df : dma2

00f0-00ff : fpu

0170-0177 : 0000:00:06.0

  0170-0177 : libata

01f0-01f7 : 0000:00:06.0

  01f0-01f7 : libata

0290-0297 : pnp 00:02

0376-0376 : 0000:00:06.0

  0376-0376 : libata

0378-037a : parport0

 

 

So the port address 0x378 is correct, and I also saw "/dev/lp0".

 

And I used 'bfin-jtag' and tried several cable names, but all were failed. Here is the message

 

jtag> help cable

Usage: cable DRIVER [DRIVER_OPTS]

Select JTAG cable type.

 

DRIVER      name of cable

DRIVER_OPTS options for the selected cable

 

Type "cable DRIVER help" for info about options for cable DRIVER.

 

List of supported cables:

ARCOM         Arcom JTAG Cable

ByteBlaster   Altera ByteBlaster/ByteBlaster II/ByteBlasterMV Parallel Port Download Cable

UsbBlaster    Altera USB-Blaster Cable

FT2232        Generic FTDI FT2232 Cable

JTAGkey       Amontec JTAGkey (FT2232) Cable

ARM-USB-OCD   Olimex ARM-USB-OCD (FT2232) Cable

gnICE         Analog Devices Blackfin gnICE (FT2232) Cable (EXPERIMENTAL)

OOCDLink-s    OOCDLink-s (FT2232) Cable (EXPERIMENTAL)

Signalyzer    Xverve DT-USB-ST Signalyzer Tool (FT2232) Cable (EXPERIMENTAL)

Turtelizer2   Turtelizer 2 Rev. B (FT2232) Cable (EXPERIMENTAL)

USB-to-JTAG-IF USB to JTAG Interface (FT2232) Cable (EXPERIMENTAL)

DLC5          Xilinx DLC5 JTAG Parallel Cable III

EA253         ETC EA253 JTAG Cable

EI012         ETC EI012 JTAG Cable

IGLOO         Excelpoint IGLOO JTAG Cable

KeithKoep     Keith & Koep JTAG cable

Lattice       Lattice Parallel Port JTAG Cable

MPCBDM        Mpcbdm JTAG cable

TRITON        Ka-Ro TRITON Starterkit II (PXA255/250) JTAG Cable

WIGGLER       Macraigor Wiggler JTAG Cable

WIGGLER2      Modified (with CPU Reset) WIGGLER JTAG Cable

xpc_int       Xilinx Platform Cable USB internal chain

xpc_ext       Xilinx Platform Cable USB external chain

jlink         Segger/IAR J-Link, Atmel SAM-ICE and others.

jtag> cable ARCOM parallel 0x378

Initializing parallel port at 0x378

Error: Cable initialization failed!

jtag> cable ByteBlaster parallel 0x378

Initializing parallel port at 0x378

Error: Cable initialization failed!

jtag> cable FT2232 parallel 0x378

Wrong parport driver selected!

Error: Cable connection failed!

jtag> cable JTAGkey parallel 0x378

Wrong parport driver selected!

Error: Cable connection failed!

jtag> cable DLC5 parallel 0x378

Initializing parallel port at 0x378

Error: Cable initialization failed!

jtag> cable EA253 parallel 0x378

Initializing parallel port at 0x378

Error: Cable initialization failed!

jtag> cable EI012 parallel 0x378

Initializing parallel port at 0x378

Error: Cable initialization failed!

jtag> cable IGLOO parallel 0x378

Initializing parallel port at 0x378

Error: Cable initialization failed!

jtag> cable KeithKoep parallel 0x378

Initializing parallel port at 0x378

Error: Cable initialization failed!

jtag> cable Lattice parallel 0x378

Initializing parallel port at 0x378

Error: Cable initialization failed!

jtag> cable MPCBDM parallel 0x378

Initializing parallel port at 0x378

Error: Cable initialization failed!

jtag> cable jlink parallel 0x378

Couldn't connect to suitable USB device.

Error: Cable connection failed!

 

 

And I checked the wiring again, the wiring is correct. By the way, jtag pin 1 to jtag pin 7 was conneted for grounding and a 500 ohms resister was connected between jtag pin 10 and jtag pin 5.

 

Do you have any suggestion? Thank you.

 

 

 

Regards,

 

 

 

AC

QuoteReplyEditDelete

 

 

2008-12-22 16:33:47     Re: bfin-gdbproxy command line arguments

Mike Frysinger (UNITED STATES)

Message: 67046   

 

i dont know why you're just blindly trying ever cable ... most of those make no sense

 

read the documentation please:

http://docs.blackfin.uclinux.org/doku.php?id=toolchain:urjtag:flashing

QuoteReplyEditDelete

 

 

2008-12-22 17:17:11     Re: bfin-gdbproxy command line arguments

AC CHAO (UNITED STATES)

Message: 67047   

 

Hi Mike,

 

 

 

Thank you.

 

Becasue there is no name for JTAGBLUE, so I just tried the different names and saw what would happen.

 

Here is the parallel port info on my PC:

 

ac@ac-desktop:~$ dmesg | grep parport

[   35.460692] parport_pc 00:09: reported by Plug and Play ACPI

[   35.460735] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]

[   37.030256] lp0: using parport0 (interrupt-driven).

 

 

 

ac@ac-desktop:~$ ls -l /dev/parport0

crw-rw-rw- 1 root root 99, 0 2008-12-22 11:22 /dev/parport0

 

 

ac@ac-desktop:~$ ls -l /proc/sys/dev/parport/parport0/devices/

total 0

-r--r--r-- 1 root root 0 2008-12-22 13:54 active

dr-xr-xr-x 0 root root 0 2008-12-22 13:54 lp

 

 

 

 

But the connection still failed.

 

jtag>  cable IGLOO parallel 0x378

Initializing parallel port at 0x378

Error: Cable initialization failed!

 

 

 

What am I mising? Thank you.

 

 

 

Regards,

 

 

 

AC

QuoteReplyEditDelete

 

 

2008-12-22 18:53:51     Re: bfin-gdbproxy command line arguments

Robin Getz (UNITED STATES)

Message: 67050   

 

AC:

 

JTAGBlue == Wiggler

 

-Robin

QuoteReplyEditDelete

 

 

2008-12-22 22:57:07     Re: bfin-gdbproxy command line arguments

AC CHAO (UNITED STATES)

Message: 67053   

 

Hello Robin,

 

 

 

Thank you. But when I specified 'Wiggler', the connection was fialed too. The power up owner of /dev/parport0 is lp scanner, not root root. Even I changed the ownership, it didn't work either.

 

As you can see as below. Thank you.

 

Regards,

 

AC

 

ac@ac-desktop:~$ bfin-jtag

 

UrJTAG 0.8 #1120

Copyright (C) 2002, 2003 ETC s.r.o.

Copyright (C) 2007, 2008 Kolja Waschk and the respective authors

 

UrJTAG 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.

There is absolutely no warranty for UrJTAG.

 

WARNING: UrJTAG may damage your hardware!

Type "quit" to exit, "help" for help.

 

jtag>  cable Wiggler parallel 0x378

Initializing parallel port at 0x378

Error: Cable initialization failed!

jtag> quit

ac@ac-desktop:~$ ls -l /proc/sys/dev/parport/parport0/devices/

total 0

-r--r--r-- 1 root root 0 2008-12-22 19:43 active

dr-xr-xr-x 0 root root 0 2008-12-22 19:43 lp

ac@ac-desktop:~$ ls -l /dev/parport0

crw-rw---- 1 lp scanner 99, 0 2008-12-22 19:33 /dev/parport0

ac@ac-desktop:~$ sudo chown root:root /dev/parport0

[sudo] password for ac:

ac@ac-desktop:~$ ls -l /dev/parport0

crw-rw---- 1 root root 99, 0 2008-12-22 19:33 /dev/parport0

ac@ac-desktop:~$ sudo chmod 666 /dev/parport0

ac@ac-desktop:~$ ls -l /dev/parport0

crw-rw-rw- 1 root root 99, 0 2008-12-22 19:33 /dev/parport0

ac@ac-desktop:~$ bfin-jtag

 

UrJTAG 0.8 #1120

Copyright (C) 2002, 2003 ETC s.r.o.

Copyright (C) 2007, 2008 Kolja Waschk and the respective authors

 

UrJTAG 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.

There is absolutely no warranty for UrJTAG.

 

WARNING: UrJTAG may damage your hardware!

Type "quit" to exit, "help" for help.

 

jtag>  cable Wiggler parallel 0x378

Initializing parallel port at 0x378

Error: Cable initialization failed!

jtag>

 

 

QuoteReplyEditDelete

 

 

2008-12-23 11:12:14     Re: bfin-gdbproxy command line arguments

AC CHAO (UNITED STATES)

Message: 67071   

 

Hello Robin,

 

 

 

Do you know where is the problem?

 

Is it in my PC's setting? If it could be the probelm of the jtag cable, could you advise where to get a Wiggler cable?

 

Thank you.

 

 

 

Regards,

 

 

 

AC

QuoteReplyEditDelete

 

 

2008-12-23 17:31:29     Re: bfin-gdbproxy command line arguments

Robin Getz (UNITED STATES)

Message: 67080   

 

AC:

 

All I can say - is it works for me. Something on the host side seems like it is not working. It will be a few weeks before I get back to a PC with the Wiggler, and a parallel port.

 

-Robin

QuoteReplyEditDelete

 

 

2008-12-25 01:22:35     Re: bfin-gdbproxy command line arguments

AC CHAO (UNITED STATES)

Message: 67093   

 

Merry Christmas

 

 

 

AC

Attachments

    Outcomes