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) Debug: 61 56 jtag.c:1595 jtag_reset_callback(): - Error: 62 62 jtag.c:1650 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc. Error: 63 62 jtag.c:2363 jtag_init_inner(): trying to validate configured JTAG chain anyway... Debug: 64 62 jtag.c:413 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 65 62 jtag.c:1595 jtag_reset_callback(): - Error: 66 66 jtag.c:1823 jtag_validate_chain(): Could not validate JTAG scan chain, IR mismatch, scan returned 0x3F. tap=sam7x256.cpu pos=0 expected 0x1 got 3 Warn : 67 66 jtag.c:2368 jtag_init_inner(): Could not validate JTAG chain, continuing anyway... Debug: 68 66 openocd.c:144 handle_init_command(): jtag init complete Warn : 69 73 jtag.c:1438 jtag_check_value_inner(): value captured during scan didn't pass the requested check: Warn : 70 73 jtag.c:1440 jtag_check_value_inner(): captured: 0x0F check_value: 0x01 check_mask: 0x0F Debug: 71 73 openocd.c:153 handle_init_command(): flash init complete Debug: 72 73 openocd.c:157 handle_init_command(): mflash init complete Debug: 73 73 openocd.c:161 handle_init_command(): NAND init complete Debug: 74 73 openocd.c:165 handle_init_command(): pld init complete Warn : 75 73 telnet_server.c:599 telnet_init(): no telnet port specified, using default port 4444 Warn : 76 73 gdb_server.c:2191 gdb_init(): no gdb port specified, using default port 3333 Debug: 77 73 gdb_server.c:2215 gdb_init(): gdb service for target arm7tdmi at port 3333 Warn : 78 73 tcl_server.c:168 tcl_init(): no tcl port specified, using default port 6666 what is wrong? maybe the sample script are incorrect? thanks -- Assioma di Cole: "La somma dell'intelligenza sulla Terra è costante; la popolazione è in aumento" Massimiliano Cialdi [email protected] [email protected] _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
