From: Spencer O. <sp...@sp...> - 2013-12-23 13:19:15
|
On 23 December 2013 13:16, Chris Fryer <chr...@gm...> wrote: > chris:~$ openocd -d3 > Open On-Chip Debugger 0.8.0-dev-00283-g8994597 (2013-12-20-15:28) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.sourceforge.net/doc/doxygen/bugs.html > User : 13 3 command.c:546 command_print(): debug_level: 3 > Debug: 14 3 configuration.c:44 add_script_search_dir(): adding > /home/chris/.openocd > Debug: 15 3 configuration.c:44 add_script_search_dir(): adding > /usr/local/share/openocd/site > Debug: 16 3 configuration.c:44 add_script_search_dir(): adding > /usr/local/share/openocd/scripts > Debug: 17 3 configuration.c:84 find_file(): found openocd.cfg > Debug: 18 3 command.c:145 script_debug(): command - ocd_command ocd_command > type ocd_reset_config srst_only srst_nogate connect_assert_srst > Debug: 19 3 command.c:145 script_debug(): command - reset_config > ocd_reset_config srst_only srst_nogate connect_assert_srst > User : 21 3 command.c:546 command_print(): srst_only separate srst_nogate > srst_open_drain connect_assert_srst > Debug: 22 3 command.c:145 script_debug(): command - ocd_command ocd_command > type ocd_adapter_khz 1000 > Debug: 23 3 command.c:145 script_debug(): command - adapter_khz > ocd_adapter_khz 1000 > Debug: 25 3 core.c:1644 jtag_config_khz(): handle jtag khz > Debug: 26 3 core.c:1611 adapter_khz_to_speed(): convert khz to interface > specific speed value > Debug: 27 3 core.c:1611 adapter_khz_to_speed(): convert khz to interface > specific speed value > User : 28 3 command.c:546 command_print(): adapter speed: 1000 kHz > Debug: 29 4 configuration.c:84 find_file(): found > /usr/local/share/openocd/scripts/board/frdm-kl25z.cfg > Debug: 30 4 configuration.c:84 find_file(): found > /usr/local/share/openocd/scripts/interface/cmsis-dap.cfg > Debug: 31 4 command.c:145 script_debug(): command - ocd_command ocd_command > type ocd_interface cmsis-dap > Debug: 32 4 command.c:145 script_debug(): command - interface ocd_interface > cmsis-dap > Debug: 34 4 command.c:366 register_command_handler(): registering > 'ocd_cmsis-dap'... > Debug: 35 4 command.c:366 register_command_handler(): registering > 'ocd_cmsis_dap_vid_pid'... > Debug: 36 4 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 37 4 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 38 4 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 39 4 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 40 4 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 41 4 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 42 4 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 43 4 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 44 4 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Info : 45 4 transport.c:118 allow_transports(): only one transport option; > autoselect 'cmsis-dap' > Debug: 46 4 adi_v5_cmsis_dap.c:246 cmsis_dap_select(): CMSIS-ADI: > cmsis_dap_select > Debug: 47 4 command.c:401 register_command(): command 'cmsis-dap' is already > registered in '<global>' context > Debug: 48 4 command.c:366 register_command_handler(): registering > 'ocd_cmsis-dap'... > Error: 49 7 cmsis_dap_usb.c:175 cmsis_dap_usb_open(): unable to open > CMSIS-DAP device > Error: 50 7 adi_v5_cmsis_dap.c:266 cmsis_dap_select(): unable to init > CMSIS-DAP driver > Error: 51 7 transport.c:83 transport_select(): Error selecting 'cmsis-dap' > as transport > Debug: 52 7 command.c:628 run_command(): Command failed with error code -4 > User : 53 7 command.c:666 command_run_line(): Runtime Error: > /usr/local/share/openocd/scripts/interface/cmsis-dap.cfg:7: > in procedure 'script' > at file "embedded:startup.tcl", line 58 > at file "openocd.cfg", line 4 > at file "/usr/local/share/openocd/scripts/board/frdm-kl25z.cfg", line 5 > in procedure 'interface' called at file > "/usr/local/share/openocd/scripts/interface/cmsis-dap.cfg", line 7 > Debug: 54 7 command.c:145 script_debug(): command - ocd_command ocd_command > type ocd_init > Debug: 55 7 command.c:145 script_debug(): command - init ocd_init > Debug: 57 7 command.c:145 script_debug(): command - ocd_command ocd_command > type ocd_target init > Debug: 58 7 command.c:145 script_debug(): command - ocd_target ocd_target > init > Debug: 60 7 target.c:1279 handle_target_init_command(): Initializing > targets... > Error: 61 10 cmsis_dap_usb.c:175 cmsis_dap_usb_open(): unable to open > CMSIS-DAP device > Debug: 62 10 command.c:628 run_command(): Command failed with error code -4 > User : 63 10 command.c:666 command_run_line(): in procedure 'init' > I am assuming you have tweaked your udev rules, as a test run as sudo Spen |