Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gdb --args openocd -f board/st_nucleo_f0.cfg -d 139 ↵ ✹main
- GNU gdb (GDB) 11.2
- Copyright (C) 2022 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- Type "show copying" and "show warranty" for details.
- This GDB was configured as "x86_64-pc-linux-gnu".
- Type "show configuration" for configuration details.
- For bug reporting instructions, please see:
- <https://www.gnu.org/software/gdb/bugs/>.
- Find the GDB manual and other documentation resources online at:
- <http://www.gnu.org/software/gdb/documentation/>.
- For help, type "help".
- Type "apropos word" to search for commands related to "word"...
- Reading symbols from openocd...
- (No debugging symbols found in openocd)
- (gdb) run
- Starting program: /usr/bin/openocd -f board/st_nucleo_f0.cfg -d
- [Thread debugging using libthread_db enabled]
- Using host libthread_db library "/usr/lib/libthread_db.so.1".
- Open On-Chip Debugger 0.11.0
- Licensed under GNU GPL v2
- For bug reports, read
- http://openocd.org/doc/doxygen/bugs.html
- User : 13 1 options.c:63 configuration_output_handler(): debug_level: 3
- User : 14 1 options.c:63 configuration_output_handler():
- Debug: 15 1 options.c:244 add_default_dirs(): bindir=/usr/bin
- Debug: 16 1 options.c:245 add_default_dirs(): pkgdatadir=/usr/share/openocd
- Debug: 17 1 options.c:246 add_default_dirs(): exepath=/usr/bin
- Debug: 18 1 options.c:247 add_default_dirs(): bin2data=../share/openocd
- Debug: 19 1 configuration.c:42 add_script_search_dir(): adding /home/lukhe/.config/openocd
- Debug: 20 1 configuration.c:42 add_script_search_dir(): adding /home/lukhe/.openocd
- Debug: 21 1 configuration.c:42 add_script_search_dir(): adding /usr/bin/../share/openocd/site
- Debug: 22 1 configuration.c:42 add_script_search_dir(): adding /usr/bin/../share/openocd/scripts
- Debug: 23 1 configuration.c:97 find_file(): found /usr/bin/../share/openocd/scripts/board/st_nucleo_f0.cfg
- Debug: 24 1 configuration.c:97 find_file(): found /usr/bin/../share/openocd/scripts/interface/stlink.cfg
- Debug: 25 2 command.c:146 script_debug(): command - adapter driver hla
- Debug: 27 2 command.c:146 script_debug(): command - hla_layout stlink
- Debug: 29 2 hla_interface.c:242 hl_interface_handle_layout_command(): hl_interface_handle_layout_command
- Debug: 30 2 command.c:146 script_debug(): command - hla_device_desc ST-LINK
- Debug: 32 2 hla_interface.c:216 hl_interface_handle_device_desc_command(): hl_interface_handle_device_desc_command
- Debug: 33 2 command.c:146 script_debug(): command - hla_vid_pid 0x0483 0x3744 0x0483 0x3748 0x0483 0x374b 0x0483 0x374d 0x0483 0x374e 0x0483 0x374f 0x0483 0x3752 0x0483 0x3753
- Debug: 35 2 command.c:146 script_debug(): command - transport select hla_swd
- Debug: 36 2 hla_transport.c:205 hl_swd_transport_select(): hl_swd_transport_select
- Debug: 37 2 configuration.c:97 find_file(): found /usr/bin/../share/openocd/scripts/target/stm32f0x.cfg
- Debug: 38 2 configuration.c:97 find_file(): found /usr/bin/../share/openocd/scripts/target/swj-dp.tcl
- Debug: 39 2 command.c:146 script_debug(): command - transport select
- Debug: 40 2 configuration.c:97 find_file(): found /usr/bin/../share/openocd/scripts/mem_helper.tcl
- Debug: 41 2 command.c:146 script_debug(): command - add_usage_text mrw address
- Debug: 43 2 command.c:1115 help_add_command(): added 'mrw' help text
- Debug: 44 2 command.c:146 script_debug(): command - add_help_text mrw Returns value of word in memory.
- Debug: 46 2 command.c:1128 help_add_command(): added 'mrw' help text
- Debug: 47 2 command.c:146 script_debug(): command - add_usage_text mrh address
- Debug: 49 2 command.c:1115 help_add_command(): added 'mrh' help text
- Debug: 50 2 command.c:146 script_debug(): command - add_help_text mrh Returns value of halfword in memory.
- Debug: 52 2 command.c:1128 help_add_command(): added 'mrh' help text
- Debug: 53 2 command.c:146 script_debug(): command - add_usage_text mrb address
- Debug: 55 2 command.c:1115 help_add_command(): added 'mrb' help text
- Debug: 56 2 command.c:146 script_debug(): command - add_help_text mrb Returns value of byte in memory.
- Debug: 58 2 command.c:1128 help_add_command(): added 'mrb' help text
- Debug: 59 2 command.c:146 script_debug(): command - add_usage_text mmw address setbits clearbits
- Debug: 61 2 command.c:1115 help_add_command(): added 'mmw' help text
- Debug: 62 2 command.c:146 script_debug(): command - add_help_text mmw Modify word in memory. new_val = (old_val & ~clearbits) | setbits;
- Debug: 64 2 command.c:1128 help_add_command(): added 'mmw' help text
- Debug: 65 2 command.c:146 script_debug(): command - transport select
- Debug: 66 2 command.c:146 script_debug(): command - transport select
- Debug: 67 2 command.c:146 script_debug(): command - swd newdap stm32f0x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x0bb11477
- Debug: 68 2 hla_tcl.c:110 jim_hl_newtap_cmd(): Creating New Tap, Chip: stm32f0x, Tap: cpu, Dotted: stm32f0x.cpu, 8 params
- Debug: 69 2 hla_tcl.c:121 jim_hl_newtap_cmd(): Processing option: -irlen
- Debug: 70 2 hla_tcl.c:121 jim_hl_newtap_cmd(): Processing option: -ircapture
- Debug: 71 2 hla_tcl.c:121 jim_hl_newtap_cmd(): Processing option: -irmask
- Debug: 72 2 hla_tcl.c:121 jim_hl_newtap_cmd(): Processing option: -expected-id
- Debug: 73 2 core.c:1484 jtag_tap_init(): Created Tap: stm32f0x.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0
- Debug: 74 2 command.c:146 script_debug(): command - dap create stm32f0x.dap -chain-position stm32f0x.cpu
- Debug: 75 2 command.c:146 script_debug(): command - target create stm32f0x.cpu cortex_m -endian little -dap stm32f0x.dap
- Info : 76 2 target.c:5668 target_create(): The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
- Debug: 77 2 hla_target.c:203 adapter_target_create(): adapter_target_create
- Debug: 78 2 hla_target.c:173 adapter_init_arch_info(): adapter_init_arch_info
- Debug: 79 2 command.c:375 register_command(): command 'rtt' is already registered in '<global>' context
- Debug: 80 2 command.c:146 script_debug(): command - stm32f0x.cpu configure -work-area-phys 0x20000000 -work-area-size 0x1000 -work-area-backup 0
- Debug: 81 2 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas
- Debug: 82 3 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas
- Debug: 83 3 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas
- Debug: 84 3 command.c:146 script_debug(): command - flash bank stm32f0x.flash stm32f1x 0x08000000 0 0 0 stm32f0x.cpu
- Debug: 86 3 tcl.c:1319 handle_flash_bank_command(): 'stm32f1x' driver usage field missing
- Debug: 87 3 command.c:146 script_debug(): command - adapter speed 1000
- Debug: 89 3 core.c:1822 jtag_config_khz(): handle jtag khz
- Debug: 90 3 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
- Debug: 91 3 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
- Debug: 92 3 command.c:146 script_debug(): command - adapter srst delay 100
- Debug: 94 3 command.c:146 script_debug(): command - reset_config srst_nogate
- Debug: 96 3 command.c:146 script_debug(): command - transport select
- Debug: 97 3 command.c:146 script_debug(): command - stm32f0x.cpu configure -event examine-end stm32f0x_default_examine_end
- Debug: 98 3 command.c:146 script_debug(): command - stm32f0x.cpu configure -event reset-start stm32f0x_default_reset_start
- Debug: 99 3 command.c:146 script_debug(): command - stm32f0x.cpu configure -event reset-init stm32f0x_default_reset_init
- Debug: 100 3 command.c:146 script_debug(): command - reset_config srst_only
- User : 102 3 options.c:63 configuration_output_handler(): srst_only separate srst_nogate srst_open_drain connect_deassert_srst
- User : 103 3 options.c:63 configuration_output_handler():
- Info : 104 3 server.c:311 add_service(): Listening on port 6666 for tcl connections
- Info : 105 3 server.c:311 add_service(): Listening on port 4444 for telnet connections
- Debug: 106 3 command.c:146 script_debug(): command - init
- Debug: 108 3 command.c:146 script_debug(): command - target init
- Debug: 110 3 command.c:146 script_debug(): command - target names
- Debug: 111 3 command.c:146 script_debug(): command - stm32f0x.cpu cget -event gdb-flash-erase-start
- Debug: 112 3 command.c:146 script_debug(): command - stm32f0x.cpu configure -event gdb-flash-erase-start reset init
- Debug: 113 3 command.c:146 script_debug(): command - stm32f0x.cpu cget -event gdb-flash-write-end
- Debug: 114 3 command.c:146 script_debug(): command - stm32f0x.cpu configure -event gdb-flash-write-end reset halt
- Debug: 115 3 command.c:146 script_debug(): command - stm32f0x.cpu cget -event gdb-attach
- Debug: 116 3 command.c:146 script_debug(): command - stm32f0x.cpu configure -event gdb-attach halt 1000
- Debug: 117 3 target.c:1639 handle_target_init_command(): Initializing targets...
- Debug: 118 3 hla_target.c:193 adapter_init_target(): adapter_init_target
- Debug: 119 3 semihosting_common.c:99 semihosting_common_init():
- Debug: 120 3 hla_interface.c:109 hl_interface_init(): hl_interface_init
- Debug: 121 3 hla_layout.c:95 hl_layout_init(): hl_layout_init
- Debug: 122 3 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
- Debug: 123 3 core.c:1789 adapter_khz_to_speed(): have interface set up
- Debug: 124 3 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
- Debug: 125 3 core.c:1789 adapter_khz_to_speed(): have interface set up
- Info : 126 3 core.c:1565 adapter_init(): clock speed 1000 kHz
- Debug: 127 3 openocd.c:143 handle_init_command(): Debug Adapter init complete
- Debug: 128 3 command.c:146 script_debug(): command - transport init
- Debug: 130 3 transport.c:229 handle_transport_init(): handle_transport_init
- Debug: 131 3 hla_transport.c:156 hl_transport_init(): hl_transport_init
- Debug: 132 3 hla_transport.c:173 hl_transport_init(): current transport hla_swd
- Debug: 133 3 hla_interface.c:42 hl_interface_open(): hl_interface_open
- Debug: 134 3 hla_layout.c:40 hl_layout_open(): hl_layout_open
- Debug: 135 3 stlink_usb.c:2819 stlink_usb_open(): stlink_usb_open
- Debug: 136 3 stlink_usb.c:2831 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x3744 serial:
- Debug: 137 3 stlink_usb.c:2831 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x3748 serial:
- Debug: 138 3 stlink_usb.c:2831 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x374b serial:
- Debug: 139 3 stlink_usb.c:2831 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x374d serial:
- Debug: 140 3 stlink_usb.c:2831 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x374e serial:
- Debug: 141 3 stlink_usb.c:2831 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x374f serial:
- Debug: 142 3 stlink_usb.c:2831 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x3752 serial:
- Debug: 143 3 stlink_usb.c:2831 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x3753 serial:
- [New Thread 0x7ffff7bfd640 (LWP 7671)]
- Thread 1 "openocd" received signal SIGSEGV, Segmentation fault.
- 0x00007ffff7f5f5b3 in libusb_get_next_timeout () from /usr/lib/libusb-1.0.so.0
- (gdb) bt
- #0 0x00007ffff7f5f5b3 in libusb_get_next_timeout () from /usr/lib/libusb-1.0.so.0
- #1 0x00007ffff7f5f7d5 in ?? () from /usr/lib/libusb-1.0.so.0
- #2 0x00007ffff7f5f8b7 in libusb_handle_events_timeout_completed () from /usr/lib/libusb-1.0.so.0
- #3 0x00007ffff7f5fac5 in libusb_handle_events_completed () from /usr/lib/libusb-1.0.so.0
- #4 0x00005555555e29aa in ?? ()
- #5 0x00005555555e2f9f in ?? ()
- #6 0x00005555555e8539 in ?? ()
- #7 0x000055555564388c in ?? ()
- #8 0x00005555556435bf in ?? ()
- #9 0x00005555555b47e2 in ?? ()
- #10 0x000055555563924a in ?? ()
- #11 0x000055555579a737 in ?? ()
- #12 0x0000000000000003 in ?? ()
- #13 0x0000000000000002 in ?? ()
- #14 0x00005555559c44d0 in ?? ()
- #15 0x0000000000000002 in ?? ()
- #16 0x0000000000000003 in ?? ()
- #17 0x00007fffffffd5a0 in ?? ()
- #18 0x00005555559862e0 in ?? ()
- #19 0x000055555579b7b3 in ?? ()
- #20 0x000000000000008f in ?? ()
- #21 0x00005555559b5310 in ?? ()
- #22 0x00005555559b3fc0 in ?? ()
- #23 0x00005555559dc310 in ?? ()
- #24 0x00005555559c5f40 in ?? ()
- #25 0x00007fffffffd5a0 in ?? ()
- #26 0x00005555559a69e0 in ?? ()
- #27 0x00007fff00000001 in ?? ()
- #28 0x00005555559c47d0 in ?? ()
- #29 0x00005555559c44d0 in ?? ()
- #30 0x0000003000000028 in ?? ()
- #31 0xe789eb39fa862a00 in ?? ()
- #32 0x00007fffffffd5d0 in ?? ()
- #33 0xffffffffffffff70 in ?? ()
- #34 0x0000000000000000 in ?? ()
- (gdb) exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement