Hi,

I'm trying to use j-link adapter with latest openocd code from git master 
branch on STM32F103 device and it fails with usb_bulk_read failed. On the same 
machine when I use original segger tools in vmware WinXP, it works ok.

Any idea how to fix this?

Thanks,

Damjan


Open On-Chip Debugger 0.5.0-dev-00844-gd6027ca (2011-04-10-13:11)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
Warn : Adapter driver 'jlink' did not declare which transports it allows; 
assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
cortex_m3 reset_config sysresetreq
Info : J-Link initialization started / target CPU reset initiated
Info : J-Link ARM V8 compiled Mar 17 2011 10:43:02
Info : J-Link caps 0xb9ff7bbf
Info : J-Link hw version 80000
Info : J-Link hw type J-Link
Info : J-Link max mem block 8368
Info : J-Link configuration
Info : USB-Address: 0x0
Info : Kickstart power on JTAG-pin 19: 0x1
Info : Vref = 3.325 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 0 TRST = 0
Info : J-Link JTAG Interface ready
Info : clock speed 1000 kHz
Error: usb_bulk_read failed (requested=1, result=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Error: usb_bulk_read failed (requested=1, result=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)
in procedure 'transport'
in procedure 'init'

With debug:

Debug: 203 1819 jlink.c:1474 jlink_usb_open(): usb ep in 81
Debug: 204 1819 jlink.c:1474 jlink_usb_open(): usb ep out 02
Info : 205 1819 jlink.c:424 jlink_init(): J-Link initialization started / 
target CPU reset initiated
Debug: 206 1819 jlink.c:615 jlink_simple_command(): 0xde
Debug: 207 1820 jlink.c:1610 jlink_usb_write(): jlink_usb_write, out_length = 
1, result = 1
Debug: 208 1820 jlink.c:1659 jlink_debug_buffer(): 0000 de
Debug: 209 1820 jlink.c:615 jlink_simple_command(): 0xdc
Debug: 210 1820 jlink.c:1610 jlink_usb_write(): jlink_usb_write, out_length = 
1, result = 1
Debug: 211 1820 jlink.c:1659 jlink_debug_buffer(): 0000 dc
Debug: 212 1821 jlink.c:615 jlink_simple_command(): 0x01
Debug: 213 1821 jlink.c:1610 jlink_usb_write(): jlink_usb_write, out_length = 
1, result = 1
Debug: 214 1821 jlink.c:1659 jlink_debug_buffer(): 0000 01
Debug: 215 1822 jlink.c:1622 jlink_usb_read(): jlink_usb_read, result = 2
Debug: 216 1822 jlink.c:1659 jlink_debug_buffer(): 0000 7f 00
Debug: 217 1822 jlink.c:1622 jlink_usb_read(): jlink_usb_read, result = 0
Error: 218 1822 jlink.c:798 jlink_get_version_info(): J-Link command 
EMU_CMD_VERSION failed (0)
Info : 219 1822 jlink.c:437 jlink_init(): J-Link JTAG Interface ready
Debug: 220 1822 jlink.c:588 jlink_reset(): trst: 0, srst: 0
Debug: 221 1822 jlink.c:615 jlink_simple_command(): 0xdd
Debug: 222 1822 jlink.c:1610 jlink_usb_write(): jlink_usb_write, out_length = 
1, result = 1
Debug: 223 1822 jlink.c:1659 jlink_debug_buffer(): 0000 dd
Debug: 224 1822 jlink.c:615 jlink_simple_command(): 0xdf
Debug: 225 1823 jlink.c:1610 jlink_usb_write(): jlink_usb_write, out_length = 
1, result = 1
Debug: 226 1823 jlink.c:1659 jlink_debug_buffer(): 0000 df
Debug: 227 1826 log.c:437 keep_alive(): keep_alive() was not invoked in the 
1000ms timelimit (1826). This may cause trouble with GDB connections.
Debug: 229 1826 core.c:1591 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 230 1826 core.c:1595 adapter_khz_to_speed(): have interface set up
Debug: 231 3170 jlink.c:1610 jlink_usb_write(): jlink_usb_write, out_length = 
3, result = 3
Debug: 232 3170 jlink.c:1659 jlink_debug_buffer(): 0000 05 e8 03
Debug: 233 3170 interface.c:411 jtag_debug_state_machine(): TAP/SM: START 
state: RESET
Debug: 234 3170 interface.c:417 jtag_debug_state_machine(): TAP/SM: TMS bits: 8 
(bytes: 1)
Debug: 235 3170 interface.c:462 jtag_debug_state_machine(): TAP/SM:     RESET 
-> RESET  TMS: 11111111   TDI: 00000000
Debug: 236 3170 interface.c:465 jtag_debug_state_machine(): TAP/SM: FINAL 
state: RESET
Debug: 237 5170 jlink.c:1610 jlink_usb_write(): jlink_usb_write, out_length = 
6, result = 6
Debug: 238 5170 jlink.c:1659 jlink_debug_buffer(): 0000 ce 00 08 00 ff 00
Debug: 239 5170 jlink.c:1622 jlink_usb_read(): jlink_usb_read, result = -84
Error: 240 5170 jlink.c:1509 jlink_usb_message(): usb_bulk_read failed 
(requested=1, result=-84)
Error: 241 5170 jlink.c:1372 jlink_tap_execute(): jlink_tap_execute, wrong 
result -107 (expected 1)
Debug: 242 5170 core.c:1591 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 243 5170 core.c:1595 adapter_khz_to_speed(): have interface set up
Debug: 244 5170 core.c:1591 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 245 5170 core.c:1595 adapter_khz_to_speed(): have interface set up
Info : 246 5170 core.c:1410 adapter_init(): clock speed 1000 kHz
Debug: 247 5170 openocd.c:137 handle_init_command(): Debug Adapter init complete
Debug: 248 5170 command.c:151 script_debug(): command - ocd_command ocd_command 
type ocd_transport init
Debug: 249 5170 command.c:151 script_debug(): command - ocd_transport 
ocd_transport init
Debug: 250 5170 log.c:437 keep_alive(): keep_alive() was not invoked in the 
1000ms timelimit (3344). This may cause trouble with GDB connections.
Debug: 253 5170 transport.c:255 handle_transport_init(): handle_transport_init
Debug: 254 5171 jlink.c:307 jlink_execute_reset(): reset trst: 0 srst 0
Debug: 255 5171 jlink.c:588 jlink_reset(): trst: 0, srst: 0
Debug: 256 5171 jlink.c:615 jlink_simple_command(): 0xdd
Debug: 257 7171 jlink.c:1610 jlink_usb_write(): jlink_usb_write, out_length = 
1, result = 1
Debug: 258 7171 jlink.c:1659 jlink_debug_buffer(): 0000 dd
Debug: 259 7171 jlink.c:615 jlink_simple_command(): 0xdf
Debug: 260 7825 jlink.c:1610 jlink_usb_write(): jlink_usb_write, out_length = 
1, result = 1
Debug: 261 7825 jlink.c:1659 jlink_debug_buffer(): 0000 df
Debug: 262 7825 core.c:713 jtag_add_reset(): SRST line released
Debug: 263 7825 log.c:437 keep_alive(): keep_alive() was not invoked in the 
1000ms timelimit (2655). This may cause trouble with GDB connections.
Debug: 265 7825 core.c:737 jtag_add_reset(): TRST line released
Debug: 266 7825 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 267 7825 jlink.c:316 jlink_execute_sleep(): sleep 100000
Debug: 268 7925 jlink.c:316 jlink_execute_sleep(): sleep 100000
Debug: 269 8027 command.c:151 script_debug(): command - ocd_command ocd_command 
type ocd_jtag arp_init
Debug: 270 8027 command.c:151 script_debug(): command - ocd_jtag ocd_jtag 
arp_init
Debug: 271 8027 core.c:1424 jtag_init_inner(): Init JTAG chain
Debug: 272 8027 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 273 8027 jlink.c:269 jlink_execute_statemove(): statemove end in 15
Debug: 274 8027 jlink.c:494 jlink_state_move(): tap_set_state(RESET)
Debug: 275 8027 interface.c:411 jtag_debug_state_machine(): TAP/SM: START 
state: RESET
Debug: 276 8027 interface.c:417 jtag_debug_state_machine(): TAP/SM: TMS bits: 7 
(bytes: 1)
Debug: 277 8027 interface.c:462 jtag_debug_state_machine(): TAP/SM:     RESET 
-> RESET  TMS: 1111111    TDI: 0000000
Debug: 278 8027 interface.c:465 jtag_debug_state_machine(): TAP/SM: FINAL 
state: RESET
Debug: 279 8028 jlink.c:1610 jlink_usb_write(): jlink_usb_write, out_length = 
6, result = 6
Debug: 280 8028 jlink.c:1659 jlink_debug_buffer(): 0000 ce 00 07 00 7f 00
Debug: 281 8028 jlink.c:1622 jlink_usb_read(): jlink_usb_read, result = -32
Error: 282 8028 jlink.c:1509 jlink_usb_message(): usb_bulk_read failed 
(requested=1, result=-32)
Error: 283 8028 jlink.c:1372 jlink_tap_execute(): jlink_tap_execute, wrong 
result -107 (expected 1)
Debug: 284 8028 command.c:151 script_debug(): command - ocd_command ocd_command 
type ocd_jtag arp_init-reset
Debug: 285 8028 command.c:151 script_debug(): command - ocd_jtag ocd_jtag 
arp_init-reset
Debug: 286 8028 core.c:1519 jtag_init_reset(): Initializing with hard TRST+SRST 
reset
Debug: 287 8028 core.c:726 jtag_add_reset(): JTAG reset with TLR instead of TRST
Debug: 288 8028 core.c:329 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 289 8028 jlink.c:269 jlink_execute_statemove(): statemove end in 15
Debug: 290 8028 jlink.c:494 jlink_state_move(): tap_set_state(RESET)
Debug: 291 8028 interface.c:411 jtag_debug_state_machine(): TAP/SM: START 
state: RESET
Debug: 292 8028 interface.c:417 jtag_debug_state_machine(): TAP/SM: TMS bits: 7 
(bytes: 1)
Debug: 293 8028 interface.c:462 jtag_debug_state_machine(): TAP/SM:     RESET 
-> RESET  TMS: 1111111    TDI: 0000000
Debug: 294 8028 interface.c:465 jtag_debug_state_machine(): TAP/SM: FINAL 
state: RESET
Debug: 295 8028 jlink.c:1610 jlink_usb_write(): jlink_usb_write, out_length = 
6, result = 6
Debug: 296 8028 jlink.c:1659 jlink_debug_buffer(): 0000 ce 00 07 00 7f 00
Debug: 297 8029 jlink.c:1622 jlink_usb_read(): jlink_usb_read, result = -32
Error: 298 8029 jlink.c:1509 jlink_usb_message(): usb_bulk_read failed 
(requested=1, result=-32)
Error: 299 8029 jlink.c:1372 jlink_tap_execute(): jlink_tap_execute, wrong 
result -107 (expected 1)
Debug: 300 8029 command.c:638 run_command(): Command failed with error code -4
User : 301 8029 command.c:679 command_run_line(): in procedure 'transport'
Debug: 302 8029 command.c:638 run_command(): Command failed with error code -4
User : 303 8029 command.c:679 command_run_line(): in procedure 'init'


_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to