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