Hi there,
I'm trying to use a v7 Jlink board with a MIPS based board. I'm
seeing an error message when I try to halt it, as shown below. (The
board does seem to halt, based on activity stopping on the serial
port, but at that point openocd has already exited.)
thanks!
-S
Open On-Chip Debugger 0.2.0-in-development (2009-08-08-15:14) svn:2578
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
For bug reports, read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
User : 5 0 command.c:396 command_print(): debug_level: 3
Debug: 6 0 configuration.c:83 find_file(): found
/usr/local/share/openocd/scripts/interface/jlink.cfg
Debug: 8 0 command.c:68 script_debug(): command - interface
Debug: 9 0 command.c:77 script_debug(): interface - argv[0]=ocd_interface
Debug: 10 0 command.c:77 script_debug(): interface - argv[1]=jlink
Debug: 11 0 configuration.c:83 find_file(): found
/usr/local/share/openocd/scripts/board/newvantage.cfg
Debug: 12 0 configuration.c:83 find_file(): found
/usr/local/share/openocd/scripts/target/smp8634.cfg
Debug: 14 0 command.c:68 script_debug(): command - jtag_khz
Debug: 15 0 command.c:77 script_debug(): jtag_khz - argv[0]=ocd_jtag_khz
Debug: 16 0 command.c:77 script_debug(): jtag_khz - argv[1]=1
Debug: 17 0 core.c:1268 jtag_config_khz(): handle jtag khz
User : 18 0 command.c:396 command_print(): 1 kHz
Debug: 20 1 command.c:68 script_debug(): command - jtag_nsrst_delay
Debug: 21 1 command.c:77 script_debug(): jtag_nsrst_delay -
argv[0]=ocd_jtag_nsrst_delay
Debug: 22 1 command.c:77 script_debug(): jtag_nsrst_delay - argv[1]=200
User : 23 1 command.c:396 command_print(): jtag_nsrst_delay: 200
Debug: 25 1 command.c:68 script_debug(): command - jtag_ntrst_delay
Debug: 26 1 command.c:77 script_debug(): jtag_ntrst_delay -
argv[0]=ocd_jtag_ntrst_delay
Debug: 27 1 command.c:77 script_debug(): jtag_ntrst_delay - argv[1]=200
User : 28 1 command.c:396 command_print(): jtag_ntrst_delay: 200
Debug: 30 1 command.c:68 script_debug(): command - reset_config
Debug: 31 1 command.c:77 script_debug(): reset_config -
argv[0]=ocd_reset_config
Debug: 32 1 command.c:77 script_debug(): reset_config - argv[1]=trst_and_srst
Debug: 33 1 command.c:77 script_debug(): reset_config - argv[2]=separate
Debug: 34 1 tcl.c:237 jim_newtap_cmd(): Creating New Tap, Chip:
smp8634, Tap: cpu, Dotted: smp8634.cpu, 6 params
Debug: 35 1 tcl.c:253 jim_newtap_cmd(): Processing option: -irlen
Debug: 36 1 tcl.c:253 jim_newtap_cmd(): Processing option: -ircapture
Debug: 37 1 tcl.c:253 jim_newtap_cmd(): Processing option: -irmask
Debug: 38 1 core.c:1116 jtag_tap_init(): Created Tap: smp8634.cpu @
abs position 0, irlen 5, capture: 0x1 mask: 0x1
Debug: 39 1 target.c:4295 jim_target(): Target command params:
Debug: 40 1 target.c:4296 jim_target(): target create smp8634.cpu
mips_m4k -endian little -chain-position smp8634.cpu
Debug: 42 1 command.c:68 script_debug(): command - bank
Debug: 43 1 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank
Debug: 44 1 command.c:77 script_debug(): bank - argv[1]=cfi
Debug: 45 1 command.c:77 script_debug(): bank - argv[2]=0xac000000
Debug: 46 1 command.c:77 script_debug(): bank - argv[3]=0x4000000
Debug: 47 1 command.c:77 script_debug(): bank - argv[4]=2
Debug: 48 1 command.c:77 script_debug(): bank - argv[5]=2
Debug: 49 1 command.c:77 script_debug(): bank - argv[6]=0
Debug: 51 1 command.c:68 script_debug(): command - init
Debug: 52 1 command.c:77 script_debug(): init - argv[0]=ocd_init
Debug: 53 1 openocd.c:129 handle_init_command(): target init complete
Debug: 54 456 jlink.c:941 jlink_usb_open(): usb ep in 81
Debug: 55 457 jlink.c:941 jlink_usb_open(): usb ep out 02
Info : 56 457 jlink.c:328 jlink_init(): J-Link initialization started
/ target CPU reset initiated
Info : 57 463 jlink.c:580 jlink_get_version_info(): J-Link ARM V7
compiled Jun 30 2009 11:05:27
Info : 58 465 jlink.c:593 jlink_get_version_info(): JLink caps 0xb9ff7bbf
Info : 59 467 jlink.c:612 jlink_get_version_info(): JLink hw version 70000
Info : 60 469 jlink.c:628 jlink_get_version_info(): JLink max mem block 9152
Info : 61 471 jlink.c:541 jlink_get_status(): Vref = 3.280 TCK = 1
TDI = 0 TDO = 0 TMS = 0 SRST = 0 TRST = 0
Info : 62 471 jlink.c:341 jlink_init(): J-Link JTAG Interface ready
Debug: 63 471 jlink.c:486 jlink_reset(): trst: 0, srst: 0
Debug: 64 487 openocd.c:136 handle_init_command(): jtag interface init complete
Debug: 65 487 core.c:1161 jtag_init_inner(): Init JTAG chain
Debug: 66 487 core.c:291 jtag_call_event_callbacks(): jtag event:
JTAG controller reset (RESET or TRST)
Debug: 67 487 core.c:807 jtag_reset_callback(): -
Error: 68 1162 core.c:865 jtag_examine_chain_check(): JTAG
communication failure: check connection, JTAG interface, target power etc.
Error: 69 1162 core.c:1176 jtag_init_inner(): trying to validate
configured JTAG chain anyway...
Debug: 70 1186 openocd.c:142 handle_init_command(): jtag init complete
Debug: 71 1297 mips_ejtag.c:248 mips_ejtag_init(): impcode: 0x40414000
Debug: 72 1297 mips_ejtag.c:262 mips_ejtag_init(): EJTAG: Version 2.6 Detected
Debug: 73 1297 mips_ejtag.c:279 mips_ejtag_init(): EJTAG: features:
R4k ASID_8 MIPS16 noDMA MIPS32
Debug: 74 1297 openocd.c:145 handle_init_command(): jtag examine complete
Debug: 75 1297 openocd.c:151 handle_init_command(): flash init complete
Debug: 76 1297 openocd.c:155 handle_init_command(): mflash init complete
Debug: 77 1297 openocd.c:159 handle_init_command(): NAND init complete
Debug: 78 1297 openocd.c:163 handle_init_command(): pld init complete
Debug: 79 1297 gdb_server.c:2242 gdb_init(): gdb service for target
mips_m4k at port 3333
Debug: 80 1401 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 81 1492 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 82 1596 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 83 1700 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 84 1804 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 85 1908 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 86 2013 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 87 2117 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 88 2221 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 89 2325 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 90 2428 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 91 2532 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 92 2636 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 93 2740 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 94 2844 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 95 2948 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 96 3052 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 97 3156 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 98 3260 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 99 3364 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 100 3468 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Debug: 101 3572 mips_m4k.c:179 mips_m4k_poll(): Reset Detected
Info : 102 6625 server.c:79 add_connection(): accepting 'telnet'
connection from 0
Debug: 104 9467 command.c:68 script_debug(): command - halt
Debug: 105 9467 command.c:77 script_debug(): halt - argv[0]=ocd_halt
Debug: 106 9467 target.c:1955 handle_halt_command(): -
Debug: 107 9467 mips_m4k.c:223 mips_m4k_halt(): target->state: running
Debug: 108 9549 mips_ejtag.c:198 mips_ejtag_enter_debug():
ejtag_ctrl: 0x4004c008
Error: 109 9819 jlink.c:232 jlink_execute_command(): BUG: unknown
JTAG command type encountered
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development