Hello, 

I have problems connecting with Amontec JTAGKey to LuminaryMicro boards 
(IDM-L35, LM3S8962) from linux. I get about 1 successfull connection from ~10 
attempts. When connection succeeded, I can flash target, restart, debug it 
without problems. 

I have no connection problems when I use JTAG adapter which is integrated into 
LuminaryMicro LM3S8962 evaluation board -- I use the same configuration, the 
only difference is interface config -- jtagkey.cfg or luminary.cfg. Both 
adapters are ft2232d chip based. 

I have tested openocd v0.1 and svn trunk rev 1554 with both libftdi and ftd2xx 
setups, and I got the same results. 

OpenOcd v0.1 on windows with the same Amontec JTAG adapter and the same config 
connects without any problem. 

I'm using 64bit linux, but I have tested openocd v0.1 on 32bit linux also, and 
I got the same results. 


I'm attaching openocd debug log.

Does anybody have ideas where should i start hunting problems?

Thanks!

--
vylu
host$ openocd -f /usr/local/lib/openocd/interface/jtagkey.cfg -f /usr/local/lib/openocd/target/lm3s6965.cfg --debug 3
Open On-Chip Debugger 1.0 (2009-04-28-14:22) svn:1554


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


$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
User : 5 1 command.c:494 command_run_line():
Debug: 6 1 configuration.c:88 find_file(): found /usr/local/lib/openocd/interface/jtagkey.cfg
Debug: 8 1 command.c:91 script_command(): script_command - interface
Debug: 9 1 command.c:108 script_command(): script_command - interface, argv[0]=ocd_interface
Debug: 10 1 command.c:108 script_command(): script_command - interface, argv[1]=ft2232
Debug: 12 1 command.c:91 script_command(): script_command - ft2232_device_desc
Debug: 13 1 command.c:108 script_command(): script_command - ft2232_device_desc, argv[0]=ocd_ft2232_device_desc
Debug: 14 1 command.c:108 script_command(): script_command - ft2232_device_desc, argv[1]=Amontec JTAGkey A
Debug: 16 1 command.c:91 script_command(): script_command - ft2232_layout
Debug: 17 1 command.c:108 script_command(): script_command - ft2232_layout, argv[0]=ocd_ft2232_layout
Debug: 18 1 command.c:108 script_command(): script_command - ft2232_layout, argv[1]=jtagkey
Debug: 20 2 command.c:91 script_command(): script_command - ft2232_vid_pid
Debug: 21 2 command.c:108 script_command(): script_command - ft2232_vid_pid, argv[0]=ocd_ft2232_vid_pid
Debug: 22 2 command.c:108 script_command(): script_command - ft2232_vid_pid, argv[1]=0x0403
Debug: 23 2 command.c:108 script_command(): script_command - ft2232_vid_pid, argv[2]=0xcff8
User : 24 2 command.c:494 command_run_line():
Debug: 25 2 configuration.c:88 find_file(): found /usr/local/lib/openocd/target/lm3s6965.cfg
Debug: 27 2 command.c:91 script_command(): script_command - jtag_khz
Debug: 28 2 command.c:108 script_command(): script_command - jtag_khz, argv[0]=ocd_jtag_khz
Debug: 29 2 command.c:108 script_command(): script_command - jtag_khz, argv[1]=500
Debug: 30 2 jtag.c:2608 handle_jtag_khz_command(): handle jtag khz
User : 31 2 command.c:383 command_print(): 500 kHz
Debug: 33 2 command.c:91 script_command(): script_command - jtag_nsrst_delay
Debug: 34 2 command.c:108 script_command(): script_command - jtag_nsrst_delay, argv[0]=ocd_jtag_nsrst_delay
Debug: 35 2 command.c:108 script_command(): script_command - jtag_nsrst_delay, argv[1]=100
Debug: 37 2 command.c:91 script_command(): script_command - jtag_ntrst_delay
Debug: 38 2 command.c:108 script_command(): script_command - jtag_ntrst_delay, argv[0]=ocd_jtag_ntrst_delay
Debug: 39 2 command.c:108 script_command(): script_command - jtag_ntrst_delay, argv[1]=100
Debug: 41 2 command.c:91 script_command(): script_command - reset_config
Debug: 42 2 command.c:108 script_command(): script_command - reset_config, argv[0]=ocd_reset_config
Debug: 43 2 command.c:108 script_command(): script_command - reset_config, argv[1]=srst_only
Debug: 44 2 jtag.c:1855 jim_newtap_cmd(): Creating New Tap, Chip: lm3s6965, Tap: cpu, Dotted: lm3s6965.cpu, 8 params
Debug: 45 2 jtag.c:1874 jim_newtap_cmd(): Processing option: -irlen
Debug: 46 3 jtag.c:1874 jim_newtap_cmd(): Processing option: -ircapture
Debug: 47 3 jtag.c:1874 jim_newtap_cmd(): Processing option: -irmask
Debug: 48 3 jtag.c:1874 jim_newtap_cmd(): Processing option: -expected-id
Debug: 49 3 jtag.c:1987 jim_newtap_cmd(): Created Tap: lm3s6965.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 50 3 target.c:3971 jim_target(): Target command params:
Debug: 51 3 target.c:3972 jim_target(): target create lm3s6965.cpu cortex_m3 -endian little -chain-position lm3s6965.cpu -variant lm3s
Debug: 53 3 command.c:91 script_command(): script_command - bank
Debug: 54 3 command.c:108 script_command(): script_command - bank, argv[0]=ocd_flash_bank
Debug: 55 3 command.c:108 script_command(): script_command - bank, argv[1]=stellaris
Debug: 56 3 command.c:108 script_command(): script_command - bank, argv[2]=0
Debug: 57 3 command.c:108 script_command(): script_command - bank, argv[3]=0
Debug: 58 3 command.c:108 script_command(): script_command - bank, argv[4]=0
Debug: 59 3 command.c:108 script_command(): script_command - bank, argv[5]=0
Debug: 60 6 command.c:108 script_command(): script_command - bank, argv[6]=0
User : 61 7 command.c:494 command_run_line():
Debug: 63 7 command.c:91 script_command(): script_command - init
Debug: 64 7 command.c:108 script_command(): script_command - init, argv[0]=ocd_init
Debug: 65 7 openocd.c:137 handle_init_command(): target init complete
Debug: 66 7 ft2232.c:1618 ft2232_init_ftd2xx(): 'ft2232' interface using FTD2XX with 'jtagkey' layout (0403:cff8)
Debug: 67 355 ft2232.c:1729 ft2232_init_ftd2xx(): current latency timer: 2
Debug: 68 356 ft2232.c:2075 jtagkey_init(): 80 08 1b
Debug: 69 356 ft2232.c:2133 jtagkey_init(): 82 09 0f
Debug: 70 356 ft2232.c:282 ft2232_speed(): 86 0b 00
Debug: 71 358 openocd.c:144 handle_init_command(): jtag interface init complete
Debug: 72 358 jtag.c:2203 jtag_init_inner(): Init JTAG chain
Debug: 73 358 jtag.c:390 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 74 358 jtag.c:1450 jtag_reset_callback(): -
Debug: 75 358 jtag.c:390 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 76 358 jtag.c:1450 jtag_reset_callback(): -
Error: 77 361 jtag.c:1506 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error: 78 361 jtag.c:2218 jtag_init_inner(): trying to validate configured JTAG chain anyway...
Debug: 79 361 jtag.c:390 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 80 361 jtag.c:1450 jtag_reset_callback(): -
Error: 81 362 jtag.c:1683 jtag_validate_chain(): Could not validate JTAG scan chain, IR mismatch, scan returned 0x3F. tap=lm3s6965.cpu pos=0 expected 0x1 got 3
Warn : 82 362 jtag.c:2223 jtag_init_inner(): Could not validate JTAG chain, continuing anyway...
Debug: 83 362 openocd.c:150 handle_init_command(): jtag init complete
Debug: 84 363 arm_adi_v5.c:950 ahbap_debugport_init():
Warn : 85 365 jtag.c:1354 jtag_check_value(): TAP lm3s6965.cpu:
Warn : 86 365 jtag.c:1364 jtag_check_value(): value captured during scan didn't pass the requested check:
Warn : 87 365 jtag.c:1366 jtag_check_value(): captured: 0x0F check_value: 0x01 check_mask: 0x0F
Warn : 88 365 jtag.c:1318 jtag_read_buffer(): in_handler: w/o "in_value", mismatch in SIR
Debug: 89 366 openocd.c:159 handle_init_command(): flash init complete
Debug: 90 366 openocd.c:163 handle_init_command(): mflash init complete
Debug: 91 366 openocd.c:167 handle_init_command(): NAND init complete
Debug: 92 366 openocd.c:171 handle_init_command(): pld init complete
Warn : 93 366 telnet_server.c:612 telnet_init(): no telnet port specified, using default port 4444
Warn : 94 366 gdb_server.c:2201 gdb_init(): no gdb port specified, using default port 3333
Debug: 95 366 gdb_server.c:2225 gdb_init(): gdb service for target cortex_m3 at port 3333
Warn : 96 366 tcl_server.c:178 tcl_init(): no tcl port specified, using default port 6666
User : 97 366 command.c:494 command_run_line():
                                             
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to