Initialization of openocd does not come to the end (handle_t

Open source ARM Debugger

Moderator: phalanx

Initialization of openocd does not come to the end (handle_t

Postby pentin-as » Mon Sep 11, 2017 9:33 pm

I use Altera USB-Blaster rev.C. So far I launch without target. When I try to send the "target remote localhost:3333" command to gdb I see that nobody answers gdb during the given timeout. Here a log the removed openocd:

Code: Select all
user@debian:~$ sudo openocd -d -c "log_output openocd.log" -f altera-usb-blaster.cfg
[sudo] password for user:
Open On-Chip Debugger 0.10.0+dev-00172-g7719e96 (2017-09-11-13:32)
Licensed under GNU GPL v2
For bug reports, read
   http://openocd.org/doc/doxygen/bugs.html
User : 13 18 command.c:544 command_print(): debug_level: 3
Debug: 14 18 options.c:181 add_default_dirs(): bindir=/usr/local/bin
Debug: 15 18 options.c:182 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 16 18 options.c:183 add_default_dirs(): exepath=/usr/local/bin
Debug: 17 18 options.c:184 add_default_dirs(): bin2data=../share/openocd
Debug: 18 18 configuration.c:42 add_script_search_dir(): adding /root/.openocd
Debug: 19 18 configuration.c:42 add_script_search_dir(): adding /usr/local/bin/../share/openocd/site
Debug: 20 18 configuration.c:42 add_script_search_dir(): adding /usr/local/bin/../share/openocd/scripts
Debug: 21 18 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_log_output openocd.log
Debug: 22 18 command.c:143 script_debug(): command - log_output ocd_log_output openocd.log

Debug: 24 18 configuration.c:82 find_file(): found altera-usb-blaster.cfg
Debug: 25 18 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_interface usb_blaster
Debug: 26 18 command.c:143 script_debug(): command - interface ocd_interface usb_blaster
Debug: 28 18 command.c:364 register_command_handler(): registering 'ocd_usb_blaster_device_desc'...
Debug: 29 18 command.c:364 register_command_handler(): registering 'ocd_usb_blaster_vid_pid'...
Debug: 30 18 command.c:364 register_command_handler(): registering 'ocd_usb_blaster_lowlevel_driver'...
Debug: 31 18 command.c:364 register_command_handler(): registering 'ocd_usb_blaster_pin'...
Debug: 32 18 command.c:364 register_command_handler(): registering 'ocd_usb_blaster_firmware'...
Warn : 33 18 adapter.c:159 handle_interface_command(): Adapter driver 'usb_blaster' did not declare which transports it allows; assuming legacy JTAG-only
Info : 34 18 transport.c:117 allow_transports(): only one transport option; autoselect 'jtag'
Debug: 35 18 command.c:364 register_command_handler(): registering 'ocd_jtag_flush_queue_sleep'...
Debug: 36 18 command.c:364 register_command_handler(): registering 'ocd_jtag_rclk'...
Debug: 37 18 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_delay'...
Debug: 38 18 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_assert_width'...
Debug: 39 18 command.c:364 register_command_handler(): registering 'ocd_scan_chain'...
Debug: 40 18 command.c:364 register_command_handler(): registering 'ocd_jtag_reset'...
Debug: 41 18 command.c:364 register_command_handler(): registering 'ocd_runtest'...
Debug: 42 18 command.c:364 register_command_handler(): registering 'ocd_irscan'...
Debug: 43 18 command.c:364 register_command_handler(): registering 'ocd_verify_ircapture'...
Debug: 44 18 command.c:364 register_command_handler(): registering 'ocd_verify_jtag'...
Debug: 45 18 command.c:364 register_command_handler(): registering 'ocd_tms_sequence'...
Debug: 46 18 command.c:364 register_command_handler(): registering 'ocd_wait_srst_deassert'...
Debug: 47 18 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 48 18 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 49 18 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 50 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 51 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 52 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 53 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 54 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 55 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 56 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 57 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 58 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 59 19 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 60 19 command.c:364 register_command_handler(): registering 'ocd_svf'...
Debug: 61 19 command.c:364 register_command_handler(): registering 'ocd_xsvf'...
Debug: 62 19 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_init
Debug: 63 19 command.c:143 script_debug(): command - init ocd_init
Debug: 65 19 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target init
Debug: 66 19 command.c:143 script_debug(): command - ocd_target ocd_target init
Debug: 68 19 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target names
Debug: 69 19 command.c:143 script_debug(): command - ocd_target ocd_target names
Debug: 70 19 target.c:1329 handle_target_init_command(): Initializing targets...
Info : 71 19 usb_blaster.c:854 ublast_init(): No lowlevel driver configured, will try them all
Info : 72 25 ublast2_access_libusb.c:231 ublast2_libusb_init(): Altera USB-Blaster II found (Firm. rev. = )
Info : 73 25 core.c:1357 adapter_init(): This adapter doesn't support configurable speed
Debug: 74 25 openocd.c:140 handle_init_command(): Debug Adapter init complete
Debug: 75 25 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport init
Debug: 76 25 command.c:143 script_debug(): command - ocd_transport ocd_transport init
Debug: 78 25 transport.c:239 handle_transport_init(): handle_transport_init


It seems to me that the initialization connected to the Altera USB-Blaster adapter does not come to the end also to a stage when gdb can set connection with openocd does not reach.

What do I do not so?
pentin-as
 
Posts: 2
Joined: Mon Sep 11, 2017 6:41 am

Re: Initialization of openocd does not come to the end (hand

Postby pentin-as » Tue Sep 12, 2017 11:14 am

I solved that problem. It was necessary to compile openocd with the preset libftdi-dev library.

However all the same does not work for me. There is a log:

Code: Select all
user@debian:~$ sudo openocd -d -c "log_output 1.log" -f altera-usb-blaster.cfg
[sudo] password for user:
Open On-Chip Debugger 0.10.0+dev-00172-g7719e96 (2017-09-12-15:07)
Licensed under GNU GPL v2
For bug reports, read
   http://openocd.org/doc/doxygen/bugs.html
User : 13 1 command.c:544 command_print(): debug_level: 3
Debug: 14 1 options.c:181 add_default_dirs(): bindir=/usr/local/bin
Debug: 15 1 options.c:182 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 16 1 options.c:183 add_default_dirs(): exepath=/usr/local/bin
Debug: 17 1 options.c:184 add_default_dirs(): bin2data=../share/openocd
Debug: 18 1 configuration.c:42 add_script_search_dir(): adding /root/.openocd
Debug: 19 1 configuration.c:42 add_script_search_dir(): adding /usr/local/bin/../share/openocd/site
Debug: 20 1 configuration.c:42 add_script_search_dir(): adding /usr/local/bin/../share/openocd/scripts
Debug: 21 1 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_log_output 1.log
Debug: 22 1 command.c:143 script_debug(): command - log_output ocd_log_output 1.log

Debug: 24 2 configuration.c:82 find_file(): found altera-usb-blaster.cfg
Debug: 25 2 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_interface usb_blaster
Debug: 26 2 command.c:143 script_debug(): command - interface ocd_interface usb_blaster
Debug: 28 2 command.c:364 register_command_handler(): registering 'ocd_usb_blaster_device_desc'...
Debug: 29 2 command.c:364 register_command_handler(): registering 'ocd_usb_blaster_vid_pid'...
Debug: 30 2 command.c:364 register_command_handler(): registering 'ocd_usb_blaster_lowlevel_driver'...
Debug: 31 2 command.c:364 register_command_handler(): registering 'ocd_usb_blaster_pin'...
Debug: 32 2 command.c:364 register_command_handler(): registering 'ocd_usb_blaster_firmware'...
Warn : 33 2 adapter.c:159 handle_interface_command(): Adapter driver 'usb_blaster' did not declare which transports it allows; assuming legacy JTAG-only
Info : 34 2 transport.c:117 allow_transports(): only one transport option; autoselect 'jtag'
Debug: 35 2 command.c:364 register_command_handler(): registering 'ocd_jtag_flush_queue_sleep'...
Debug: 36 2 command.c:364 register_command_handler(): registering 'ocd_jtag_rclk'...
Debug: 37 2 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_delay'...
Debug: 38 2 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_assert_width'...
Debug: 39 2 command.c:364 register_command_handler(): registering 'ocd_scan_chain'...
Debug: 40 2 command.c:364 register_command_handler(): registering 'ocd_jtag_reset'...
Debug: 41 2 command.c:364 register_command_handler(): registering 'ocd_runtest'...
Debug: 42 2 command.c:364 register_command_handler(): registering 'ocd_irscan'...
Debug: 43 2 command.c:364 register_command_handler(): registering 'ocd_verify_ircapture'...
Debug: 44 2 command.c:364 register_command_handler(): registering 'ocd_verify_jtag'...
Debug: 45 2 command.c:364 register_command_handler(): registering 'ocd_tms_sequence'...
Debug: 46 2 command.c:364 register_command_handler(): registering 'ocd_wait_srst_deassert'...
Debug: 47 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 48 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 49 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 50 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 51 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 52 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 53 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 54 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 55 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 56 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 57 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 58 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 59 2 command.c:364 register_command_handler(): registering 'ocd_jtag'...
Debug: 60 2 command.c:364 register_command_handler(): registering 'ocd_svf'...
Debug: 61 2 command.c:364 register_command_handler(): registering 'ocd_xsvf'...
Debug: 62 2 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_init
Debug: 63 2 command.c:143 script_debug(): command - init ocd_init
Debug: 65 2 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target init
Debug: 66 2 command.c:143 script_debug(): command - ocd_target ocd_target init
Debug: 68 2 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target names
Debug: 69 2 command.c:143 script_debug(): command - ocd_target ocd_target names
Debug: 70 3 target.c:1329 handle_target_init_command(): Initializing targets...
Info : 71 3 usb_blaster.c:854 ublast_init(): No lowlevel driver configured, will try them all
Info : 72 3 ublast_access_ftdi.c:85 ublast_ftdi_init(): usb blaster interface using libftdi
Debug: 73 163 ublast_access_ftdi.c:108 ublast_ftdi_init(): current latency timer: 2
Info : 74 164 core.c:1357 adapter_init(): This adapter doesn't support configurable speed
Debug: 75 164 openocd.c:140 handle_init_command(): Debug Adapter init complete
Debug: 76 164 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport init
Debug: 77 164 command.c:143 script_debug(): command - ocd_transport ocd_transport init
Debug: 79 164 transport.c:239 handle_transport_init(): handle_transport_init
Debug: 80 171 core.c:729 jtag_add_reset(): SRST line released
Debug: 81 171 core.c:753 jtag_add_reset(): TRST line released
Debug: 82 171 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 83 171 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init
Debug: 84 171 command.c:143 script_debug(): command - ocd_jtag ocd_jtag arp_init
Debug: 85 171 core.c:1399 jtag_init_inner(): Init JTAG chain
Warn : 86 171 core.c:1415 jtag_init_inner(): There are no enabled taps.  AUTO PROBING MIGHT NOT WORK!!
Debug: 87 171 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 88 171 core.c:1060 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 89 171 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset


Please, help.
pentin-as
 
Posts: 2
Joined: Mon Sep 11, 2017 6:41 am


Return to OpenOCD

Who is online

Users browsing this forum: No registered users and 2 guests