Advertisement
Guest User

Untitled

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