On Sat, Aug 13, 2011 at 12:45 AM, Xiaofan Chen <[email protected]> wrote:
> Actually I think a easier way is now that you know 4.14g and
> lower firmware versions work whereas 4.14h and higher version
> firmware versions do not work. So a debug capture from OpenOCD
> may be already good enough to pinpoint the problem
> (with the "--enable-verbose-usb-comms" build option).
>
> An example from Spen last time. You can see that thread helped.
> http://lists.berlios.de/pipermail/openocd-development/2009-May/007464.html

Here is the zip file which contains the connection logs of V3,
V6, V7 and V8 J-Link (to a TI/Luminary EK-LM3S1968 demo
board). The V7 is an ADI OEM version, the V3, V6 and V8 are
all IAR OEM version, all have been updated to their latest
supported firmware version under Windows. The logs are captured
with OpenOCD-0.5.0 release under 32bit Ubuntu 11.04.
http://code.google.com/p/picusb/downloads/detail?name=Openocd_usblog_Jlink.zip

The init sequence is apparently quite different from Segger's
own utility. However, the good logs (V3, V6 and V7) are almost the same
as the bad one at the beginning. But then the difference is here.

V8:
Debug: 255 497 openocd.c:137 handle_init_command(): Debug Adapter init complete
Debug: 256 497 command.c:151 script_debug(): command - ocd_command
ocd_command type ocd_transport init
Debug: 257 497 command.c:151 script_debug(): command - ocd_transport
ocd_transport init
Debug: 259 497 transport.c:255 handle_transport_init(): handle_transport_init
Debug: 260 497 jlink.c:583 jlink_reset(): trst: 0, srst: 0
Debug: 261 500 jlink.c:1654 jlink_debug_buffer(): 0000 dd
Debug: 262 503 jlink.c:1654 jlink_debug_buffer(): 0000 df
Debug: 263 503 core.c:713 jtag_add_reset(): SRST line released
Debug: 264 503 core.c:737 jtag_add_reset(): TRST line released
Debug: 265 503 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 266 503 command.c:151 script_debug(): command - ocd_command
ocd_command type ocd_jtag arp_init
Debug: 267 503 command.c:151 script_debug(): command - ocd_jtag
ocd_jtag arp_init
Debug: 268 503 core.c:1435 jtag_init_inner(): Init JTAG chain
Debug: 269 503 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 270 506 jlink.c:1654 jlink_debug_buffer(): 0000 cf 00 07 00 7f 00
Error: 271 507 jlink.c:1504 jlink_usb_message(): usb_bulk_read failed
(requested=1, result=0)
Error: 272 507 jlink.c:1367 jlink_tap_execute(): jlink_tap_execute,
wrong result -107 (expected 1)
Debug: 273 507 command.c:151 script_debug(): command - ocd_command
ocd_command type ocd_jtag arp_init-reset
Debug: 274 507 command.c:151 script_debug(): command - ocd_jtag
ocd_jtag arp_init-reset
Debug: 275 507 core.c:1530 jtag_init_reset(): Initializing with hard
TRST+SRST reset
Debug: 276 507 core.c:726 jtag_add_reset(): JTAG reset with TLR instead of TRST
Debug: 277 507 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 278 510 jlink.c:1654 jlink_debug_buffer(): 0000 cf 00 07 00 7f 00
Debug: 279 511 jlink.c:1654 jlink_debug_buffer(): 0000 7f
Debug: 280 514 jlink.c:1654 jlink_debug_buffer(): 0000 00
Debug: 281 514 core.c:1435 jtag_init_inner(): Init JTAG chain
Debug: 282 514 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 283 515 jlink.c:1654 jlink_debug_buffer(): 0000 cf 00 07 00 7f 00
Error: 284 518 jlink.c:1504 jlink_usb_message(): usb_bulk_read failed
(requested=1, result=0)
Error: 285 518 jlink.c:1367 jlink_tap_execute(): jlink_tap_execute,
wrong result -107 (expected 1)
Debug: 286 518 command.c:638 run_command(): Command failed with error code -4
User : 287 518 command.c:679 command_run_line(): in procedure 'transport'
Debug: 288 518 command.c:638 run_command(): Command failed with error code -4
User : 289 518 command.c:679 command_run_line(): in procedure 'init'

V6:
Debug: 255 497 openocd.c:137 handle_init_command(): Debug Adapter init complete
Debug: 256 497 command.c:151 script_debug(): command - ocd_command
ocd_command type ocd_transport init
Debug: 257 497 command.c:151 script_debug(): command - ocd_transport
ocd_transport init
Debug: 259 498 transport.c:255 handle_transport_init(): handle_transport_init
Debug: 260 498 jlink.c:583 jlink_reset(): trst: 0, srst: 0
Debug: 261 500 jlink.c:1654 jlink_debug_buffer(): 0000 dd
Debug: 262 503 jlink.c:1654 jlink_debug_buffer(): 0000 df
Debug: 263 503 core.c:713 jtag_add_reset(): SRST line released
Debug: 264 503 core.c:737 jtag_add_reset(): TRST line released
Debug: 265 503 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 266 503 command.c:151 script_debug(): command - ocd_command
ocd_command type ocd_jtag arp_init
Debug: 267 503 command.c:151 script_debug(): command - ocd_jtag
ocd_jtag arp_init
Debug: 268 503 core.c:1435 jtag_init_inner(): Init JTAG chain
Debug: 269 504 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 270 506 jlink.c:1654 jlink_debug_buffer(): 0000 cf 00 07 00 7f 00
Debug: 271 507 jlink.c:1654 jlink_debug_buffer(): 0000 7f
Debug: 272 510 jlink.c:1654 jlink_debug_buffer(): 0000 00
Debug: 273 510 core.c:1055 jtag_examine_chain(): DR scan interrogation
for IDCODE/BYPASS
Debug: 274 510 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset
...

-- 
Xiaofan
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to