Reply by August 25, 20092009-08-25
Hello,

I use a GE863pro3 Telit module with an at91sam9260, and I've got trouble
trying to use armusbocd debuger (by JTAG). The IDE is eclipse and use gdb as
maker. I precise I already used this armusbocd whith an at91sam7S whithout
having any problem.
I don't manage to launch openocd, while I strictly follow the telit tutorial
which is kind of a "Using Open Source Tools for AT91SAM7S Cross Development
revision C" but up to this processor.
- I'd like to know better the meaning of this file.
- Anyone have ever encoutered this kind of trouble. Where did it came from?
- Specificaly does the four last line of the cfg file mandatory for using
the daemon?
- What 's difference between reset TRST/SRST?
- Why is there jtag A and B?
- What is fti device?

Here is the config file I use for openOCD, wich is provided by telit

#######
#daemon configuration
telnet_port 4444
gdb_port 3333
daemon_startup reset

#interface
interface ft2232
ft2232_device_desc "OOCDLink A"
ft2232_layout oocdlink
#ft2232_device_desc "Dual RS232 A"
#ft2232_layout usbjtag
ft2232_vid_pid 0x0403 0xBAF8

jtag_speed 1200

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe

#target configuration
daemon_startup reset

#target
target arm926ejs little run_and_halt 0

run_and_halt_time 0 30

#arm7_9 force_hw_bkpts enable
arm7_9 sw_bkpts enable
arm7_9 fast_memory_access enable
arm7_9 dcc_downloads enable

#######

and here is the console output i obtain:

#######
Open On-Chip Debugger (2008-04-19 12:00) svn: 592
URL: http://svn.berlios.de/svnroot/repos/openocd/trunk
Info: options.c:50 configuration_output_handler(): Open On-Chip Debugger
(2008-04-19 12:00) svn: 592
Info: options.c:50 configuration_output_handler(): jtag_speed: 1200, 1200
Info: options.c:50 configuration_output_handler(): Open On-Chip Debugger
(2008-04-19 12:00) svn: 592
Error: arm7_9_common.c:2424 handle_arm7_9_sw_bkpts_command(): target not
halted
Info: options.c:50 configuration_output_handler(): fast memory access is
enabled
Info: options.c:50 configuration_output_handler(): dcc downloads are
enabled
Error: ft2232.c:1375 ft2232_init_ftd2xx(): unable to open ftdi device: 2
Error: ft2232.c:1390 ft2232_init_ftd2xx(): ListDevices: 2

Error: ft2232.c:1392 ft2232_init_ftd2xx(): 0: Olimex OpenOCD JTAG A
Error: ft2232.c:1392 ft2232_init_ftd2xx(): 1: Olimex OpenOCD JTAG B

Regards
Clent C.