Advertisement
mattb738

OpenOCD Log 1/2

Feb 28th, 2022
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.86 KB | None | 0 0
  1. Open On-Chip Debugger 0.11.0+dev-00584-g103b1d68d-dirty (2022-02-28-14:49)
  2. Licensed under GNU GPL v2
  3. For bug reports, read
  4. http://openocd.org/doc/doxygen/bugs.html
  5. User : 3 3 options.c:63 configuration_output_handler(): debug_level: 3
  6. User : 4 3 options.c:63 configuration_output_handler():
  7. Debug: 5 3 options.c:244 add_default_dirs(): bindir=/usr/bin
  8. Debug: 6 3 options.c:245 add_default_dirs(): pkgdatadir=/usr/share/openocd
  9. Debug: 7 3 options.c:246 add_default_dirs(): exepath=/usr/bin
  10. Debug: 8 3 options.c:247 add_default_dirs(): bin2data=../share/openocd
  11. Debug: 9 3 configuration.c:44 add_script_search_dir(): adding /home/matt/.config/openocd
  12. Debug: 10 3 configuration.c:44 add_script_search_dir(): adding /home/matt/.openocd
  13. Debug: 11 3 configuration.c:44 add_script_search_dir(): adding /usr/bin/../share/openocd/site
  14. Debug: 12 3 configuration.c:44 add_script_search_dir(): adding /usr/bin/../share/openocd/scripts
  15. Debug: 13 3 command.c:166 script_debug(): command - ocd_find openocd.cfg
  16. Debug: 14 3 configuration.c:99 find_file(): found openocd.cfg
  17. Debug: 15 3 command.c:166 script_debug(): command - ocd_find interface/stlink-dap.cfg
  18. Debug: 16 3 configuration.c:99 find_file(): found /usr/bin/../share/openocd/scripts/interface/stlink-dap.cfg
  19. Debug: 17 3 command.c:166 script_debug(): command - adapter driver st-link
  20. Debug: 18 3 command.c:166 script_debug(): command - st-link vid_pid 0x0483 0x3744 0x0483 0x3748 0x0483 0x374b 0x0483 0x374d 0x0483 0x374e 0x0483 0x374f 0x0483 0x3752 0x0483 0x3753 0x0483 0x3754
  21. Debug: 19 3 command.c:166 script_debug(): command - transport select dapdirect_swd
  22. Debug: 20 3 adi_v5_dapdirect.c:175 dapdirect_swd_select(): dapdirect_swd_select()
  23. Debug: 21 4 command.c:166 script_debug(): command - ocd_find target/stm32h7x_dual_bank.cfg
  24. Debug: 22 4 configuration.c:99 find_file(): found /usr/bin/../share/openocd/scripts/target/stm32h7x_dual_bank.cfg
  25. Debug: 23 4 command.c:166 script_debug(): command - ocd_find target/stm32h7x.cfg
  26. Debug: 24 4 configuration.c:99 find_file(): found /usr/bin/../share/openocd/scripts/target/stm32h7x.cfg
  27. Debug: 25 4 command.c:166 script_debug(): command - ocd_find target/swj-dp.tcl
  28. Debug: 26 4 configuration.c:99 find_file(): found /usr/bin/../share/openocd/scripts/target/swj-dp.tcl
  29. Debug: 27 4 command.c:166 script_debug(): command - transport select
  30. Debug: 28 4 command.c:166 script_debug(): command - ocd_find mem_helper.tcl
  31. Debug: 29 4 configuration.c:99 find_file(): found /usr/bin/../share/openocd/scripts/mem_helper.tcl
  32. Debug: 30 4 command.c:166 script_debug(): command - add_usage_text mrw address
  33. Debug: 31 4 command.c:166 script_debug(): command - add_help_text mrw Returns value of word in memory.
  34. Debug: 32 4 command.c:166 script_debug(): command - add_usage_text mrh address
  35. Debug: 33 4 command.c:166 script_debug(): command - add_help_text mrh Returns value of halfword in memory.
  36. Debug: 34 4 command.c:166 script_debug(): command - add_usage_text mrb address
  37. Debug: 35 4 command.c:166 script_debug(): command - add_help_text mrb Returns value of byte in memory.
  38. Debug: 36 4 command.c:166 script_debug(): command - add_usage_text mmw address setbits clearbits
  39. Debug: 37 4 command.c:166 script_debug(): command - add_help_text mmw Modify word in memory. new_val = (old_val & ~clearbits) | setbits;
  40. Debug: 38 4 command.c:166 script_debug(): command - transport select
  41. Debug: 39 4 command.c:166 script_debug(): command - expr [ string first "hla" $_TRANSPORT ] != -1
  42. Debug: 40 4 command.c:166 script_debug(): command - transport select
  43. Debug: 41 4 command.c:166 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
  44. Debug: 42 4 command.c:166 script_debug(): command - transport select
  45. Debug: 43 4 command.c:166 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
  46. Debug: 44 4 command.c:166 script_debug(): command - transport select
  47. Debug: 45 4 command.c:166 script_debug(): command - expr [ string first "swd" $_TRANSPORT ] != -1
  48. Debug: 46 4 command.c:166 script_debug(): command - swd newdap stm32h7x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x6ba02477
  49. Debug: 47 4 tcl.c:568 jim_newtap_cmd(): Creating New Tap, Chip: stm32h7x, Tap: cpu, Dotted: stm32h7x.cpu, 8 params
  50. Debug: 48 4 core.c:1468 jtag_tap_init(): Created Tap: stm32h7x.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0
  51. Debug: 49 4 command.c:166 script_debug(): command - dap create stm32h7x.dap -chain-position stm32h7x.cpu
  52. Debug: 50 5 command.c:166 script_debug(): command - transport select
  53. Debug: 51 5 command.c:166 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
  54. Debug: 52 5 command.c:166 script_debug(): command - transport select
  55. Debug: 53 5 command.c:166 script_debug(): command - expr [ string first "hla" $_TRANSPORT ] != -1
  56. Debug: 54 5 command.c:166 script_debug(): command - target create stm32h7x.ap2 mem_ap -dap stm32h7x.dap -ap-num 2
  57. Debug: 55 5 command.c:166 script_debug(): command - swo create stm32h7x.swo -dap stm32h7x.dap -ap-num 2 -baseaddr 0xE00E3000
  58. Debug: 56 5 command.c:166 script_debug(): command - tpiu create stm32h7x.tpiu -dap stm32h7x.dap -ap-num 2 -baseaddr 0xE00F5000
  59. Debug: 57 5 command.c:166 script_debug(): command - target create stm32h7x.cpu0 cortex_m -endian little -dap stm32h7x.dap -ap-num 0
  60. Debug: 58 5 command.c:300 register_command(): command 'tpiu' is already registered
  61. Debug: 59 5 command.c:300 register_command(): command 'rtt' is already registered
  62. Debug: 60 5 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -work-area-phys 0x20000000 -work-area-size 0x10000 -work-area-backup 0
  63. Debug: 61 5 target.c:2204 target_free_all_working_areas_restore(): freeing all working areas
  64. Debug: 62 5 target.c:2204 target_free_all_working_areas_restore(): freeing all working areas
  65. Debug: 63 5 target.c:2204 target_free_all_working_areas_restore(): freeing all working areas
  66. Debug: 64 5 command.c:166 script_debug(): command - flash bank stm32h7x.bank1.cpu0 stm32h7x 0x08000000 0 0 0 stm32h7x.cpu0
  67. Debug: 65 5 tcl.c:1316 handle_flash_bank_command(): 'stm32h7x' driver usage field missing
  68. Debug: 66 5 command.c:166 script_debug(): command - flash bank stm32h7x.bank2.cpu0 stm32h7x 0x08100000 0 0 0 stm32h7x.cpu0
  69. Debug: 67 5 command.c:300 register_command(): command 'stm32h7x' is already registered
  70. Debug: 68 5 command.c:300 register_command(): command 'stm32h7x lock' is already registered
  71. Debug: 69 5 command.c:300 register_command(): command 'stm32h7x unlock' is already registered
  72. Debug: 70 6 command.c:300 register_command(): command 'stm32h7x mass_erase' is already registered
  73. Debug: 71 6 command.c:300 register_command(): command 'stm32h7x option_read' is already registered
  74. Debug: 72 6 command.c:300 register_command(): command 'stm32h7x option_write' is already registered
  75. Debug: 73 6 tcl.c:1316 handle_flash_bank_command(): 'stm32h7x' driver usage field missing
  76. Debug: 74 6 command.c:166 script_debug(): command - target create stm32h7x.cpu1 cortex_m -endian little -dap stm32h7x.dap -ap-num 3
  77. Debug: 75 6 command.c:300 register_command(): command 'arm' is already registered
  78. Debug: 76 6 command.c:300 register_command(): command 'arm reg' is already registered
  79. Debug: 77 6 command.c:300 register_command(): command 'arm core_state' is already registered
  80. Debug: 78 6 command.c:300 register_command(): command 'arm disassemble' is already registered
  81. Debug: 79 6 command.c:300 register_command(): command 'arm mcr' is already registered
  82. Debug: 80 6 command.c:300 register_command(): command 'arm mrc' is already registered
  83. Debug: 81 6 command.c:300 register_command(): command 'arm semihosting' is already registered
  84. Debug: 82 6 command.c:300 register_command(): command 'arm semihosting_cmdline' is already registered
  85. Debug: 83 6 command.c:300 register_command(): command 'arm semihosting_fileio' is already registered
  86. Debug: 84 6 command.c:300 register_command(): command 'arm semihosting_resexit' is already registered
  87. Debug: 85 6 command.c:300 register_command(): command 'arm semihosting_read_user_param' is already registered
  88. Debug: 86 6 command.c:300 register_command(): command 'itm' is already registered
  89. Debug: 87 6 command.c:300 register_command(): command 'itm port' is already registered
  90. Debug: 88 6 command.c:300 register_command(): command 'itm ports' is already registered
  91. Debug: 89 6 command.c:300 register_command(): command 'tpiu' is already registered
  92. Debug: 90 6 command.c:300 register_command(): command 'tpiu config' is already registered
  93. Debug: 91 6 command.c:300 register_command(): command 'cortex_m' is already registered
  94. Debug: 92 6 command.c:300 register_command(): command 'cortex_m maskisr' is already registered
  95. Debug: 93 6 command.c:300 register_command(): command 'cortex_m vector_catch' is already registered
  96. Debug: 94 6 command.c:300 register_command(): command 'cortex_m reset_config' is already registered
  97. Debug: 95 6 command.c:300 register_command(): command 'rtt' is already registered
  98. Debug: 96 6 command.c:300 register_command(): command 'rtt setup' is already registered
  99. Debug: 97 6 command.c:300 register_command(): command 'rtt start' is already registered
  100. Debug: 98 6 command.c:300 register_command(): command 'rtt stop' is already registered
  101. Debug: 99 6 command.c:300 register_command(): command 'rtt polling_interval' is already registered
  102. Debug: 100 6 command.c:300 register_command(): command 'rtt channels' is already registered
  103. Debug: 101 6 command.c:300 register_command(): command 'rtt channellist' is already registered
  104. Debug: 102 6 command.c:166 script_debug(): command - stm32h7x.cpu1 configure -work-area-phys 0x38000000 -work-area-size 0x10000 -work-area-backup 0
  105. Debug: 103 6 target.c:2204 target_free_all_working_areas_restore(): freeing all working areas
  106. Debug: 104 6 target.c:2204 target_free_all_working_areas_restore(): freeing all working areas
  107. Debug: 105 6 target.c:2204 target_free_all_working_areas_restore(): freeing all working areas
  108. Debug: 106 6 command.c:166 script_debug(): command - flash bank stm32h7x.bank1.cpu1 stm32h7x 0x08000000 0 0 0 stm32h7x.cpu1
  109. Debug: 107 6 command.c:300 register_command(): command 'stm32h7x' is already registered
  110. Debug: 108 6 command.c:300 register_command(): command 'stm32h7x lock' is already registered
  111. Debug: 109 6 command.c:300 register_command(): command 'stm32h7x unlock' is already registered
  112. Debug: 110 6 command.c:300 register_command(): command 'stm32h7x mass_erase' is already registered
  113. Debug: 111 6 command.c:300 register_command(): command 'stm32h7x option_read' is already registered
  114. Debug: 112 6 command.c:300 register_command(): command 'stm32h7x option_write' is already registered
  115. Debug: 113 6 tcl.c:1316 handle_flash_bank_command(): 'stm32h7x' driver usage field missing
  116. Debug: 114 6 command.c:166 script_debug(): command - flash bank stm32h7x.bank2.cpu1 stm32h7x 0x08100000 0 0 0 stm32h7x.cpu1
  117. Debug: 115 6 command.c:300 register_command(): command 'stm32h7x' is already registered
  118. Debug: 116 6 command.c:300 register_command(): command 'stm32h7x lock' is already registered
  119. Debug: 117 6 command.c:300 register_command(): command 'stm32h7x unlock' is already registered
  120. Debug: 118 6 command.c:300 register_command(): command 'stm32h7x mass_erase' is already registered
  121. Debug: 119 6 command.c:300 register_command(): command 'stm32h7x option_read' is already registered
  122. Debug: 120 6 command.c:300 register_command(): command 'stm32h7x option_write' is already registered
  123. Debug: 121 6 tcl.c:1316 handle_flash_bank_command(): 'stm32h7x' driver usage field missing
  124. Debug: 122 6 command.c:166 script_debug(): command - targets stm32h7x.cpu0
  125. Debug: 123 6 command.c:166 script_debug(): command - adapter speed 1800
  126. Debug: 124 6 adapter.c:180 adapter_config_khz(): handle adapter khz
  127. Debug: 125 6 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value
  128. Debug: 126 6 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value
  129. Debug: 127 6 command.c:166 script_debug(): command - adapter srst delay 100
  130. Debug: 128 6 command.c:166 script_debug(): command - transport select
  131. Debug: 129 6 command.c:166 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
  132. Debug: 130 6 command.c:166 script_debug(): command - reset_config srst_nogate
  133. Debug: 131 6 command.c:166 script_debug(): command - transport select
  134. Debug: 132 6 command.c:166 script_debug(): command - expr [ string first "hla" $_TRANSPORT ] != -1
  135. Debug: 133 6 command.c:166 script_debug(): command - stm32h7x.cpu0 cortex_m reset_config sysresetreq
  136. Debug: 134 7 command.c:166 script_debug(): command - stm32h7x.cpu1 cortex_m reset_config sysresetreq
  137. Debug: 135 7 command.c:166 script_debug(): command - stm32h7x.dap apcsw 0x08000000 0x08000000
  138. Debug: 136 7 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -event examine-end
  139. # Enable D3 and D1 DBG clocks
  140. # DBGMCU_CR |= D3DBGCKEN | D1DBGCKEN
  141. stm32h7x_dbgmcu_mmw 0x004 0x00600000 0
  142.  
  143. # Enable debug during low power modes (uses more power)
  144. # DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP D1 Domain
  145. stm32h7x_dbgmcu_mmw 0x004 0x00000007 0
  146. # DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP D2 Domain
  147. stm32h7x_dbgmcu_mmw 0x004 0x00000038 0
  148.  
  149. # Stop watchdog counters during halt
  150. # DBGMCU_APB3FZ1 |= WWDG1
  151. stm32h7x_dbgmcu_mmw 0x034 0x00000040 0
  152. # DBGMCU_APB1LFZ1 |= WWDG2
  153. stm32h7x_dbgmcu_mmw 0x03C 0x00000800 0
  154. # DBGMCU_APB4FZ1 |= WDGLSD1 | WDGLSD2
  155. stm32h7x_dbgmcu_mmw 0x054 0x000C0000 0
  156.  
  157. # Enable clock for tracing
  158. # DBGMCU_CR |= TRACECLKEN
  159. stm32h7x_dbgmcu_mmw 0x004 0x00100000 0
  160.  
  161. # RM0399 (id 0x450) M7+M4 with SWO Funnel
  162. # RM0433 (id 0x450) M7 with SWO Funnel
  163. # RM0455 (id 0x480) M7 without SWO Funnel
  164. # RM0468 (id 0x483) M7 without SWO Funnel
  165. # Enable CM7 and CM4 slave ports in SWO trace Funnel
  166. # Works ok also on devices single core and without SWO funnel
  167. # Hack, use stm32h7x_dbgmcu_mmw with big offset to control SWTF
  168. # SWTF_CTRL |= ENS0 | ENS1
  169. stm32h7x_dbgmcu_mmw 0x3000 0x00000003 0
  170.  
  171. Debug: 137 7 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -event reset-init
  172. # Clock after reset is HSI at 64 MHz, no need of PLL
  173. adapter speed 4000
  174.  
  175. Debug: 138 7 command.c:166 script_debug(): command - stm32h7x.cpu1 configure -event examine-end
  176. set _CHIPNAME [stm32h7x_get_chipname]
  177. global $_CHIPNAME.USE_CTI
  178.  
  179. # Stop watchdog counters during halt
  180. # DBGMCU_APB3FZ2 |= WWDG1
  181. stm32h7x_dbgmcu_mmw 0x038 0x00000040 0
  182. # DBGMCU_APB1LFZ2 |= WWDG2
  183. stm32h7x_dbgmcu_mmw 0x040 0x00000800 0
  184. # DBGMCU_APB4FZ2 |= WDGLSD1 | WDGLSD2
  185. stm32h7x_dbgmcu_mmw 0x058 0x000C0000 0
  186.  
  187. if {[set $_CHIPNAME.USE_CTI]} {
  188. stm32h7x_cti_start
  189. }
  190.  
  191. Debug: 139 7 command.c:166 script_debug(): command - cti create stm32h7x.cti0 -dap stm32h7x.dap -ap-num 0 -baseaddr 0xE0043000
  192. Debug: 140 7 command.c:166 script_debug(): command - cti create stm32h7x.cti1 -dap stm32h7x.dap -ap-num 3 -baseaddr 0xE0043000
  193. Debug: 141 7 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -event halted stm32h7x_cti_prepare_restart_all
  194. Debug: 142 7 command.c:166 script_debug(): command - stm32h7x.cpu1 configure -event halted stm32h7x_cti_prepare_restart_all
  195. Debug: 143 7 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -event debug-halted stm32h7x_cti_prepare_restart_all
  196. Debug: 144 7 command.c:166 script_debug(): command - stm32h7x.cpu1 configure -event debug-halted stm32h7x_cti_prepare_restart_all
  197. Debug: 145 7 command.c:166 script_debug(): command - reset_config srst_only
  198. User : 146 7 options.c:63 configuration_output_handler(): srst_only separate srst_nogate srst_open_drain connect_deassert_srst
  199. User : 147 7 options.c:63 configuration_output_handler():
  200. Info : 148 7 server.c:311 add_service(): Listening on port 6666 for tcl connections
  201. Info : 149 7 server.c:311 add_service(): Listening on port 4444 for telnet connections
  202. Debug: 150 7 command.c:166 script_debug(): command - init
  203. Debug: 151 7 command.c:166 script_debug(): command - target init
  204. Debug: 152 7 command.c:166 script_debug(): command - target names
  205. Debug: 153 7 command.c:166 script_debug(): command - stm32h7x.ap2 cget -event gdb-flash-erase-start
  206. Debug: 154 7 command.c:166 script_debug(): command - stm32h7x.ap2 configure -event gdb-flash-erase-start reset init
  207. Debug: 155 7 command.c:166 script_debug(): command - stm32h7x.ap2 cget -event gdb-flash-write-end
  208. Debug: 156 7 command.c:166 script_debug(): command - stm32h7x.ap2 configure -event gdb-flash-write-end reset halt
  209. Debug: 157 8 command.c:166 script_debug(): command - stm32h7x.ap2 cget -event gdb-attach
  210. Debug: 158 8 command.c:166 script_debug(): command - stm32h7x.ap2 configure -event gdb-attach halt 1000
  211. Debug: 159 8 command.c:166 script_debug(): command - stm32h7x.cpu0 cget -event gdb-flash-erase-start
  212. Debug: 160 8 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -event gdb-flash-erase-start reset init
  213. Debug: 161 8 command.c:166 script_debug(): command - stm32h7x.cpu0 cget -event gdb-flash-write-end
  214. Debug: 162 8 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -event gdb-flash-write-end reset halt
  215. Debug: 163 8 command.c:166 script_debug(): command - stm32h7x.cpu0 cget -event gdb-attach
  216. Debug: 164 8 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -event gdb-attach halt 1000
  217. Debug: 165 8 command.c:166 script_debug(): command - stm32h7x.cpu1 cget -event gdb-flash-erase-start
  218. Debug: 166 8 command.c:166 script_debug(): command - stm32h7x.cpu1 configure -event gdb-flash-erase-start reset init
  219. Debug: 167 8 command.c:166 script_debug(): command - stm32h7x.cpu1 cget -event gdb-flash-write-end
  220. Debug: 168 8 command.c:166 script_debug(): command - stm32h7x.cpu1 configure -event gdb-flash-write-end reset halt
  221. Debug: 169 8 command.c:166 script_debug(): command - stm32h7x.cpu1 cget -event gdb-attach
  222. Debug: 170 8 command.c:166 script_debug(): command - stm32h7x.cpu1 configure -event gdb-attach halt 1000
  223. Debug: 171 8 target.c:1661 handle_target_init_command(): Initializing targets...
  224. Debug: 172 8 mem_ap.c:69 mem_ap_init_target(): mem_ap_init_target
  225. Debug: 173 8 semihosting_common.c:115 semihosting_common_init():
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement