``` [phung@archlinux DDR]$ sudo /usr/bin/openocd -d -f ./openocd-usb.cfg -f /usr/share/openocd/scripts/cpld/xilinx-xc6s.cfg -c "adapter speed 100" -c "transport select jtag" [sudo] password for phung: Open On-Chip Debugger 0.11.0 Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html User : 13 0 options.c:63 configuration_output_handler(): debug_level: 3 User : 14 0 options.c:63 configuration_output_handler(): Debug: 15 0 options.c:244 add_default_dirs(): bindir=/usr/bin Debug: 16 0 options.c:245 add_default_dirs(): pkgdatadir=/usr/share/openocd Debug: 17 0 options.c:246 add_default_dirs(): exepath=/usr/bin Debug: 18 0 options.c:247 add_default_dirs(): bin2data=../share/openocd Debug: 19 0 configuration.c:42 add_script_search_dir(): adding /root/.config/openocd Debug: 20 0 configuration.c:42 add_script_search_dir(): adding /root/.openocd Debug: 21 0 configuration.c:42 add_script_search_dir(): adding /usr/bin/../share/openocd/site Debug: 22 0 configuration.c:42 add_script_search_dir(): adding /usr/bin/../share/openocd/scripts Debug: 23 0 configuration.c:97 find_file(): found ./openocd-usb.cfg Debug: 24 0 command.c:146 script_debug(): command - adapter driver ftdi Debug: 26 0 command.c:146 script_debug(): command - ftdi_vid_pid 0x0403 0x6010 Debug: 28 0 command.c:146 script_debug(): command - ftdi_layout_init 0x0508 0x0f1b Debug: 30 0 command.c:146 script_debug(): command - ftdi_layout_signal nTRST -data 0x0200 -noe 0x0100 Debug: 32 0 command.c:146 script_debug(): command - ftdi_layout_signal nSRST -data 0x0800 -noe 0x0400 Debug: 34 0 configuration.c:97 find_file(): found /usr/share/openocd/scripts/cpld/xilinx-xc6s.cfg Debug: 35 0 command.c:146 script_debug(): command - transport select Info : 36 0 transport.c:275 jim_transport_select(): auto-selecting first available session transport "jtag". To override use 'transport select '. Debug: 37 0 command.c:146 script_debug(): command - transport select Debug: 38 0 command.c:146 script_debug(): command - jtag newtap xc6s tap -irlen 6 -ignore-version -expected-id 0x04000093 -expected-id 0x04001093 -expected-id 0x04002093 -expected-id 0x04004093 -expected-id 0x04024093 -expected-id 0x04008093 -expected-id 0x04028093 -expected-id 0x0400E093 -expected-id 0x0402E093 -expected-id 0x04011093 -expected-id 0x04031093 -expected-id 0x0401D093 -expected-id 0x0403D093 Debug: 39 0 tcl.c:571 jim_newtap_cmd(): Creating New Tap, Chip: xc6s, Tap: tap, Dotted: xc6s.tap, 29 params Debug: 40 0 tcl.c:596 jim_newtap_cmd(): Processing option: -irlen Debug: 41 0 tcl.c:596 jim_newtap_cmd(): Processing option: -ignore-version Debug: 42 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 43 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 44 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 45 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 46 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 47 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 48 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 49 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 50 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 51 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 52 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 53 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 54 0 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id Debug: 55 0 core.c:1484 jtag_tap_init(): Created Tap: xc6s.tap @ abs position 0, irlen 6, capture: 0x1 mask: 0x3 Debug: 56 0 command.c:146 script_debug(): command - pld device virtex2 xc6s.tap User : 58 0 options.c:63 configuration_output_handler(): xc6s_print_dnaUser : 59 0 options.c:63 configuration_output_handler(): Debug: 60 0 command.c:146 script_debug(): command - adapter speed 100 Debug: 62 0 core.c:1822 jtag_config_khz(): handle jtag khz Debug: 63 0 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 64 1 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value User : 65 1 options.c:63 configuration_output_handler(): adapter speed: 100 kHz User : 66 1 options.c:63 configuration_output_handler(): Debug: 67 1 command.c:146 script_debug(): command - transport select jtag Warn : 68 1 transport.c:286 jim_transport_select(): Transport "jtag" was already selected User : 69 1 options.c:63 configuration_output_handler(): jtagUser : 70 1 options.c:63 configuration_output_handler(): Info : 71 1 server.c:311 add_service(): Listening on port 6666 for tcl connections Info : 72 1 server.c:311 add_service(): Listening on port 4444 for telnet connections Debug: 73 1 command.c:146 script_debug(): command - init Debug: 75 1 command.c:146 script_debug(): command - target init Debug: 77 1 command.c:146 script_debug(): command - target names Debug: 78 1 target.c:1639 handle_target_init_command(): Initializing targets... Debug: 79 1 ftdi.c:650 ftdi_initialize(): ftdi interface using shortest path jtag state transitions Debug: 80 3 mpsse.c:422 mpsse_purge(): - Debug: 81 3 mpsse.c:703 mpsse_loopback_config(): off Debug: 82 3 mpsse.c:748 mpsse_set_frequency(): target 100000 Hz Debug: 83 3 mpsse.c:740 mpsse_rtck_config(): off Debug: 84 3 mpsse.c:729 mpsse_divide_by_5_config(): off Debug: 85 3 mpsse.c:709 mpsse_set_divisor(): 299 Debug: 86 3 mpsse.c:772 mpsse_set_frequency(): actually 100000 Hz Debug: 87 3 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 88 3 core.c:1789 adapter_khz_to_speed(): have interface set up Debug: 89 3 mpsse.c:748 mpsse_set_frequency(): target 100000 Hz Debug: 90 3 mpsse.c:740 mpsse_rtck_config(): off Debug: 91 3 mpsse.c:729 mpsse_divide_by_5_config(): off Debug: 92 3 mpsse.c:709 mpsse_set_divisor(): 299 Debug: 93 3 mpsse.c:772 mpsse_set_frequency(): actually 100000 Hz Debug: 94 3 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 95 3 core.c:1789 adapter_khz_to_speed(): have interface set up Info : 96 3 core.c:1565 adapter_init(): clock speed 100 kHz Debug: 97 3 openocd.c:143 handle_init_command(): Debug Adapter init complete Debug: 98 4 command.c:146 script_debug(): command - transport init Debug: 100 4 transport.c:229 handle_transport_init(): handle_transport_init Debug: 101 4 core.c:830 jtag_add_reset(): SRST line released Debug: 102 4 core.c:855 jtag_add_reset(): TRST line released Debug: 103 4 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 104 4 command.c:146 script_debug(): command - jtag arp_init Debug: 105 4 core.c:1578 jtag_init_inner(): Init JTAG chain Debug: 106 4 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 107 4 core.c:1243 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS Debug: 108 4 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset Info : 109 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap tap/device found: 0xf8000003 (mfg: 0x001 (AMD), part: 0x8000, ver: 0xf) Warn : 110 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap UNEXPECTED: 0xf8000003 (mfg: 0x001 (AMD), part: 0x8000, ver: 0xf) Error: 111 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 1 of 13: 0x04000093 (mfg: 0x049 (Xilinx), part: 0x4000, ver: 0x0) Error: 112 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 2 of 13: 0x04001093 (mfg: 0x049 (Xilinx), part: 0x4001, ver: 0x0) Error: 113 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 3 of 13: 0x04002093 (mfg: 0x049 (Xilinx), part: 0x4002, ver: 0x0) Error: 114 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 4 of 13: 0x04004093 (mfg: 0x049 (Xilinx), part: 0x4004, ver: 0x0) Error: 115 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 5 of 13: 0x04024093 (mfg: 0x049 (Xilinx), part: 0x4024, ver: 0x0) Error: 116 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 6 of 13: 0x04008093 (mfg: 0x049 (Xilinx), part: 0x4008, ver: 0x0) Error: 117 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 7 of 13: 0x04028093 (mfg: 0x049 (Xilinx), part: 0x4028, ver: 0x0) Error: 118 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 8 of 13: 0x0400e093 (mfg: 0x049 (Xilinx), part: 0x400e, ver: 0x0) Error: 119 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 9 of 13: 0x0402e093 (mfg: 0x049 (Xilinx), part: 0x402e, ver: 0x0) Error: 120 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 10 of 1: 0x04011093 (mfg: 0x049 (Xilinx), part: 0x4011, ver: 0x0) Error: 121 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 11 of 1: 0x04031093 (mfg: 0x049 (Xilinx), part: 0x4031, ver: 0x0) Error: 122 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 12 of 1: 0x0401d093 (mfg: 0x049 (Xilinx), part: 0x401d, ver: 0x0) Error: 123 11 core.c:1142 jtag_examine_chain_display(): JTAG tap: xc6s.tap expected 13 of 1: 0x0403d093 (mfg: 0x049 (Xilinx), part: 0x403d, ver: 0x0) Error: 124 11 core.c:1623 jtag_init_inner(): Trying to use configured scan chain anyway... Debug: 125 11 core.c:1374 jtag_validate_ircapture(): IR capture validation scan Debug: 126 11 core.c:1431 jtag_validate_ircapture(): xc6s.tap: IR capture 0x39 Warn : 127 11 core.c:1646 jtag_init_inner(): Bypassing JTAG setup events due to errors Debug: 128 11 command.c:146 script_debug(): command - dap init Debug: 130 11 arm_dap.c:106 dap_init_all(): Initializing all DAPs ... Debug: 131 11 openocd.c:160 handle_init_command(): Examining targets... Debug: 132 11 command.c:146 script_debug(): command - flash init Debug: 134 11 tcl.c:1385 handle_flash_init_command(): Initializing flash devices... Debug: 135 11 command.c:146 script_debug(): command - nand init Debug: 137 11 tcl.c:498 handle_nand_init_command(): Initializing NAND devices... Debug: 138 11 command.c:146 script_debug(): command - pld init Debug: 140 11 pld.c:206 handle_pld_init_command(): Initializing PLDs... Warn : 141 11 gdb_server.c:3585 gdb_target_add_all(): gdb services need one or more targets defined ```