Hello! I am using OpenOCD with an EJTAG interface to an embedded MIPS 4kc core.
However, I get errors when I try to use it: ---- Debug: 188 10016 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 189 10125 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 190 10234 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 191 10344 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 192 10453 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 193 10562 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 194 10672 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 195 10781 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 196 10891 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 197 11000 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 198 11109 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 199 11219 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 200 11328 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 201 11437 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 202 11547 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 203 11656 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 204 11766 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 205 11875 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 206 11984 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 207 12094 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 208 12203 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 209 12312 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 210 12422 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 211 12531 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 212 12641 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 213 12750 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 214 12859 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 215 12969 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 216 13078 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 217 13187 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 218 13297 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 219 13406 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 220 13516 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 221 13625 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 222 13734 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 223 13844 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 224 13953 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 225 14062 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 226 14172 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 227 14281 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 228 14391 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 229 14500 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 230 14609 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 231 14719 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 232 14828 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 233 14937 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 234 15047 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 235 15156 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 236 15266 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 237 15375 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 238 15484 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 239 15594 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 240 15703 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 241 15812 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 242 15922 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 243 46375 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 244 46469 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 245 46578 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 246 46687 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 247 46797 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 248 46906 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 249 47016 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 250 47125 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 251 47234 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 252 47344 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 253 47453 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 254 47562 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 255 47672 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 256 47781 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 257 47891 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 258 48000 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 259 48109 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 260 48219 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 261 48328 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 262 48437 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 263 48547 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 264 48656 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 265 48766 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 266 48875 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 267 48984 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 268 49094 mips_m4k.c:180 mips_m4k_poll(): Reset Detected C:\Program Files\OpenOCD>openocd -d > openocderrs.txt Open On-Chip Debugger 1.0 (2008-11-05-01:04) svn:1135 BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $ Debug: 5 0 configuration.c:88 find_file(): found openocd.cfg Debug: 7 0 command.c:91 script_command(): script_command - telnet_port Debug: 8 0 command.c:108 script_command(): script_command - telnet_port, argv[ 0]=ocd_telnet_port Debug: 9 0 command.c:108 script_command(): script_command - telnet_port, argv[ 1]=4444 Debug: 11 0 command.c:91 script_command(): script_command - gdb_port Debug: 12 16 command.c:108 script_command(): script_command - gdb_port, argv[0 ]=ocd_gdb_port Debug: 13 16 command.c:108 script_command(): script_command - gdb_port, argv[1 ]=3333 Debug: 15 16 command.c:91 script_command(): script_command - interface Debug: 16 16 command.c:108 script_command(): script_command - interface, argv[ 0]=ocd_interface Debug: 17 16 command.c:108 script_command(): script_command - interface, argv[ 1]=ft2232 Debug: 19 16 command.c:91 script_command(): script_command - ft2232_device_des c Debug: 20 16 command.c:108 script_command(): script_command - ft2232_device_de sc, argv[0]=ocd_ft2232_device_desc Debug: 21 16 command.c:108 script_command(): script_command - ft2232_device_de sc, argv[1]=Signalyzer A Debug: 23 16 command.c:91 script_command(): script_command - ft2232_layout Debug: 24 16 command.c:108 script_command(): script_command - ft2232_layout, a rgv[0]=ocd_ft2232_layout Debug: 25 31 command.c:108 script_command(): script_command - ft2232_layout, a rgv[1]=signalyzer Debug: 27 31 command.c:91 script_command(): script_command - ft2232_vid_pid Debug: 28 31 command.c:108 script_command(): script_command - ft2232_vid_pid, argv[0]=ocd_ft2232_vid_pid Debug: 29 31 command.c:108 script_command(): script_command - ft2232_vid_pid, argv[1]=0x0403 Debug: 30 31 command.c:108 script_command(): script_command - ft2232_vid_pid, argv[2]=0xbca0 Debug: 32 31 command.c:91 script_command(): script_command - jtag_nsrst_delay Debug: 33 31 command.c:108 script_command(): script_command - jtag_nsrst_delay , argv[0]=ocd_jtag_nsrst_delay Debug: 34 31 command.c:108 script_command(): script_command - jtag_nsrst_delay , argv[1]=100 Debug: 36 31 command.c:91 script_command(): script_command - jtag_ntrst_delay Debug: 37 31 command.c:108 script_command(): script_command - jtag_ntrst_delay , argv[0]=ocd_jtag_ntrst_delay Debug: 38 31 command.c:108 script_command(): script_command - jtag_ntrst_delay , argv[1]=100 Debug: 40 31 command.c:91 script_command(): script_command - reset_config Debug: 41 31 command.c:108 script_command(): script_command - reset_config, ar gv[0]=ocd_reset_config Debug: 42 31 command.c:108 script_command(): script_command - reset_config, ar gv[1]=trst_and_srst Debug: 43 31 command.c:108 script_command(): script_command - reset_config, ar gv[2]=separate Debug: 45 31 command.c:91 script_command(): script_command - jtag_device Debug: 46 31 command.c:108 script_command(): script_command - jtag_device, arg v[0]=ocd_jtag_device Debug: 47 31 command.c:108 script_command(): script_command - jtag_device, arg v[1]=5 Debug: 48 31 command.c:108 script_command(): script_command - jtag_device, arg v[2]=0x1 Debug: 49 31 command.c:108 script_command(): script_command - jtag_device, arg v[3]=0x1 Debug: 50 31 command.c:108 script_command(): script_command - jtag_device, arg v[4]=0x1e Debug: 51 31 target.c:3990 jim_target(): Target command params: Debug: 52 31 target.c:3991 jim_target(): target create target0 mips_m4k -endia n big -chain-position 0 Debug: 54 31 command.c:91 script_command(): script_command - jtag_khz Debug: 55 31 command.c:108 script_command(): script_command - jtag_khz, argv[0 ]=ocd_jtag_khz Debug: 56 31 command.c:108 script_command(): script_command - jtag_khz, argv[1 ]=1000 Debug: 57 47 jtag.c:1986 handle_jtag_khz_command(): handle jtag khz User: 58 47 command.c:372 command_print(): 1000 kHz Debug: 60 172 command.c:91 script_command(): script_command - bank Debug: 61 172 command.c:108 script_command(): script_command - bank, argv[0]=o cd_flash_bank Debug: 62 172 command.c:108 script_command(): script_command - bank, argv[1]=c fi Debug: 63 172 command.c:108 script_command(): script_command - bank, argv[2]=0 x90000000 Debug: 64 172 command.c:108 script_command(): script_command - bank, argv[3]=0 x200000 Debug: 65 172 command.c:108 script_command(): script_command - bank, argv[4]=2 Debug: 66 172 command.c:108 script_command(): script_command - bank, argv[5]=2 Debug: 67 172 command.c:108 script_command(): script_command - bank, argv[6]=0 Debug: 69 172 command.c:91 script_command(): script_command - init Debug: 70 172 command.c:108 script_command(): script_command - init, argv[0]=o cd_init Debug: 71 219 openocd.c:143 handle_init_command(): target init complete Debug: 72 219 ft2232.c:1382 ft2232_init_ftd2xx(): 'ft2232' interface using FTD 2XX with 'signalyzer' layout (0403:bca0) Debug: 73 250 ft2232.c:1471 ft2232_init_ftd2xx(): current latency timer: 2 Debug: 74 266 ft2232.c:1714 usbjtag_init(): 80 18 1b Debug: 75 266 ft2232.c:256 ft2232_speed(): 86 05 00 Debug: 76 266 openocd.c:150 handle_init_command(): jtag interface init complet e Debug: 77 266 jtag.c:1621 jtag_init_inner(): Init JTAG chain Debug: 78 266 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG control ler reset (TLR or TRST) Debug: 79 266 jtag.c:1301 jtag_reset_callback(): - Debug: 80 266 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG control ler reset (TLR or TRST) Debug: 81 266 jtag.c:1301 jtag_reset_callback(): - Error: 82 281 jtag.c:1357 jtag_examine_chain(): JTAG communication failure, ch eck connection, JTAG interface, target power etc. Error: 83 281 jtag.c:1640 jtag_init_inner(): trying to validate configured JTA G chain anyway... Debug: 84 281 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG control ler reset (TLR or TRST) Debug: 85 281 jtag.c:1301 jtag_reset_callback(): - Error: 86 281 jtag.c:1471 jtag_validate_chain(): Error validating JTAG scan ch ain, IR mismatch, scan returned 0x7f Error: 87 281 jtag.c:1645 jtag_init_inner(): Could not validate JTAG chain, co ntinuing anyway... Debug: 88 281 openocd.c:156 handle_init_command(): jtag init complete Debug: 89 281 mips_ejtag.c:259 mips_ejtag_init(): impcode: 0xffffffff Debug: 90 281 mips_ejtag.c:279 mips_ejtag_init(): EJTAG: Unknown Version Detec ted Debug: 91 281 mips_ejtag.c:290 mips_ejtag_init(): EJTAG: features: R3k DINT AS ID_8 ASID_6 MIPS16 noDMA MIPS64 Debug: 92 281 openocd.c:159 handle_init_command(): jtag examine complete Debug: 93 297 openocd.c:165 handle_init_command(): flash init complete Debug: 94 297 openocd.c:169 handle_init_command(): mflash init complete Debug: 95 297 openocd.c:173 handle_init_command(): NAND init complete Debug: 96 297 openocd.c:177 handle_init_command(): pld init complete Debug: 97 469 gdb_server.c:2174 gdb_init(): gdb service for target mips_m4k at port 3333 Warning: 98 469 tcl_server.c:178 tcl_init(): no tcl port specified, using defaul t port 6666 Debug: 99 516 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 100 625 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 101 734 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 102 844 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 103 953 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 104 1062 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 105 1172 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 106 1281 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 107 1391 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 108 1500 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 109 1609 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 110 1719 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 111 1828 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 112 1937 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 113 2047 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 114 2156 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 115 2266 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 116 2375 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 117 2484 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 118 2594 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 119 2703 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 120 2812 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 121 2922 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 122 3031 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 123 3141 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 124 3250 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 125 3359 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 126 3469 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 127 3578 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 128 3687 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 129 3797 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 130 3906 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 131 4016 mips_m4k.c:180 mips_m4k_poll(): Reset Detected Debug: 132 4125 mips_m4k.c:180 mips_m4k_poll(): Reset Detected C:\Program Files\OpenOCD>dir Volume in drive C has no label. Volume Serial Number is 013C-8B73 Directory of C:\Program Files\OpenOCD 02/06/2009 12:01 AM <DIR> . 02/06/2009 12:01 AM <DIR> .. 02/03/2009 09:57 PM <DIR> 0.1.0 02/05/2009 10:36 PM <DIR> doc 02/05/2009 10:36 PM <DIR> ecos 02/05/2009 10:36 PM <DIR> interface 11/11/2008 11:46 PM 18,349 license.txt 02/05/2009 11:59 PM 1,167 openocd.cfg 11/11/2008 11:46 PM 830,976 openocd.exe 11/11/2008 11:46 PM 85 OpenOCD.url 02/06/2009 12:01 AM 0 openocderrs.txt 11/11/2008 11:46 PM 125 OpenOCDWiki.url 11/11/2008 11:46 PM 0 readme.txt 02/05/2009 10:36 PM <DIR> source 02/05/2009 10:39 PM <DIR> target 02/05/2009 10:36 PM 60,672 uninstall.exe 02/05/2009 10:36 PM <DIR> xscale 11/11/2008 11:46 PM 110 Xverve-Documentation.url 11/11/2008 11:46 PM 77 Xverve.url 10 File(s) 911,561 bytes 9 Dir(s) 35,591,925,760 bytes free C:\Program Files\OpenOCD>openocd Open On-Chip Debugger 1.0 (2008-11-05-01:04) svn:1135 BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $ 1000 kHz Error: JTAG communication failure, check connection, JTAG interface, target pow er etc. Error: trying to validate configured JTAG chain anyway... Error: Error validating JTAG scan chain, IR mismatch, scan returned 0x7f Error: Could not validate JTAG chain, continuing anyway... Warning:no tcl port specified, using default port 6666 ---- openocd.cfg: ---- telnet_port 4444 gdb_port 3333 interface ft2232 ft2232_device_desc "Signalyzer A" ft2232_layout signalyzer ft2232_vid_pid 0x0403 0xbca0 jtag_nsrst_delay 100 jtag_ntrst_delay 100 reset_config trst_and_srst separate jtag_device 5 0x1 0x1 0x1e target create target0 mips_m4k -endian big -chain-position 0 jtag_khz 1000 flash bank cfi 0x90000000 0x200000 2 2 0 ---- I welcome any guidance y'all can offer; this is in a TI TNETC4401 cable modem chip. Best, Martin ---- Debug output follows: Debug: 71 219 openocd.c:143 handle_init_command(): target init complete Debug: 72 219 ft2232.c:1382 ft2232_init_ftd2xx(): 'ft2232' interface using FTD 2XX with 'signalyzer' layout (0403:bca0) Debug: 73 250 ft2232.c:1471 ft2232_init_ftd2xx(): current latency timer: 2 Debug: 74 266 ft2232.c:1714 usbjtag_init(): 80 18 1b Debug: 75 266 ft2232.c:256 ft2232_speed(): 86 05 00 Debug: 76 266 openocd.c:150 handle_init_command(): jtag interface init complet e Debug: 77 266 jtag.c:1621 jtag_init_inner(): Init JTAG chain Debug: 78 266 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG control ler reset (TLR or TRST) Debug: 79 266 jtag.c:1301 jtag_reset_callback(): - Debug: 80 266 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG control ler reset (TLR or TRST) Debug: 81 266 jtag.c:1301 jtag_reset_callback(): - Error: 82 281 jtag.c:1357 jtag_examine_chain(): JTAG communication failure, ch eck connection, JTAG interface, target power etc. Error: 83 281 jtag.c:1640 jtag_init_inner(): trying to validate configured JTA G chain anyway... Debug: 84 281 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG control ler reset (TLR or TRST) Debug: 85 281 jtag.c:1301 jtag_reset_callback(): - Error: 86 281 jtag.c:1471 jtag_validate_chain(): Error validating JTAG scan ch ain, IR mismatch, scan returned 0x7f Error: 87 281 jtag.c:1645 jtag_init_inner(): Could not validate JTAG chain, co ntinuing anyway... Debug: 88 281 openocd.c:156 handle_init_command(): jtag init complete Debug: 89 281 mips_ejtag.c:259 mips_ejtag_init(): impcode: 0xffffffff Debug: 90 281 mips_ejtag.c:279 mips_ejtag_init(): EJTAG: Unknown Version Detec ted Debug: 91 281 mips_ejtag.c:290 mips_ejtag_init(): EJTAG: features: R3k DINT AS ID_8 ASID_6 MIPS16 noDMA MIPS64 Debug: 92 281 openocd.c:159 handle_init_command(): jtag examine complete Debug: 93 297 openocd.c:165 handle_init_command(): flash init complete Debug: 94 297 openocd.c:169 handle_init_command(): mflash init complete Debug: 95 297 openocd.c:173 handle_init_command(): NAND init complete Debug: 96 297 openocd.c:177 handle_init_command(): pld init complete Debug: 97 469 gdb_server.c:2174 gdb_init(): gdb service for target mips_m4k at port 3333 Warning: 98 469 tcl_server.c:178 tcl_init(): no tcl port specified, using defaul t port 6666 Debug: 99 516 mips_m4k.c:180 mips_m4k_poll(): Reset Detected _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development