Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---- invocation ----
- ❯ openocd -f openocd.cfg -d3
- Open On-Chip Debugger 0.12.0+dev-01759-gedf2c82cf (2024-10-07-16:14)
- Licensed under GNU GPL v2
- For bug reports, read
- http://openocd.org/doc/doxygen/bugs.html
- User : 3 1 options.c:52 configuration_output_handler(): debug_level: 3User : 4 1 options.c:52 configuration_output_handler():
- Debug: 5 1 options.c:346 parse_cmdline_args(): ARGV[0] = "openocd"
- Debug: 6 1 options.c:346 parse_cmdline_args(): ARGV[1] = "-f"
- Debug: 7 1 options.c:346 parse_cmdline_args(): ARGV[2] = "openocd.cfg"
- Debug: 8 1 options.c:346 parse_cmdline_args(): ARGV[3] = "-d3"
- Debug: 9 1 options.c:233 add_default_dirs(): bindir=/usr/local/bin
- Debug: 10 1 options.c:234 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
- Debug: 11 1 options.c:235 add_default_dirs(): exepath=/usr/local/bin
- Debug: 12 1 options.c:236 add_default_dirs(): bin2data=../share/openocd
- Debug: 13 1 configuration.c:33 add_script_search_dir(): adding /home/florian/.config/openocd
- Debug: 14 1 configuration.c:33 add_script_search_dir(): adding /home/florian/.openocd
- Debug: 15 1 configuration.c:33 add_script_search_dir(): adding /usr/local/bin/../share/openocd/site
- Debug: 16 1 configuration.c:33 add_script_search_dir(): adding /usr/local/bin/../share/openocd/scripts
- Debug: 17 1 command.c:153 script_debug(): command - ocd_find openocd.cfg
- Debug: 18 1 configuration.c:88 find_file(): found openocd.cfg
- Debug: 19 1 command.c:153 script_debug(): command - ocd_find interface/stlink.cfg
- Debug: 20 1 configuration.c:88 find_file(): found /usr/local/bin/../share/openocd/scripts/interface/stlink.cfg
- Debug: 21 1 command.c:153 script_debug(): command - adapter driver hla
- Debug: 22 1 command.c:153 script_debug(): command - hla layout stlink
- Debug: 23 1 hla_interface.c:229 hl_interface_handle_layout_command(): hl_interface_handle_layout_command
- Debug: 24 1 command.c:153 script_debug(): command - hla device_desc ST-LINK
- Debug: 25 1 hla_interface.c:216 hl_interface_handle_device_desc_command(): hl_interface_handle_device_desc_command
- Debug: 26 1 command.c:153 script_debug(): command - hla vid_pid 0x0483 0x3744 0x0483 0x3748 0x0483 0x374b 0x0483 0x374d 0x0483 0x374e 0x0483 0x374f 0x0483 0x3752 0x0483 0x3753 0x0483 0x3754 0x0483 0x3755 0x0483 0x3757
- Debug: 27 1 command.c:153 script_debug(): command - ocd_find target/swj-dp.tcl
- Debug: 28 1 configuration.c:88 find_file(): found /usr/local/bin/../share/openocd/scripts/target/swj-dp.tcl
- Debug: 29 1 command.c:153 script_debug(): command - transport select
- Info : 30 1 transport.c:267 handle_transport_select(): auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
- Debug: 31 1 hla_transport.c:211 hl_swd_transport_select(): hl_swd_transport_select
- Debug: 32 1 command.c:153 script_debug(): command - adapter speed 50
- Debug: 33 1 adapter.c:250 adapter_config_khz(): handle adapter khz
- Debug: 34 1 adapter.c:214 adapter_khz_to_speed(): convert khz to adapter specific speed value
- Debug: 35 1 adapter.c:214 adapter_khz_to_speed(): convert khz to adapter specific speed value
- Debug: 36 1 command.c:153 script_debug(): command - adapter srst delay 100
- Debug: 37 1 command.c:153 script_debug(): command - swd newdap chip cpu -enable
- Debug: 38 1 tcl.c:404 handle_jtag_newtap_args(): Creating New Tap, Chip: chip, Tap: cpu, Dotted: chip.cpu, 1 params
- Debug: 39 1 core.c:1475 jtag_tap_init(): Created Tap: chip.cpu @ abs position 0, irlen 0, capture: 0x1 mask: 0x3
- Debug: 40 1 command.c:153 script_debug(): command - dap create chip.dap -chain-position chip.cpu -adiv6
- Debug: 41 1 command.c:153 script_debug(): command - target create chip.cpu cortex_m -dap chip.dap
- Info : 42 1 target.c:5738 target_create(): The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
- Debug: 43 1 hla_target.c:193 adapter_target_create(): adapter_target_create
- Debug: 44 1 hla_target.c:163 adapter_init_arch_info(): adapter_init_arch_info
- Debug: 45 1 command.c:259 register_command(): command 'rtt' is already registered
- Debug: 46 1 command.c:259 register_command(): command 'tpiu' is already registered
- Info : 47 1 server.c:298 add_service(): Listening on port 6666 for tcl connections
- Info : 48 1 server.c:298 add_service(): Listening on port 4444 for telnet connections
- Debug: 49 1 command.c:153 script_debug(): command - init
- Debug: 50 1 command.c:153 script_debug(): command - target init
- Debug: 51 1 command.c:153 script_debug(): command - target names
- Debug: 52 1 command.c:153 script_debug(): command - chip.cpu cget -event gdb-flash-erase-start
- Debug: 53 1 command.c:153 script_debug(): command - chip.cpu configure -event gdb-flash-erase-start reset init
- Debug: 54 1 command.c:153 script_debug(): command - chip.cpu cget -event gdb-flash-write-end
- Debug: 55 1 command.c:153 script_debug(): command - chip.cpu configure -event gdb-flash-write-end reset halt
- Debug: 56 1 command.c:153 script_debug(): command - chip.cpu cget -event gdb-attach
- Debug: 57 1 command.c:153 script_debug(): command - chip.cpu configure -event gdb-attach halt 1000
- Debug: 58 1 target.c:1588 handle_target_init_command(): Initializing targets...
- Debug: 59 1 hla_target.c:183 adapter_init_target(): adapter_init_target
- Debug: 60 1 semihosting_common.c:107 semihosting_common_init():
- Debug: 61 1 hla_interface.c:110 hl_interface_init(): hl_interface_init
- Debug: 62 1 hla_layout.c:83 hl_layout_init(): hl_layout_init
- Debug: 63 1 adapter.c:214 adapter_khz_to_speed(): convert khz to adapter specific speed value
- Debug: 64 1 adapter.c:218 adapter_khz_to_speed(): have adapter set up
- Debug: 65 1 adapter.c:214 adapter_khz_to_speed(): convert khz to adapter specific speed value
- Debug: 66 1 adapter.c:218 adapter_khz_to_speed(): have adapter set up
- Info : 67 1 adapter.c:178 adapter_init(): clock speed 50 kHz
- Debug: 68 1 openocd.c:133 handle_init_command(): Debug Adapter init complete
- Debug: 69 1 command.c:153 script_debug(): command - transport init
- Debug: 70 1 transport.c:219 handle_transport_init(): handle_transport_init
- Debug: 71 1 hla_transport.c:163 hl_transport_init(): hl_transport_init
- Debug: 72 1 hla_transport.c:180 hl_transport_init(): current transport hla_swd
- Debug: 73 1 hla_interface.c:43 hl_interface_open(): hl_interface_open
- Debug: 74 1 hla_layout.c:28 hl_layout_open(): hl_layout_open
- Debug: 75 1 stlink_usb.c:3732 stlink_open(): stlink_open
- Debug: 76 1 stlink_usb.c:3744 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3744 serial:
- Debug: 77 1 stlink_usb.c:3744 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3748 serial:
- Debug: 78 1 stlink_usb.c:3744 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374b serial:
- Debug: 79 1 stlink_usb.c:3744 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374d serial:
- Debug: 80 1 stlink_usb.c:3744 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374e serial:
- Debug: 81 1 stlink_usb.c:3744 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374f serial:
- Debug: 82 1 stlink_usb.c:3744 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3752 serial:
- Debug: 83 1 stlink_usb.c:3744 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3753 serial:
- Debug: 84 1 stlink_usb.c:3744 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3754 serial:
- Debug: 85 1 stlink_usb.c:3744 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3755 serial:
- Debug: 86 1 stlink_usb.c:3744 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3757 serial:
- Info : 87 6 stlink_usb.c:1471 stlink_usb_version(): STLINK V2J34S7 (API v2) VID:PID 0483:3748
- Debug: 88 6 stlink_usb.c:1696 stlink_usb_exit_mode(): MODE: 0x01
- Info : 89 6 stlink_usb.c:1507 stlink_usb_check_voltage(): Target voltage: 3.286079
- Debug: 90 6 stlink_usb.c:1764 stlink_usb_init_mode(): MODE: 0x01
- Debug: 91 6 stlink_usb.c:3130 stlink_dump_speed_map(): Supported clock speeds are:
- Debug: 92 6 stlink_usb.c:3133 stlink_dump_speed_map(): 4000 kHz
- Debug: 93 6 stlink_usb.c:3133 stlink_dump_speed_map(): 1800 kHz
- Debug: 94 6 stlink_usb.c:3133 stlink_dump_speed_map(): 1200 kHz
- Debug: 95 6 stlink_usb.c:3133 stlink_dump_speed_map(): 950 kHz
- Debug: 96 6 stlink_usb.c:3133 stlink_dump_speed_map(): 480 kHz
- Debug: 97 6 stlink_usb.c:3133 stlink_dump_speed_map(): 240 kHz
- Debug: 98 6 stlink_usb.c:3133 stlink_dump_speed_map(): 125 kHz
- Debug: 99 6 stlink_usb.c:3133 stlink_dump_speed_map(): 100 kHz
- Debug: 100 6 stlink_usb.c:3133 stlink_dump_speed_map(): 50 kHz
- Debug: 101 6 stlink_usb.c:3133 stlink_dump_speed_map(): 25 kHz
- Debug: 102 6 stlink_usb.c:3133 stlink_dump_speed_map(): 15 kHz
- Debug: 103 6 stlink_usb.c:3133 stlink_dump_speed_map(): 5 kHz
- Debug: 104 22 stlink_usb.c:1088 stlink_usb_error_check(): STLINK_JTAG_GET_IDCODE_ERROR
- Error: 105 22 stlink_usb.c:3787 stlink_open(): init mode failed (unable to connect to the target)
- Debug: 106 22 stlink_usb.c:1696 stlink_usb_exit_mode(): MODE: 0x01
- Debug: 107 22 hla_layout.c:35 hl_layout_open(): failed
- Debug: 108 22 command.c:528 exec_command(): Command 'transport init' failed with error code -4
- User : 109 22 command.c:601 command_run_line():
- Debug: 110 22 command.c:528 exec_command(): Command 'init' failed with error code -4
- User : 111 22 command.c:601 command_run_line():
- Debug: 112 22 breakpoints.c:328 breakpoint_remove_all_internal(): [chip.cpu] Delete all breakpoints
- Debug: 113 22 target.c:2130 target_free_all_working_areas_restore(): freeing all working areas
- Debug: 114 23 hla_interface.c:118 hl_interface_quit(): hl_interface_quit
- ---- openocd.cfg ----
- source [find interface/stlink.cfg]
- source [find target/swj-dp.tcl]
- adapter speed 50
- adapter srst delay 100
- swd newdap chip cpu -enable
- dap create chip.dap -chain-position chip.cpu -adiv6
- target create chip.cpu cortex_m -dap chip.dap
Advertisement
Add Comment
Please, Sign In to add comment