Guest User

Untitled

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