[Openocd-development] Cannot connect to target

2009-05-20 Thread Laurent Gauch
what is the setup of your jumper J10 (JTAGSEL)!

Try :
- to down the JTAG speed
- to up the TRST / SRST delay

Regards,
Laurent
  http://www.amontec.com





___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


Re: [Openocd-development] Cannot connect to target

2009-05-20 Thread Vytautas Lukenskas
Hi, 

I am not sure if it is the same problem, but i had connection problems with 
amontec jtagkey and luminary micro targets. After long discussion with 
amontec support (great support BTW), we came to conclusion, that i have 
faulty jtagkey. 

Howether, I usually could get successfull connection if I connect jtagkey to 
USB hub, and if I try to run openocd repeatedly many times.   

--
vylu


On Wednesday 20 May 2009 10:32:28 massimiliano cialdi wrote:
> I have OpenOCD r1836 and libftdi 0.16.
> I have the atmel evaluation board AT91SAM7X-EK, equipped with sam7x256
> (we develop 2 boards with sam7x128 and sam7x512).
> I work with ubuntu linux 64bit:

___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


[Openocd-development] Cannot connect to target

2009-05-20 Thread massimiliano cialdi
I have OpenOCD r1836 and libftdi 0.16.
I have the atmel evaluation board AT91SAM7X-EK, equipped with sam7x256
(we develop 2 boards with sam7x128 and sam7x512).
I work with ubuntu linux 64bit:

$ uname -a
Linux lab7 2.6.27-14-generic #1 SMP Wed Apr 15 19:29:46 UTC 2009
x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 8.10
Release:8.10
Codename:   intrepid


once compiled openocd I try to connect to AT91SAM7X-EK with sample
scrips and obtain the following error

$ sudo openocd -f /usr/local/lib/openocd/interface/jtagkey.cfg -f
/usr/local/lib/openocd/target/sam7x256.cfg -d 3
Open On-Chip Debugger 0.2.0-in-development (2009-05-19-17:29) svn:1836


BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS


$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Debug: 5 0 configuration.c:83 find_file(): found
/usr/local/lib/openocd/interface/jtagkey.cfg
Debug: 7 0 command.c:88 script_command(): script_command - interface
Debug: 8 0 command.c:105 script_command(): script_command - interface,
argv[0]=ocd_interface
Debug: 9 0 command.c:105 script_command(): script_command - interface,
argv[1]=ft2232
Debug: 11 0 command.c:88 script_command(): script_command - ft2232_device_desc
Debug: 12 0 command.c:105 script_command(): script_command -
ft2232_device_desc, argv[0]=ocd_ft2232_device_desc
Debug: 13 0 command.c:105 script_command(): script_command -
ft2232_device_desc, argv[1]=Amontec JTAGkey A
Debug: 15 0 command.c:88 script_command(): script_command - ft2232_layout
Debug: 16 0 command.c:105 script_command(): script_command -
ft2232_layout, argv[0]=ocd_ft2232_layout
Debug: 17 0 command.c:105 script_command(): script_command -
ft2232_layout, argv[1]=jtagkey
Debug: 19 0 command.c:88 script_command(): script_command - ft2232_vid_pid
Debug: 20 0 command.c:105 script_command(): script_command -
ft2232_vid_pid, argv[0]=ocd_ft2232_vid_pid
Debug: 21 0 command.c:105 script_command(): script_command -
ft2232_vid_pid, argv[1]=0x0403
Debug: 22 0 command.c:105 script_command(): script_command -
ft2232_vid_pid, argv[2]=0xcff8
Debug: 23 0 configuration.c:83 find_file(): found
/usr/local/lib/openocd/target/sam7x256.cfg
Debug: 25 1 command.c:88 script_command(): script_command - reset_config
Debug: 26 1 command.c:105 script_command(): script_command -
reset_config, argv[0]=ocd_reset_config
Debug: 27 1 command.c:105 script_command(): script_command -
reset_config, argv[1]=srst_only
Debug: 28 1 command.c:105 script_command(): script_command -
reset_config, argv[2]=srst_pulls_trst
Debug: 29 1 jtag.c:1995 jim_newtap_cmd(): Creating New Tap, Chip:
sam7x256, Tap: cpu, Dotted: sam7x256.cpu, 8 params
Debug: 30 1 jtag.c:2014 jim_newtap_cmd(): Processing option: -irlen
Debug: 31 1 jtag.c:2014 jim_newtap_cmd(): Processing option: -ircapture
Debug: 32 1 jtag.c:2014 jim_newtap_cmd(): Processing option: -irmask
Debug: 33 1 jtag.c:2014 jim_newtap_cmd(): Processing option: -expected-id
Debug: 34 1 jtag.c:2127 jim_newtap_cmd(): Created Tap: sam7x256.cpu @
abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 35 1 target.c:3959 jim_target(): Target command params:
Debug: 36 1 target.c:3960 jim_target(): target create sam7x256.cpu
arm7tdmi -endian little -chain-position sam7x256.cpu -variant arm7tdmi
Debug: 38 1 command.c:88 script_command(): script_command - bank
Debug: 39 1 command.c:105 script_command(): script_command - bank,
argv[0]=ocd_flash_bank
Debug: 40 1 command.c:105 script_command(): script_command - bank,
argv[1]=at91sam7
Debug: 41 1 command.c:105 script_command(): script_command - bank, argv[2]=0
Debug: 42 1 command.c:105 script_command(): script_command - bank, argv[3]=0
Debug: 43 1 command.c:105 script_command(): script_command - bank, argv[4]=0
Debug: 44 1 command.c:105 script_command(): script_command - bank, argv[5]=0
Debug: 45 1 command.c:105 script_command(): script_command - bank, argv[6]=0
Debug: 47 1 command.c:88 script_command(): script_command - init
Debug: 48 1 command.c:105 script_command(): script_command - init,
argv[0]=ocd_init
Debug: 49 1 openocd.c:131 handle_init_command(): target init complete
Debug: 50 1 ft2232.c:1985 ft2232_init(): ft2232 interface using
shortest path jtag state transitions
Debug: 51 1 ft2232.c:1904 ft2232_init_libftdi(): 'ft2232' interface
using libftdi with 'jtagkey' layout (0403:cff8)
Debug: 52 29 ft2232.c:1948 ft2232_init_libftdi(): current latency timer: 2
Debug: 53 32 ft2232.c:2219 jtagkey_init(): 80 08 1b
Debug: 54 35 ft2232.c:2277 jtagkey_init(): 82 09 0f
Debug: 55 38 ft2232.c:422 ft2232_speed(): 86 00 00
Debug: 56 56 openocd.c:138 handle_init_command(): jtag interface init complete
Debug: 57 56 jtag.c:2348 jtag_init_inner(): Init JTAG chain
Debug: 58 56 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (RESET or TRST)
Debug: 59 56 jtag.c:1595 jtag_reset_callback(): -
Debug: 60 56 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (RESET or TRST)