Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- openocd -f openocd.cfg -d3
- 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 3 command.c:166 script_debug(): command - ocd_find target/stm32h7x_dual_bank.cfg
- Debug: 22 3 configuration.c:99 find_file(): found /usr/bin/../share/openocd/scripts/target/stm32h7x_dual_bank.cfg
- Debug: 23 3 command.c:166 script_debug(): command - ocd_find target/stm32h7x.cfg
- Debug: 24 3 configuration.c:99 find_file(): found /usr/bin/../share/openocd/scripts/target/stm32h7x.cfg
- Debug: 25 3 command.c:166 script_debug(): command - ocd_find target/swj-dp.tcl
- Debug: 26 3 configuration.c:99 find_file(): found /usr/bin/../share/openocd/scripts/target/swj-dp.tcl
- Debug: 27 3 command.c:166 script_debug(): command - transport select
- Debug: 28 3 command.c:166 script_debug(): command - ocd_find mem_helper.tcl
- Debug: 29 3 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 4 command.c:166 script_debug(): command - transport select
- Debug: 51 4 command.c:166 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
- Debug: 52 4 command.c:166 script_debug(): command - transport select
- Debug: 53 4 command.c:166 script_debug(): command - expr [ string first "hla" $_TRANSPORT ] != -1
- Debug: 54 4 command.c:166 script_debug(): command - target create stm32h7x.ap2 mem_ap -dap stm32h7x.dap -ap-num 2
- Debug: 55 4 command.c:166 script_debug(): command - swo create stm32h7x.swo -dap stm32h7x.dap -ap-num 2 -baseaddr 0xE00E3000
- Debug: 56 4 command.c:166 script_debug(): command - tpiu create stm32h7x.tpiu -dap stm32h7x.dap -ap-num 2 -baseaddr 0xE00F5000
- Debug: 57 4 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 5 command.c:300 register_command(): command 'stm32h7x mass_erase' is already registered
- Debug: 71 5 command.c:300 register_command(): command 'stm32h7x option_read' is already registered
- Debug: 72 5 command.c:300 register_command(): command 'stm32h7x option_write' is already registered
- Debug: 73 5 tcl.c:1316 handle_flash_bank_command(): 'stm32h7x' driver usage field missing
- Debug: 74 5 command.c:166 script_debug(): command - target create stm32h7x.cpu1 cortex_m -endian little -dap stm32h7x.dap -ap-num 3
- Debug: 75 5 command.c:300 register_command(): command 'arm' is already registered
- Debug: 76 5 command.c:300 register_command(): command 'arm reg' is already registered
- Debug: 77 5 command.c:300 register_command(): command 'arm core_state' is already registered
- Debug: 78 5 command.c:300 register_command(): command 'arm disassemble' is already registered
- Debug: 79 5 command.c:300 register_command(): command 'arm mcr' is already registered
- Debug: 80 5 command.c:300 register_command(): command 'arm mrc' is already registered
- Debug: 81 5 command.c:300 register_command(): command 'arm semihosting' is already registered
- Debug: 82 5 command.c:300 register_command(): command 'arm semihosting_cmdline' is already registered
- Debug: 83 5 command.c:300 register_command(): command 'arm semihosting_fileio' is already registered
- Debug: 84 5 command.c:300 register_command(): command 'arm semihosting_resexit' is already registered
- Debug: 85 5 command.c:300 register_command(): command 'arm semihosting_read_user_param' is already registered
- Debug: 86 5 command.c:300 register_command(): command 'itm' is already registered
- Debug: 87 5 command.c:300 register_command(): command 'itm port' is already registered
- Debug: 88 5 command.c:300 register_command(): command 'itm ports' is already registered
- Debug: 89 5 command.c:300 register_command(): command 'tpiu' is already registered
- Debug: 90 5 command.c:300 register_command(): command 'tpiu config' is already registered
- Debug: 91 5 command.c:300 register_command(): command 'cortex_m' is already registered
- Debug: 92 5 command.c:300 register_command(): command 'cortex_m maskisr' is already registered
- Debug: 93 5 command.c:300 register_command(): command 'cortex_m vector_catch' is already registered
- Debug: 94 5 command.c:300 register_command(): command 'cortex_m reset_config' is already registered
- Debug: 95 5 command.c:300 register_command(): command 'rtt' is already registered
- Debug: 96 5 command.c:300 register_command(): command 'rtt setup' is already registered
- Debug: 97 5 command.c:300 register_command(): command 'rtt start' is already registered
- Debug: 98 5 command.c:300 register_command(): command 'rtt stop' is already registered
- Debug: 99 5 command.c:300 register_command(): command 'rtt polling_interval' is already registered
- Debug: 100 5 command.c:300 register_command(): command 'rtt channels' is already registered
- Debug: 101 5 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 6 command.c:166 script_debug(): command - stm32h7x.cpu1 cortex_m reset_config sysresetreq
- Debug: 135 6 command.c:166 script_debug(): command - stm32h7x.dap apcsw 0x08000000 0x08000000
- Debug: 136 6 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 6 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 6 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 6 command.c:166 script_debug(): command - cti create stm32h7x.cti0 -dap stm32h7x.dap -ap-num 0 -baseaddr 0xE0043000
- Debug: 140 6 command.c:166 script_debug(): command - cti create stm32h7x.cti1 -dap stm32h7x.dap -ap-num 3 -baseaddr 0xE0043000
- Debug: 141 6 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -event halted stm32h7x_cti_prepare_restart_all
- Debug: 142 6 command.c:166 script_debug(): command - stm32h7x.cpu1 configure -event halted stm32h7x_cti_prepare_restart_all
- Debug: 143 6 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -event debug-halted stm32h7x_cti_prepare_restart_all
- Debug: 144 6 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 7 command.c:166 script_debug(): command - stm32h7x.ap2 cget -event gdb-attach
- Debug: 158 7 command.c:166 script_debug(): command - stm32h7x.ap2 configure -event gdb-attach halt 1000
- Debug: 159 7 command.c:166 script_debug(): command - stm32h7x.cpu0 cget -event gdb-flash-erase-start
- Debug: 160 7 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -event gdb-flash-erase-start reset init
- Debug: 161 7 command.c:166 script_debug(): command - stm32h7x.cpu0 cget -event gdb-flash-write-end
- Debug: 162 7 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -event gdb-flash-write-end reset halt
- Debug: 163 7 command.c:166 script_debug(): command - stm32h7x.cpu0 cget -event gdb-attach
- Debug: 164 7 command.c:166 script_debug(): command - stm32h7x.cpu0 configure -event gdb-attach halt 1000
- Debug: 165 7 command.c:166 script_debug(): command - stm32h7x.cpu1 cget -event gdb-flash-erase-start
- Debug: 166 7 command.c:166 script_debug(): command - stm32h7x.cpu1 configure -event gdb-flash-erase-start reset init
- Debug: 167 7 command.c:166 script_debug(): command - stm32h7x.cpu1 cget -event gdb-flash-write-end
- Debug: 168 7 command.c:166 script_debug(): command - stm32h7x.cpu1 configure -event gdb-flash-write-end reset halt
- Debug: 169 7 command.c:166 script_debug(): command - stm32h7x.cpu1 cget -event gdb-attach
- Debug: 170 7 command.c:166 script_debug(): command - stm32h7x.cpu1 configure -event gdb-attach halt 1000
- Debug: 171 7 target.c:1661 handle_target_init_command(): Initializing targets...
- Debug: 172 7 mem_ap.c:69 mem_ap_init_target(): mem_ap_init_target
- Debug: 173 7 semihosting_common.c:115 semihosting_common_init():
- Debug: 174 7 semihosting_common.c:115 semihosting_common_init():
- Debug: 175 7 stlink_usb.c:5055 stlink_dap_init(): stlink_dap_init()
- Debug: 176 7 stlink_usb.c:3685 stlink_open(): stlink_open
- Debug: 177 7 stlink_usb.c:3697 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3744 serial:
- Debug: 178 7 stlink_usb.c:3697 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3748 serial:
- Debug: 179 7 stlink_usb.c:3697 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374b serial:
- Debug: 180 7 stlink_usb.c:3697 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374d serial:
- Debug: 181 7 stlink_usb.c:3697 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374e serial:
- Debug: 182 7 stlink_usb.c:3697 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374f serial:
- Debug: 183 7 stlink_usb.c:3697 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3752 serial:
- Debug: 184 7 stlink_usb.c:3697 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3753 serial:
- Debug: 185 7 stlink_usb.c:3697 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3754 serial:
- Info : 186 19 stlink_usb.c:1429 stlink_usb_version(): STLINK V3J3M2 (API v3) VID:PID 0483:374E
- Debug: 187 19 stlink_usb.c:1654 stlink_usb_exit_mode(): MODE: 0x01
- Info : 188 19 stlink_usb.c:1465 stlink_usb_check_voltage(): Target voltage: 3.278473
- Debug: 189 19 stlink_usb.c:1722 stlink_usb_init_mode(): MODE: 0x01
- Debug: 190 20 stlink_usb.c:3088 stlink_dump_speed_map(): Supported clock speeds are:
- Debug: 191 20 stlink_usb.c:3091 stlink_dump_speed_map(): 24000 kHz
- Debug: 192 20 stlink_usb.c:3091 stlink_dump_speed_map(): 8000 kHz
- Debug: 193 20 stlink_usb.c:3091 stlink_dump_speed_map(): 3300 kHz
- Debug: 194 20 stlink_usb.c:3091 stlink_dump_speed_map(): 1000 kHz
- Debug: 195 20 stlink_usb.c:3091 stlink_dump_speed_map(): 200 kHz
- Debug: 196 20 stlink_usb.c:3091 stlink_dump_speed_map(): 50 kHz
- Debug: 197 20 stlink_usb.c:3091 stlink_dump_speed_map(): 5 kHz
- Debug: 198 242 stlink_usb.c:1782 stlink_usb_init_mode(): MODE: 0x02
- Debug: 199 280 stlink_usb.c:4080 stlink_usb_open_ap(): AP 0 enabled
- Debug: 200 340 stlink_usb.c:3773 stlink_open(): Using TAR autoincrement: 1024
- Debug: 201 340 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value
- Debug: 202 340 adapter.c:148 adapter_khz_to_speed(): have adapter set up
- Info : 203 340 stlink_usb.c:3031 stlink_match_speed_map(): Unable to match requested speed 1800 kHz, using 1000 kHz
- Debug: 204 340 adapter.c:144 adapter_khz_to_speed(): convert khz to adapter specific speed value
- Debug: 205 340 adapter.c:148 adapter_khz_to_speed(): have adapter set up
- Info : 206 340 stlink_usb.c:3031 stlink_match_speed_map(): Unable to match requested speed 1800 kHz, using 1000 kHz
- Info : 207 340 adapter.c:108 adapter_init(): clock speed 1000 kHz
- Debug: 208 340 openocd.c:143 handle_init_command(): Debug Adapter init complete
- Debug: 209 340 command.c:166 script_debug(): command - transport init
- Debug: 210 340 transport.c:230 handle_transport_init(): handle_transport_init
- Debug: 211 340 adi_v5_dapdirect.c:184 dapdirect_init(): dapdirect_init()
- Debug: 212 340 stlink_usb.c:5098 stlink_dap_reset(): stlink_dap_reset(0)
- Debug: 213 340 core.c:634 adapter_system_reset(): SRST line released
- Debug: 214 442 command.c:166 script_debug(): command - dap init
- Debug: 215 442 arm_dap.c:107 dap_init_all(): Initializing all DAPs ...
- Info : 216 442 stlink_usb.c:4150 stlink_dap_op_connect(): stlink_dap_op_connect(connect)
- Debug: 217 442 arm_adi_v5.c:670 dap_dp_init(): stm32h7x.dap
- Debug: 218 442 arm_adi_v5.c:702 dap_dp_init(): DAP: wait CDBGPWRUPACK
- Debug: 219 442 arm_adi_v5.h:569 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000
- Debug: 220 442 arm_adi_v5.c:710 dap_dp_init(): DAP: wait CSYSPWRUPACK
- Debug: 221 442 arm_adi_v5.h:569 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000
- Debug: 222 443 stlink_usb.c:2015 stlink_usb_idcode(): IDCODE: 0x6BA02477
- Info : 223 443 stlink_usb.c:4177 stlink_dap_op_connect(): SWD DPIDR 0x6ba02477
- Debug: 224 443 openocd.c:160 handle_init_command(): Examining targets...
- Debug: 225 443 target.c:1847 target_call_event_callbacks(): target event 19 (examine-start) for core stm32h7x.ap2
- Debug: 226 444 stlink_usb.c:4080 stlink_usb_open_ap(): AP 2 enabled
- Debug: 227 444 arm_adi_v5.c:816 mem_ap_init(): MEM_AP Packed Transfers: disabled
- Debug: 228 444 arm_adi_v5.c:827 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
- Debug: 229 444 target.c:1847 target_call_event_callbacks(): target event 21 (examine-end) for core stm32h7x.ap2
- Debug: 230 444 target.c:1847 target_call_event_callbacks(): target event 19 (examine-start) for core stm32h7x.cpu0
- Debug: 231 445 arm_adi_v5.c:816 mem_ap_init(): MEM_AP Packed Transfers: disabled
- Debug: 232 445 arm_adi_v5.c:827 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
- Debug: 233 446 target.c:2631 target_read_u32(): address: 0xe000ed00, value: 0x411fc271
- Info : 234 446 cortex_m.c:2325 cortex_m_examine(): stm32h7x.cpu0: Cortex-M7 r1p1 processor detected
- Debug: 235 446 cortex_m.c:2341 cortex_m_examine(): cpuid: 0x411fc271
- Debug: 236 446 target.c:2631 target_read_u32(): address: 0xe000ef40, value: 0x10110221
- Debug: 237 447 target.c:2631 target_read_u32(): address: 0xe000ef44, value: 0x12000011
- Debug: 238 447 cortex_m.c:2361 cortex_m_examine(): Cortex-M7 floating point feature FPv5_DP found
- Debug: 239 447 target.c:2631 target_read_u32(): address: 0xe000edf0, value: 0x00030003
- Debug: 240 447 target.c:2719 target_write_u32(): address: 0xe000edfc, value: 0x01000000
- Debug: 241 448 target.c:2631 target_read_u32(): address: 0xe0002000, value: 0x10000081
- Debug: 242 448 target.c:2719 target_write_u32(): address: 0xe0002008, value: 0x00000000
- Debug: 243 449 target.c:2719 target_write_u32(): address: 0xe000200c, value: 0x00000000
- Debug: 244 449 target.c:2719 target_write_u32(): address: 0xe0002010, value: 0x00000000
- Debug: 245 450 target.c:2719 target_write_u32(): address: 0xe0002014, value: 0x00000000
- Debug: 246 450 target.c:2719 target_write_u32(): address: 0xe0002018, value: 0x00000000
- Debug: 247 451 target.c:2719 target_write_u32(): address: 0xe000201c, value: 0x00000000
- Debug: 248 451 target.c:2719 target_write_u32(): address: 0xe0002020, value: 0x00000000
- Debug: 249 452 target.c:2719 target_write_u32(): address: 0xe0002024, value: 0x00000000
- Debug: 250 452 cortex_m.c:2431 cortex_m_examine(): FPB fpcr 0x10000081, numcode 8, numlit 0
- Debug: 251 452 target.c:2631 target_read_u32(): address: 0xe0001000, value: 0x40000001
- Debug: 252 452 cortex_m.c:2165 cortex_m_dwt_setup(): DWT_CTRL: 0x40000001
- Debug: 253 453 target.c:2631 target_read_u32(): address: 0xe0001fbc, value: 0x00000000
- Debug: 254 453 cortex_m.c:2172 cortex_m_dwt_setup(): DWT_DEVARCH: 0x0
- Debug: 255 453 target.c:2719 target_write_u32(): address: 0xe0001028, value: 0x00000000
- Debug: 256 453 target.c:2719 target_write_u32(): address: 0xe0001038, value: 0x00000000
- Debug: 257 454 target.c:2719 target_write_u32(): address: 0xe0001048, value: 0x00000000
- Debug: 258 454 target.c:2719 target_write_u32(): address: 0xe0001058, value: 0x00000000
- Debug: 259 455 cortex_m.c:2219 cortex_m_dwt_setup(): DWT dwtcr 0x40000001, comp 4, watch/trigger
- Info : 260 455 cortex_m.c:2441 cortex_m_examine(): stm32h7x.cpu0: target has 8 breakpoints, 4 watchpoints
- Debug: 261 455 target.c:1847 target_call_event_callbacks(): target event 21 (examine-end) for core stm32h7x.cpu0
- Debug: 262 455 target.c:4827 target_handle_event(): target(1): stm32h7x.cpu0 (cortex_m) event: 21 (examine-end) action:
- # 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: 263 455 command.c:166 script_debug(): command - transport select
- Debug: 264 456 command.c:166 script_debug(): command - expr [ string first "hla" $_TRANSPORT ] != -1
- Debug: 265 456 command.c:166 script_debug(): command - target current
- Debug: 266 457 command.c:166 script_debug(): command - expr $sep - 1
- Debug: 267 457 command.c:166 script_debug(): command - expr 0xE00E1000 + $reg_offset
- Debug: 268 458 command.c:166 script_debug(): command - stm32h7x.ap2 mem2array value 32 3759017988 1
- Debug: 269 458 mem_ap.c:238 mem_ap_read_memory(): Reading memory at physical address 0xe00e1004; size 4; count 1
- Debug: 270 459 command.c:166 script_debug(): command - expr ($old & ~$clearbits) | $setbits
- Debug: 271 459 command.c:166 script_debug(): command - stm32h7x.ap2 mww 3759017988 7340095
- Debug: 272 460 mem_ap.c:253 mem_ap_write_memory(): Writing memory at physical address 0xe00e1004; size 4; count 1
- Debug: 273 460 command.c:166 script_debug(): command - transport select
- Debug: 274 461 command.c:166 script_debug(): command - expr [ string first "hla" $_TRANSPORT ] != -1
- Debug: 275 461 command.c:166 script_debug(): command - target current
- Debug: 276 462 command.c:166 script_debug(): command - expr $sep - 1
- Debug: 277 462 command.c:166 script_debug(): command - expr 0xE00E1000 + $reg_offset
- Debug: 278 463 command.c:166 script_debug(): command - stm32h7x.ap2 mem2array value 32 3759017988 1
- Debug: 279 463 mem_ap.c:238 mem_ap_read_memory(): Reading memory at physical address 0xe00e1004; size 4; count 1
- Debug: 280 464 command.c:166 script_debug(): command - expr ($old & ~$clearbits) | $setbits
- Debug: 281 465 command.c:166 script_debug(): command - stm32h7x.ap2 mww 3759017988 7340095
- Debug: 282 465 mem_ap.c:253 mem_ap_write_memory(): Writing memory at physical address 0xe00e1004; size 4; count 1
- Debug: 283 466 command.c:166 script_debug(): command - transport select
- Debug: 284 466 command.c:166 script_debug(): command - expr [ string first "hla" $_TRANSPORT ] != -1
- Debug: 285 467 command.c:166 script_debug(): command - target current
- Debug: 286 467 command.c:166 script_debug(): command - expr $sep - 1
- Debug: 287 468 command.c:166 script_debug(): command - expr 0xE00E1000 + $reg_offset
- Debug: 288 468 command.c:166 script_debug(): command - stm32h7x.ap2 mem2array value 32 3759017988 1
- Debug: 289 469 mem_ap.c:238 mem_ap_read_memory(): Reading memory at physical address 0xe00e1004; size 4; count 1
- Debug: 290 469 command.c:166 script_debug(): command - expr ($old & ~$clearbits) | $setbits
- Debug: 291 470 command.c:166 script_debug(): command - stm32h7x.ap2 mww 3759017988 7340095
- Debug: 292 470 mem_ap.c:253 mem_ap_write_memory(): Writing memory at physical address 0xe00e1004; size 4; count 1
- Debug: 293 471 command.c:166 script_debug(): command - transport select
- Debug: 294 471 command.c:166 script_debug(): command - expr [ string first "hla" $_TRANSPORT ] != -1
- Debug: 295 472 command.c:166 script_debug(): command - target current
- Debug: 296 472 command.c:166 script_debug(): command - expr $sep - 1
- Debug: 297 473 command.c:166 script_debug(): command - expr 0xE00E1000 + $reg_offset
- Debug: 298 473 command.c:166 script_debug(): command - stm32h7x.ap2 mem2array value 32 3759018036 1
- Debug: 299 474 mem_ap.c:238 mem_ap_read_memory(): Reading memory at physical address 0xe00e1034; size 4; count 1
- Debug: 300 474 command.c:166 script_debug(): command - expr ($old & ~$clearbits) | $setbits
- Debug: 301 475 command.c:166 script_debug(): command - stm32h7x.ap2 mww 3759018036 64
- Debug: 302 476 mem_ap.c:253 mem_ap_write_memory(): Writing memory at physical address 0xe00e1034; size 4; count 1
- Debug: 303 476 command.c:166 script_debug(): command - transport select
- Debug: 304 477 command.c:166 script_debug(): command - expr [ string first "hla" $_TRANSPORT ] != -1
- Debug: 305 477 command.c:166 script_debug(): command - target current
- Debug: 306 478 command.c:166 script_debug(): command - expr $sep - 1
- Debug: 307 478 command.c:166 script_debug(): command - expr 0xE00E1000 + $reg_offset
- Debug: 308 479 command.c:166 script_debug(): command - stm32h7x.ap2 mem2array value 32 3759018044 1
- Debug: 309 479 mem_ap.c:238 mem_ap_read_memory(): Reading memory at physical address 0xe00e103c; size 4; count 1
- Debug: 310 480 command.c:166 script_debug(): command - expr ($old & ~$clearbits) | $setbits
- Debug: 311 480 command.c:166 script_debug(): command - stm32h7x.ap2 mww 3759018044 2048
- Debug: 312 481 mem_ap.c:253 mem_ap_write_memory(): Writing memory at physical address 0xe00e103c; size 4; count 1
- Debug: 313 481 command.c:166 script_debug(): command - transport select
- Debug: 314 482 command.c:166 script_debug(): command - expr [ string first "hla" $_TRA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement