SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By mar90co
#186282
Hello,

I am not getting my Jlink debug probe and OpenOCD to work. The JLink is Hardware Version V9 (which is based on STM32F205).
I can not find in the documentation, if OpenOCD will work with Firmware Version V9, so first I tried to downgrade the FW which also didn't work (maybe because they changed the microcontroller inside the JLink?)

My JLink has the following versions:
Firmware: J-Link V9 compiled OCT 18 2013 17:37:30
Hardware: V9.00

I am running Windows 7 64 bit.

When trying to open the JLink with openOCD I get the following messages:
openocd.exe -d3 -f interface/jlink.cfg
Code: Select all
Open On-Chip Debugger 0.9.0 (2015-05-19-12:09)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
User : 13 2 command.c:546 command_print(): debug_level: 3
Debug: 14 2 options.c:98 add_default_dirs(): bindir=bin-x64
Debug: 15 3 options.c:99 add_default_dirs(): pkgdatadir=
Debug: 16 3 options.c:100 add_default_dirs(): run_prefix=D:/Software/openocd-0.9.0/openocd-0.9.0/
Debug: 17 3 configuration.c:44 add_script_search_dir(): adding C:\Users\Behr\AppData\Roaming/OpenOCD
Debug: 18 3 configuration.c:44 add_script_search_dir(): adding D:/Software/openocd-0.9.0/openocd-0.9.0//site
Debug: 19 4 configuration.c:44 add_script_search_dir(): adding D:/Software/openocd-0.9.0/openocd-0.9.0//scripts
Debug: 20 5 configuration.c:84 find_file(): found D:/Software/openocd-0.9.0/openocd-0.9.0//scripts/interface/my.cfg
Debug: 21 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_interface jlink
Debug: 22 7 command.c:145 script_debug(): command - interface ocd_interface jlink
Debug: 24 7 command.c:325 command_new(): BUG: command 'jlink' does not have the '.usage' field filled out
Debug: 25 7 command.c:325 command_new(): BUG: command 'jlink caps' does not have the '.usage' field filled out
Debug: 26 8 command.c:366 register_command_handler(): registering 'ocd_jlink'...
Debug: 27 8 command.c:325 command_new(): BUG: command 'jlink info' does not have the '.usage' field filled out
Debug: 28 8 command.c:366 register_command_handler(): registering 'ocd_jlink'...
Debug: 29 9 command.c:366 register_command_handler(): registering 'ocd_jlink'...
Debug: 30 9 command.c:325 command_new(): BUG: command 'jlink config' does not have the '.usage' field filled out
Debug: 31 9 command.c:366 register_command_handler(): registering 'ocd_jlink'...
Debug: 32 10 command.c:366 register_command_handler(): registering 'ocd_jlink'...
Debug: 33 10 command.c:366 register_command_handler(): registering 'ocd_jlink'...
Debug: 34 10 command.c:366 register_command_handler(): registering 'ocd_jlink'...
Debug: 35 10 command.c:325 command_new(): BUG: command 'config reset' does not have the '.usage' field filled out
Debug: 36 11 command.c:366 register_command_handler(): registering 'ocd_jlink'...
Debug: 37 11 command.c:325 command_new(): BUG: command 'config save' does not have the '.usage' field filled out
Debug: 38 11 command.c:366 register_command_handler(): registering 'ocd_jlink'...
Debug: 39 12 command.c:366 register_command_handler(): registering 'ocd_jlink'...
Debug: 40 12 command.c:325 command_new(): BUG: command 'jlink pid' does not have the '.usage' field filled out
Debug: 41 12 command.c:366 register_command_handler(): registering 'ocd_jlink'...
Debug: 42 13 command.c:325 command_new(): BUG: command 'jlink serial' does not have the '.usage' field filled out
Debug: 43 13 command.c:366 register_command_handler(): registering 'ocd_jlink'...
Debug: 44 13 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select jtag
Debug: 45 14 command.c:145 script_debug(): command - ocd_transport ocd_transport select jtag
Debug: 46 14 command.c:366 register_command_handler(): registering 'ocd_jtag_flush_queue_sleep'...
Debug: 47 14 command.c:366 register_command_handler(): registering 'ocd_jtag_rclk'...
Debug: 48 15 command.c:366 register_command_handler(): registering 'ocd_jtag_ntrst_delay'...
Debug: 49 15 command.c:366 register_command_handler(): registering 'ocd_jtag_ntrst_assert_width'...
Debug: 50 15 command.c:366 register_command_handler(): registering 'ocd_scan_chain'...
Debug: 51 16 command.c:366 register_command_handler(): registering 'ocd_jtag_reset'...
Debug: 52 16 command.c:366 register_command_handler(): registering 'ocd_runtest'...
Debug: 53 16 command.c:366 register_command_handler(): registering 'ocd_irscan'...
Debug: 54 17 command.c:366 register_command_handler(): registering 'ocd_verify_ircapture'...
Debug: 55 17 command.c:366 register_command_handler(): registering 'ocd_verify_jtag'...
Debug: 56 17 command.c:366 register_command_handler(): registering 'ocd_tms_sequence'...
Debug: 57 18 command.c:366 register_command_handler(): registering 'ocd_wait_srst_deassert'...
Debug: 58 18 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 59 18 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 60 19 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 61 19 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 62 19 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 63 19 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 64 20 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 65 20 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 66 20 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 67 21 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 68 21 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 69 21 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 70 22 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 71 22 command.c:366 register_command_handler(): registering 'ocd_svf'...
Debug: 72 22 command.c:366 register_command_handler(): registering 'ocd_xsvf'...
Debug: 73 22 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 400
Debug: 74 23 command.c:145 script_debug(): command - adapter_khz ocd_adapter_khz 400
Debug: 76 23 core.c:1629 jtag_config_khz(): handle jtag khz
Debug: 77 23 core.c:1596 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 78 24 core.c:1596 adapter_khz_to_speed(): convert khz to interface specific speed value
User : 79 24 command.c:546 command_print(): adapter speed: 400 kHz
Debug: 80 24 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_init
Debug: 81 25 command.c:145 script_debug(): command - init ocd_init
Debug: 83 25 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target init
Debug: 84 25 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 86 26 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target names
Debug: 87 26 command.c:145 script_debug(): command - ocd_target ocd_target names
Debug: 88 26 target.c:1313 handle_target_init_command(): Initializing targets...
Debug: 89 162 libusb1_common.c:219 jtag_libusb_choose_interface(): usb ep in 81
Debug: 90 162 libusb1_common.c:219 jtag_libusb_choose_interface(): usb ep out 01
Debug: 91 162 libusb1_common.c:227 jtag_libusb_choose_interface(): Claiming interface 0
Error: 92 163 jlink.c:731 jlink_simple_command(): J-Link command 0x01 failed (0)
Error: 93 163 jlink.c:913 jlink_get_version_info(): J-Link command EMU_CMD_VERSION failed (0)
Info : 94 163 jlink.c:573 jlink_init(): J-Link JTAG Interface ready
Debug: 95 164 jlink.c:705 jlink_reset(): trst: 0, srst: 0
Error: 96 164 jlink.c:731 jlink_simple_command(): J-Link command 0xdd failed (0)
Error: 97 164 jlink.c:731 jlink_simple_command(): J-Link command 0xdf failed (0)
Error: 98 167 jlink.c:416 jlink_speed(): J-Link setting speed failed (0)
Error: 99 167 jlink.c:1849 jlink_usb_message(): usb_bulk_write failed (requested=6, result=0)
Error: 100 167 jlink.c:1550 jlink_tap_execute(): jlink_tap_execute failed USB io (-107)
Debug: 101 167 core.c:1596 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 102 168 core.c:1599 adapter_khz_to_speed(): have interface set up
Error: 103 168 jlink.c:416 jlink_speed(): J-Link setting speed failed (0)
Debug: 104 168 command.c:628 run_command(): Command failed with error code -107
User : 105 169 command.c:689 command_run_line(): 
The critical error messages are in Lines 92 to 103.

Can anybody help me fix this problem?