Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9868 Discussions

How do you use the JTAG port on Galileo?

RHart
Novice
1,593 Views

This is not an XDP port. So how do you make use of the JTAG port?

Thanks!

1 Solution
ADRIAN_B_Intel
Employee
222 Views

Hi,

Thats correct, its not the typical XDP port, its just a 10 connector and you can buy this adapter for example

https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-20-10/ https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-20-10/

then one of these FTDI type debuggers can be used to get on chip debug of Galileo. (and other supported by OpenOCD may work fine)

http://www.tincantools.com/wiki/Flyswatter2 http://www.tincantools.com/wiki/Flyswatter2

https://www.olimex.com/Products/ARM/JTAG/ARM-USB-OCD/ https://www.olimex.com/Products/ARM/JTAG/ARM-USB-OCD/

OpenOCD/GDB is being used as the debugger software and that will be available for download in the coming months.

I will update this thread as soon as its available.

thanks..

View solution in original post

5 Replies
ADRIAN_B_Intel
Employee
223 Views

Hi,

Thats correct, its not the typical XDP port, its just a 10 connector and you can buy this adapter for example

https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-20-10/ https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-20-10/

then one of these FTDI type debuggers can be used to get on chip debug of Galileo. (and other supported by OpenOCD may work fine)

http://www.tincantools.com/wiki/Flyswatter2 http://www.tincantools.com/wiki/Flyswatter2

https://www.olimex.com/Products/ARM/JTAG/ARM-USB-OCD/ https://www.olimex.com/Products/ARM/JTAG/ARM-USB-OCD/

OpenOCD/GDB is being used as the debugger software and that will be available for download in the coming months.

I will update this thread as soon as its available.

thanks..

View solution in original post

ADRIAN_B_Intel
Employee
222 Views

How to source level debug the linux kernel using openocd:

/docs/DOC-22203 https://communities.intel.com/docs/DOC-22203

Thomas_F_Intel
Employee
222 Views

The source patch for OpenOCD is available now.

We are currently working with the OpenOCD maintainers to get the patch accepted to the public trunk. But until it's accepted, you can download the patch here: http://openocd.zylin.com/# /c/1829/ http://openocd.zylin.com/# /c/1829/

SPipe2
Beginner
222 Views

Hello !

Maybe it is not the right place to post, but I appreciate any help ...

I built the openocd program from the git repo ,configured with --enable-ftdi option. I want to use it with the ARM-USB-OCD-H jtag adapter (bought from olymex)

https://www.olimex.com/Products/ARM/JTAG/ARM-USB-OCD-H/ https://www.olimex.com/Products/ARM/JTAG/ARM-USB-OCD-H/

When I run the program i have the following issue :

sanyi@desktop:~/openocd-code$ openocd -f /usr/local/share/openocd/scripts/interface/olimex-arm-usb-ocd-h.cfg -f /usr/local/share/openocd/scripts/board/quark_x10xx_board.cfg

 

Open On-Chip Debugger 0.8.0 (2014-09-02-21:20)

 

Licensed under GNU GPL v2

 

For bug reports, read

 

http://openocd.sourceforge.net/doc/doxygen/bugs.html http://openocd.sourceforge.net/doc/doxygen/bugs.html

 

Error: The specified debug interface was not found (ft2232)

 

The following debug interfaces are available:

 

1: ftdi

 

2: usb_blaster

 

3: usbprog

 

4: jlink

 

5: vsllink

 

6: rlink

 

7: ulink

 

8: arm-jtag-ew

 

9: hla

 

10: osbdm

 

11: opendous

 

12: aice

 

Runtime Error: /usr/local/share/openocd/scripts/interface/olimex-arm-usb-ocd-h.cfg:7:

 

in procedure 'script'

 

at file "embedded:startup.tcl", line 58

 

in procedure 'interface' called at file "/usr/local/share/openocd/scripts/interface/olimex-arm-usb-ocd-h.cfg", line 7

I am running on Debian Wheezy (7.6.0 64 bit).

lsusb shows me :

Bus 005 Device 009: ID 15ba:002b Olimex Ltd.

Thank you.

SPipe2
Beginner
222 Views

I found the problem:

Openocd v0.8.0 use the config file from /usr/local/share/openocd/scripts/interface/ftdi/ not from /usr/local/share/openocd/scripts/interface/ :

sanyi@desktop:~/openocd-code$ openocd -f /usr/local/share/openocd/scripts/interface/ftdi/olimex-arm-usb-ocd-h.cfg -f /usr/local/share/openocd/scripts/board/quark_x10xx_board.cfg

 

Open On-Chip Debugger 0.8.0 (2014-09-02-21:20)

 

Licensed under GNU GPL v2

 

For bug reports, read

 

http://openocd.sourceforge.net/doc/doxygen/bugs.html http://openocd.sourceforge.net/doc/doxygen/bugs.html

 

Info : only one transport option; autoselect 'jtag'

 

adapter speed: 4000 kHz

 

trst_only separate trst_push_pull

 

Info : clock speed 4000 kHz

 

Info : JTAG tap: quark_x10xx.cltap tap/device found: 0x0e681013 (mfg: 0x009, part: 0xe681, ver: 0x0)

 

enabling core tap

 

Info : JTAG tap: quark_x10xx.cpu enabled
Reply