Hi all,

I am getting "BUG: unknown debug reason: 0x0" when using OpenOCD on
iMX ARM9 processor.

In the chain there is a TAP device with NO ID and NO IR-Capture (SDMA).

On iMX31 processor (ARM11) also exists this a TAP device with NO ID
and NO IR-Capture, but that kind of error doesn't happen.

Some idea about this error? Please see debug message below.

Best Regards,

Alan

Open On-Chip Debugger 1.0 (2009-01-19-10:03) svn:1340


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 0 command.c:494 command_run_line():
Debug: 6 0 configuration.c:88 find_file(): found /home/alan/axm0432.cfg
Debug: 8 0 command.c:91 script_command(): script_command - interface
Debug: 9 0 command.c:108 script_command(): script_command - interface,
argv[0]=ocd_interface
Debug: 10 0 command.c:108 script_command(): script_command -
interface, argv[1]=ft2232
Debug: 12 0 command.c:91 script_command(): script_command - ft2232_device_desc
Debug: 13 0 command.c:108 script_command(): script_command -
ft2232_device_desc, argv[0]=ocd_ft2232_device_desc
Debug: 14 0 command.c:108 script_command(): script_command -
ft2232_device_desc, argv[1]=Symphony SoundBite A
Debug: 16 0 command.c:91 script_command(): script_command - ft2232_layout
Debug: 17 0 command.c:108 script_command(): script_command -
ft2232_layout, argv[0]=ocd_ft2232_layout
Debug: 18 0 command.c:108 script_command(): script_command -
ft2232_layout, argv[1]=axm0432_jtag
Debug: 20 0 command.c:91 script_command(): script_command - ft2232_vid_pid
Debug: 21 0 command.c:108 script_command(): script_command -
ft2232_vid_pid, argv[0]=ocd_ft2232_vid_pid
Debug: 22 0 command.c:108 script_command(): script_command -
ft2232_vid_pid, argv[1]=0x0403
Debug: 23 0 command.c:108 script_command(): script_command -
ft2232_vid_pid, argv[2]=0x6010
Debug: 25 1 command.c:91 script_command(): script_command - jtag_khz
Debug: 26 1 command.c:108 script_command(): script_command - jtag_khz,
argv[0]=ocd_jtag_khz
Debug: 27 1 command.c:108 script_command(): script_command - jtag_khz,
argv[1]=1000
Debug: 28 1 jtag.c:2645 handle_jtag_khz_command(): handle jtag khz
User : 29 1 command.c:383 command_print(): 1000 kHz
Debug: 31 1 command.c:91 script_command(): script_command - reset_config
Debug: 32 1 command.c:108 script_command(): script_command -
reset_config, argv[0]=ocd_reset_config
Debug: 33 1 command.c:108 script_command(): script_command -
reset_config, argv[1]=trst_and_srst
Debug: 34 1 command.c:108 script_command(): script_command -
reset_config, argv[2]=srst_pulls_trst
User : 35 1 command.c:494 command_run_line():
Debug: 36 1 configuration.c:88 find_file(): found imx.cfg
Debug: 38 1 command.c:91 script_command(): script_command - reset_config
Debug: 39 1 command.c:108 script_command(): script_command -
reset_config, argv[0]=ocd_reset_config
Debug: 40 1 command.c:108 script_command(): script_command -
reset_config, argv[1]=trst_and_srst
Debug: 41 1 jtag.c:1892 jim_newtap_cmd(): Creating New Tap, Chip: imx,
Tap: bs, Dotted: imx.bs, 8 params
Debug: 42 1 jtag.c:1911 jim_newtap_cmd(): Processing option: -irlen
Debug: 43 1 jtag.c:1911 jim_newtap_cmd(): Processing option: -ircapture
Debug: 44 1 jtag.c:1911 jim_newtap_cmd(): Processing option: -irmask
Debug: 45 1 jtag.c:1911 jim_newtap_cmd(): Processing option: -expected-id
Debug: 46 1 jtag.c:2024 jim_newtap_cmd(): Created Tap: imx.bs @ abs
position 0, irlen 4, capture: 0x0 mask: 0x0
Debug: 47 1 jtag.c:1892 jim_newtap_cmd(): Creating New Tap, Chip: imx,
Tap: cpu, Dotted: imx.cpu, 8 params
Debug: 48 1 jtag.c:1911 jim_newtap_cmd(): Processing option: -irlen
Debug: 49 1 jtag.c:1911 jim_newtap_cmd(): Processing option: -ircapture
Debug: 50 1 jtag.c:1911 jim_newtap_cmd(): Processing option: -irmask
Debug: 51 1 jtag.c:1911 jim_newtap_cmd(): Processing option: -expected-id
Debug: 52 1 jtag.c:2024 jim_newtap_cmd(): Created Tap: imx.cpu @ abs
position 1, irlen 4, capture: 0x1 mask: 0xf
Debug: 53 1 jtag.c:1892 jim_newtap_cmd(): Creating New Tap, Chip: imx,
Tap: sdma, Dotted: imx.sdma, 8 params
Debug: 54 2 jtag.c:1911 jim_newtap_cmd(): Processing option: -irlen
Debug: 55 2 jtag.c:1911 jim_newtap_cmd(): Processing option: -ircapture
Debug: 56 2 jtag.c:1911 jim_newtap_cmd(): Processing option: -irmask
Debug: 57 2 jtag.c:1911 jim_newtap_cmd(): Processing option: -expected-id
Debug: 58 2 jtag.c:2024 jim_newtap_cmd(): Created Tap: imx.sdma @ abs
position 2, irlen 4, capture: 0x0 mask: 0x0
Debug: 59 2 jtag.c:1892 jim_newtap_cmd(): Creating New Tap, Chip: imx,
Tap: sjc, Dotted: imx.sjc, 8 params
Debug: 60 2 jtag.c:1911 jim_newtap_cmd(): Processing option: -irlen
Debug: 61 2 jtag.c:1911 jim_newtap_cmd(): Processing option: -ircapture
Debug: 62 2 jtag.c:1911 jim_newtap_cmd(): Processing option: -irmask
Debug: 63 2 jtag.c:1911 jim_newtap_cmd(): Processing option: -expected-id
Debug: 64 2 jtag.c:2024 jim_newtap_cmd(): Created Tap: imx.sjc @ abs
position 3, irlen 5, capture: 0x1 mask: 0x1f
Debug: 65 2 target.c:3911 jim_target(): Target command params:
Debug: 66 2 target.c:3912 jim_target(): target create imx.cpu
arm926ejs -endian little -chain-position imx.cpu -variant arm926ejs
Debug: 68 2 command.c:91 script_command(): script_command - dcc_downloads
Debug: 69 2 command.c:108 script_command(): script_command -
dcc_downloads, argv[0]=ocd_arm7_9_dcc_downloads
Debug: 70 2 command.c:108 script_command(): script_command -
dcc_downloads, argv[1]=enable
User : 71 2 command.c:383 command_print(): dcc downloads are enabled
User : 72 2 command.c:494 command_run_line():
Debug: 74 2 command.c:91 script_command(): script_command - init
Debug: 75 2 command.c:108 script_command(): script_command - init,
argv[0]=ocd_init
Debug: 76 2 openocd.c:145 handle_init_command(): target init complete
Debug: 77 2 ft2232.c:1463 ft2232_init_ftd2xx(): 'ft2232' interface
using FTD2XX with 'axm0432_jtag' layout (0403:6010)
Debug: 78 457 ft2232.c:1550 ft2232_init_ftd2xx(): current latency timer: 2
Debug: 79 457 ft2232.c:1816 axm0432_jtag_init(): 80 08 2b
Debug: 80 459 ft2232.c:1862 axm0432_jtag_init(): 82 0c 0c
Debug: 81 461 ft2232.c:276 ft2232_speed(): 86 05 00
Debug: 82 466 openocd.c:152 handle_init_command(): jtag interface init complete
Debug: 83 468 jtag.c:2240 jtag_init_inner(): Init JTAG chain
Debug: 84 468 jtag.c:434 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (RESET or TRST)
Debug: 85 468 jtag.c:1487 jtag_reset_callback(): -
Debug: 86 468 jtag.c:1487 jtag_reset_callback(): -
Debug: 87 468 jtag.c:1487 jtag_reset_callback(): -
Debug: 88 468 jtag.c:1487 jtag_reset_callback(): -
Debug: 89 469 jtag.c:434 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (RESET or TRST)
Debug: 90 469 jtag.c:1487 jtag_reset_callback(): -
Debug: 91 469 jtag.c:1487 jtag_reset_callback(): -
Debug: 92 469 jtag.c:1487 jtag_reset_callback(): -
Debug: 93 469 jtag.c:1487 jtag_reset_callback(): -
Info : 94 471 jtag.c:1607 jtag_examine_chain(): JTAG tap: imx.bs
tap/device found: 0x1b900f0f (Manufacturer: 0x787, Part: 0xb900,
Version: 0x1)
Info : 95 471 jtag.c:1645 jtag_examine_chain(): JTAG Tap/device matched
Info : 96 471 jtag.c:1607 jtag_examine_chain(): JTAG tap: imx.cpu
tap/device found: 0x07926041 (Manufacturer: 0x020, Part: 0x7926,
Version: 0x0)
Info : 97 471 jtag.c:1645 jtag_examine_chain(): JTAG Tap/device matched
Warn : 98 471 jtag.c:1560 jtag_examine_chain(): Tap/Device does not have IDCODE
Info : 99 471 jtag.c:1645 jtag_examine_chain(): JTAG Tap/device matched
Info : 100 471 jtag.c:1607 jtag_examine_chain(): JTAG tap: imx.sjc
tap/device found: 0x0882301d (Manufacturer: 0x00e, Part: 0x8823,
Version: 0x0)
Info : 101 471 jtag.c:1645 jtag_examine_chain(): JTAG Tap/device matched
Debug: 102 471 jtag.c:434 jtag_call_event_callbacks(): jtag event:
JTAG controller reset (RESET or TRST)
Debug: 103 471 jtag.c:1487 jtag_reset_callback(): -
Debug: 104 471 jtag.c:1487 jtag_reset_callback(): -
Debug: 105 471 jtag.c:1487 jtag_reset_callback(): -
Debug: 106 471 jtag.c:1487 jtag_reset_callback(): -
Error: 107 473 jtag.c:1718 jtag_validate_chain(): Could not validate
JTAG scan chain, IR mismatch, scan returned 0x061011. tap=imx.sdma
pos=8 expected 0x1 got 0
Warn : 108 473 jtag.c:2260 jtag_init_inner(): Could not validate JTAG
chain, continuing anyway...
Debug: 109 473 openocd.c:158 handle_init_command(): jtag init complete
Debug: 110 477 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000000
Debug: 111 478 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000
Debug: 112 478 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000
Debug: 113 478 openocd.c:161 handle_init_command(): jtag examine complete
Debug: 114 478 openocd.c:167 handle_init_command(): flash init complete
Debug: 115 478 openocd.c:171 handle_init_command(): mflash init complete
Debug: 116 478 openocd.c:175 handle_init_command(): NAND init complete
Debug: 117 478 openocd.c:179 handle_init_command(): pld init complete
Warn : 118 478 telnet_server.c:612 telnet_init(): no telnet port
specified, using default port 4444
Warn : 119 478 gdb_server.c:2201 gdb_init(): no gdb port specified,
using default port 3333
Debug: 120 478 gdb_server.c:2225 gdb_init(): gdb service for target
arm926ejs at port 3333
Warn : 121 478 tcl_server.c:178 tcl_init(): no tcl port specified,
using default port 6666
User : 122 478 command.c:494 command_run_line():
Warn : 123 491 arm7_9_common.c:736 arm7_9_poll(): DBGACK set while
target was in unknown state. Reset or initialize target.
Debug: 124 491 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 125 491 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 126 493 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
Debug: 127 711 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 128 711 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 129 713 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
Debug: 130 919 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 131 919 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 132 921 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
Debug: 133 1139 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 134 1139 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 135 1141 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
Debug: 136 1358 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 137 1358 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 138 1362 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
Debug: 139 1570 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 140 1570 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 141 1572 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
Debug: 142 1788 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 143 1788 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 144 1790 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
Debug: 145 2001 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 146 2001 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 147 2003 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
Debug: 148 2207 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 149 2207 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 150 2211 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
Debug: 151 2416 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 152 2417 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 153 2418 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
Debug: 154 2636 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 155 2636 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 156 2638 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
Debug: 157 2856 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 158 2856 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 159 2858 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
Debug: 160 3076 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 161 3076 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Error: 162 3078 arm926ejs.c:366 arm926ejs_examine_debug_reason(): BUG:
unknown debug reason: 0x0
^C
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to