Open rusefillc opened 1 year ago
with debug
Open On-Chip Debugger 0.12.0-00017-gb153daa14 (2023-02-03-14:58) [https://github.com/STMicroelectronics/OpenOCD]
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 3 4 options.c:52 configuration_output_handler(): debug_level: 3
User : 4 4 options.c:52 configuration_output_handler():
Debug: 5 5 options.c:233 add_default_dirs(): bindir=/src/work/openocd/win32/build/bin
Debug: 6 5 options.c:234 add_default_dirs(): pkgdatadir=/src/work/openocd/win32/build/share/openocd
Debug: 7 5 options.c:235 add_default_dirs(): exepath=C:/stuff/rusefi/misc/install/openocd
Debug: 8 5 options.c:236 add_default_dirs(): bin2data=../share/openocd
Debug: 9 6 configuration.c:33 add_script_search_dir(): adding C:/Users/Dell2019/AppData/Roaming/OpenOCD
Debug: 10 6 configuration.c:33 add_script_search_dir(): adding C:/stuff/rusefi/misc/install/openocd/../share/openocd/site
Debug: 11 6 configuration.c:33 add_script_search_dir(): adding C:/stuff/rusefi/misc/install/openocd/../share/openocd/scripts
Debug: 12 7 command.c:155 script_debug(): command - ocd_find openocd/st_nucleo_f7.cfg
Debug: 13 7 configuration.c:88 find_file(): found openocd/st_nucleo_f7.cfg
Debug: 14 9 command.c:155 script_debug(): command - ocd_find openocd/stlink.cfg
Debug: 15 9 configuration.c:88 find_file(): found openocd/stlink.cfg
Debug: 16 9 command.c:155 script_debug(): command - adapter driver hla
Debug: 17 9 command.c:155 script_debug(): command - hla_layout stlink
Debug: 18 10 hla_interface.c:230 hl_interface_handle_layout_command(): hl_interface_handle_layout_command
Debug: 19 10 command.c:155 script_debug(): command - hla_device_desc ST-LINK
Debug: 20 10 hla_interface.c:217 hl_interface_handle_device_desc_command(): hl_interface_handle_device_desc_command
Debug: 21 11 command.c:155 script_debug(): command - hla_vid_pid 0x0483 0x3744 0x0483 0x3748 0x0483 0x374b 0x0483 0x374d 0x0483 0x374e 0x0483 0x374f 0x0483 0x3752 0x0483 0x3753 0x0483 0x3754
Debug: 22 11 command.c:155 script_debug(): command - transport select hla_swd
Debug: 23 12 hla_transport.c:191 hl_swd_transport_select(): hl_swd_transport_select
Debug: 24 12 command.c:155 script_debug(): command - ocd_find openocd/stm32f7x.cfg
Debug: 25 12 configuration.c:88 find_file(): found openocd/stm32f7x.cfg
Debug: 26 13 command.c:155 script_debug(): command - ocd_find openocd/swj-dp.tcl
Debug: 27 13 configuration.c:88 find_file(): found openocd/swj-dp.tcl
Debug: 28 14 command.c:155 script_debug(): command - transport select
Debug: 29 14 command.c:155 script_debug(): command - ocd_find openocd/mem_helper.tcl
Debug: 30 14 configuration.c:88 find_file(): found openocd/mem_helper.tcl
Debug: 31 15 command.c:155 script_debug(): command - add_usage_text mrw address
Debug: 32 15 command.c:155 script_debug(): command - add_help_text mrw Returns value of word in memory.
Debug: 33 15 command.c:155 script_debug(): command - add_usage_text mrh address
Debug: 34 15 command.c:155 script_debug(): command - add_help_text mrh Returns value of halfword in memory.
Debug: 35 16 command.c:155 script_debug(): command - add_usage_text mrb address
Debug: 36 16 command.c:155 script_debug(): command - add_help_text mrb Returns value of byte in memory.
Debug: 37 16 command.c:155 script_debug(): command - add_usage_text mmw address setbits clearbits
Debug: 38 17 command.c:155 script_debug(): command - add_help_text mmw Modify word in memory. new_val = (old_val & ~clearbits) | setbits;
Debug: 39 17 command.c:155 script_debug(): command - transport select
Debug: 40 17 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 41 18 command.c:155 script_debug(): command - transport select
Debug: 42 18 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 43 18 command.c:155 script_debug(): command - transport select
Debug: 44 18 command.c:155 script_debug(): command - expr [ string first "swd" $_TRANSPORT ] != -1
Debug: 45 19 command.c:155 script_debug(): command - swd newdap stm32f7x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x5ba02477
Debug: 46 19 hla_tcl.c:102 jim_hl_newtap_cmd(): Creating New Tap, Chip: stm32f7x, Tap: cpu, Dotted: stm32f7x.cpu, 8 params
Debug: 47 19 hla_tcl.c:112 jim_hl_newtap_cmd(): Processing option: -irlen
Debug: 48 20 hla_tcl.c:112 jim_hl_newtap_cmd(): Processing option: -ircapture
Debug: 49 20 hla_tcl.c:112 jim_hl_newtap_cmd(): Processing option: -irmask
Debug: 50 20 hla_tcl.c:112 jim_hl_newtap_cmd(): Processing option: -expected-id
Debug: 51 20 core.c:1478 jtag_tap_init(): Created Tap: stm32f7x.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 52 21 command.c:155 script_debug(): command - dap create stm32f7x.dap -chain-position stm32f7x.cpu
Debug: 53 21 command.c:155 script_debug(): command - target create stm32f7x.cpu cortex_m -endian little -dap stm32f7x.dap -ap-num 0 -gdb-max-connections 2
Info : 54 22 target.c:6205 target_create(): The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Debug: 55 22 hla_target.c:193 adapter_target_create(): adapter_target_create
Debug: 56 22 hla_target.c:163 adapter_init_arch_info(): adapter_init_arch_info
Debug: 57 23 command.c:289 register_command(): command 'rtt' is already registered
Debug: 58 23 command.c:289 register_command(): command 'tpiu' is already registered
Debug: 59 23 command.c:155 script_debug(): command - tpiu create stm32f7x.tpiu -dap stm32f7x.dap -ap-num 0 -baseaddr 0xE0040000
Debug: 60 24 command.c:155 script_debug(): command - stm32f7x.cpu configure -work-area-phys 0x20000000 -work-area-size 0x10000 -work-area-backup 1
Debug: 61 24 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 62 24 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 63 25 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 64 25 command.c:155 script_debug(): command - flash bank stm32f7x.flash stm32f2x 0 0 0 0 stm32f7x.cpu
Debug: 65 25 tcl.c:1305 handle_flash_bank_command(): 'stm32f2x' driver usage field missing
Debug: 66 26 command.c:155 script_debug(): command - flash bank stm32f7x.itcm-flash.alias virtual 0x00200000 0 0 0 stm32f7x.cpu stm32f7x.flash
Debug: 67 26 tcl.c:1305 handle_flash_bank_command(): 'virtual' driver usage field missing
Debug: 68 26 command.c:155 script_debug(): command - adapter speed 4000
Debug: 69 27 adapter.c:251 adapter_config_khz(): handle adapter khz
Debug: 70 27 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 71 27 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 72 27 command.c:155 script_debug(): command - adapter srst delay 100
Debug: 73 28 command.c:155 script_debug(): command - transport select
Debug: 74 28 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 75 28 command.c:155 script_debug(): command - transport select
Debug: 76 28 command.c:155 script_debug(): command - expr [ string first "hla" $_TRANSPORT ] != -1
Debug: 77 29 command.c:155 script_debug(): command - stm32f7x.cpu configure -event examine-end
global _ENABLE_LOW_POWER
global _STOP_WATCHDOG
if { $_ENABLE_LOW_POWER == 1 } {
# Enable debug during low power modes (uses more power)
# DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP
mmw 0xE0042004 0x00000007 0
} else {
# Disable debug during low power modes
# DBGMCU_CR |= ~(DBG_STANDBY | DBG_STOP | DBG_SLEEP)
mmw 0xE0042004 0 0x00000007
}
if { $_STOP_WATCHDOG == 1 } {
# Stop watchdog counters during halt
# DBGMCU_APB1_FZ |= DBG_IWDG_STOP | DBG_WWDG_STOP
mmw 0xE0042008 0x00001800 0
} else {
# Don't stop watchdog counters during halt
# DBGMCU_APB1_FZ |= ~(DBG_IWDG_STOP | DBG_WWDG_STOP)
mmw 0xE0042008 0 0x00001800
}
Debug: 78 31 command.c:155 script_debug(): command - stm32f7x.tpiu configure -event post-enable
# Set TRACE_IOEN; TRACE_MODE is set to async; when using sync
# change this value accordingly to configure trace pins
# assignment
mmw 0xE0042004 0x00000020 0
Debug: 79 32 command.c:155 script_debug(): command - stm32f7x.cpu configure -event reset-init
global _BOARDNAME
global _CLOCK_FREQ
global _CHIPNAME
mww 0x40023C00 0x00000006 ;# 6 WS for 192 MHz HCLK
mww 0x40023804 0x24003008 ;# 192 MHz: PLLM=8, PLLN=192, PLLP=2
mww 0x40023808 0x00009400 ;# APB1: /4, APB2: /2
mmw 0x40023800 0x01000000 0x00000000 ;# PLL on
sleep 10
mmw 0x40023808 0x00000002 0x00000000 ;# switch to PLL
if { [regexp -nocase {STM32F723E-DISCO} $_BOARDNAME] || [regexp -nocase {STM32F7308-DISCO} $_BOARDNAME] || [regexp -nocase {STM32F7.6G-DISCO} $_BOARDNAME] || [regexp -nocase {STM32F7508-DISCO} $_BOARDNAME] || [regexp -nocase {STM327.6G-EVAL} $_BOARDNAME] || [regexp -nocase {STM327.6G-EVAL2} $_BOARDNAME] || [regexp -nocase {STM32F7.9I.EVAL} $_BOARDNAME] || [regexp -nocase {STM32F769I-DISC.} $_BOARDNAME] } {
qspi_init
}
adapter speed $_CLOCK_FREQ
if {![using_hla]} {
# STM32F74x/F75x have CM7 r0p1 with silicon issue (workaround it by disabling interrupts during single-stepping)
if { [regexp -nocase {STM32F74.....} $_CHIPNAME] || [regexp -nocase {STM32F75.....} $_CHIPNAME] } {
cortex_m maskisr steponly
}
}
Debug: 80 35 command.c:155 script_debug(): command - stm32f7x.cpu configure -event gdb-attach gdb_attach_hook
Debug: 81 35 command.c:155 script_debug(): command - stm32f7x.cpu configure -event gdb-detach gdb_detach_hook
Debug: 82 36 command.c:155 script_debug(): command - reset_config none
User : 83 36 options.c:52 configuration_output_handler(): none separate
User : 84 36 options.c:52 configuration_output_handler():
Debug: 85 36 command.c:155 script_debug(): command - init
Debug: 86 36 command.c:155 script_debug(): command - target init
Debug: 87 36 command.c:155 script_debug(): command - target names
Debug: 88 37 command.c:155 script_debug(): command - stm32f7x.cpu cget -event gdb-flash-erase-start
Debug: 89 37 command.c:155 script_debug(): command - stm32f7x.cpu configure -event gdb-flash-erase-start reset init
Debug: 90 37 command.c:155 script_debug(): command - stm32f7x.cpu cget -event gdb-flash-write-end
Debug: 91 38 command.c:155 script_debug(): command - stm32f7x.cpu configure -event gdb-flash-write-end reset halt
Debug: 92 38 command.c:155 script_debug(): command - stm32f7x.cpu cget -event gdb-attach
Debug: 93 38 target.c:1657 handle_target_init_command(): Initializing targets...
Debug: 94 38 hla_target.c:183 adapter_init_target(): adapter_init_target
Debug: 95 39 semihosting_common.c:109 semihosting_common_init():
Debug: 96 39 hla_interface.c:111 hl_interface_init(): hl_interface_init
Debug: 97 39 hla_layout.c:84 hl_layout_init(): hl_layout_init
Debug: 98 39 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 99 39 adapter.c:219 adapter_khz_to_speed(): have adapter set up
Debug: 100 40 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 101 40 adapter.c:219 adapter_khz_to_speed(): have adapter set up
Info : 102 40 adapter.c:179 adapter_init(): clock speed 4000 kHz
Debug: 103 40 openocd.c:136 handle_init_command(): Debug Adapter init complete
Debug: 104 40 command.c:155 script_debug(): command - transport init
Debug: 105 41 transport.c:219 handle_transport_init(): handle_transport_init
Debug: 106 41 hla_transport.c:143 hl_transport_init(): hl_transport_init
Debug: 107 41 hla_transport.c:160 hl_transport_init(): current transport hla_swd
Debug: 108 41 hla_interface.c:44 hl_interface_open(): hl_interface_open
Debug: 109 42 hla_layout.c:29 hl_layout_open(): hl_layout_open
Debug: 110 42 stlink_usb.c:3732 stlink_open(): stlink_open
Debug: 111 42 stlink_usb.c:3746 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3744 serial:
Debug: 112 42 stlink_usb.c:3746 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3748 serial:
Debug: 113 42 stlink_usb.c:3746 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374b serial:
Debug: 114 43 stlink_usb.c:3746 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374d serial:
Debug: 115 43 stlink_usb.c:3746 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374e serial:
Debug: 116 43 stlink_usb.c:3746 stlink_open(): transport: 4 vid: 0x0483 pid: 0x374f serial:
Debug: 117 43 stlink_usb.c:3746 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3752 serial:
Debug: 118 44 stlink_usb.c:3746 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3753 serial:
Debug: 119 44 stlink_usb.c:3746 stlink_open(): transport: 4 vid: 0x0483 pid: 0x3754 serial:
Info : 120 79 stlink_usb.c:1475 stlink_usb_version(): STLINK V2J34S7 (API v2) VID:PID 0483:3748
Debug: 121 79 stlink_usb.c:1696 stlink_usb_exit_mode(): MODE: 0x01
Info : 122 80 stlink_usb.c:1507 stlink_usb_check_voltage(): Target voltage: 3.257940
Debug: 123 80 stlink_usb.c:1764 stlink_usb_init_mode(): MODE: 0x01
Debug: 124 81 stlink_usb.c:3130 stlink_dump_speed_map(): Supported clock speeds are:
Debug: 125 81 stlink_usb.c:3133 stlink_dump_speed_map(): 4000 kHz
Debug: 126 81 stlink_usb.c:3133 stlink_dump_speed_map(): 1800 kHz
Debug: 127 81 stlink_usb.c:3133 stlink_dump_speed_map(): 1200 kHz
Debug: 128 81 stlink_usb.c:3133 stlink_dump_speed_map(): 950 kHz
Debug: 129 82 stlink_usb.c:3133 stlink_dump_speed_map(): 480 kHz
Debug: 130 82 stlink_usb.c:3133 stlink_dump_speed_map(): 240 kHz
Debug: 131 82 stlink_usb.c:3133 stlink_dump_speed_map(): 125 kHz
Debug: 132 82 stlink_usb.c:3133 stlink_dump_speed_map(): 100 kHz
Debug: 133 82 stlink_usb.c:3133 stlink_dump_speed_map(): 50 kHz
Debug: 134 83 stlink_usb.c:3133 stlink_dump_speed_map(): 25 kHz
Debug: 135 83 stlink_usb.c:3133 stlink_dump_speed_map(): 15 kHz
Debug: 136 83 stlink_usb.c:3133 stlink_dump_speed_map(): 5 kHz
Debug: 137 85 stlink_usb.c:1824 stlink_usb_init_mode(): MODE: 0x02
Debug: 138 85 stlink_usb.c:4127 stlink_usb_open_ap(): AP 0 enabled
Debug: 139 86 stlink_usb.c:3820 stlink_open(): Using TAR autoincrement: 1024
Debug: 140 87 core.c:640 adapter_system_reset(): SRST line released
Debug: 141 252 hla_interface.c:69 hl_interface_init_target(): hl_interface_init_target
Debug: 142 253 stlink_usb.c:2057 stlink_usb_idcode(): IDCODE: 0x5BA02477
Debug: 143 253 command.c:155 script_debug(): command - dap init
Debug: 144 253 arm_dap.c:97 dap_init_all(): Initializing all DAPs ...
Debug: 145 254 openocd.c:153 handle_init_command(): Examining targets...
Debug: 146 254 target.c:1845 target_call_event_callbacks(): target event 19 (examine-start) for core stm32f7x.cpu
Debug: 147 254 hla_target.c:602 adapter_read_memory(): adapter_read_memory 0xe000ed00 4 1
Debug: 148 255 target.c:2630 target_read_u32(): address: 0xe000ed00, value: 0x01010000
Error: 149 255 cortex_m.c:2389 cortex_m_examine(): [stm32f7x.cpu] Cortex-M PARTNO 0x0 is unrecognized
Debug: 150 256 target.c:1845 target_call_event_callbacks(): target event 20 (examine-fail) for core stm32f7x.cpu
Warn : 151 256 target.c:802 target_examine(): target stm32f7x.cpu examination failed
Debug: 152 256 openocd.c:155 handle_init_command(): target examination failed
Debug: 153 256 command.c:155 script_debug(): command - flash init
Debug: 154 257 tcl.c:1375 handle_flash_init_command(): Initializing flash devices...
Debug: 155 257 command.c:155 script_debug(): command - nand init
Debug: 156 257 tcl.c:487 handle_nand_init_command(): Initializing NAND devices...
Debug: 157 257 command.c:155 script_debug(): command - pld init
Debug: 158 258 pld.c:194 handle_pld_init_command(): Initializing PLDs...
Debug: 159 258 command.c:155 script_debug(): command - tpiu init
Info : 160 258 gdb_server.c:3791 gdb_target_start(): starting gdb server for stm32f7x.cpu on 3333
Info : 161 259 server.c:298 add_service(): Listening on port 3333 for gdb connections
Debug: 162 259 command.c:155 script_debug(): command - reset
Debug: 163 259 target.c:1863 target_call_reset_callbacks(): target reset 1 (run)
Debug: 164 260 command.c:155 script_debug(): command - expr [catch {ocd_process_reset_inner $MODE} result] == 0
Debug: 165 260 command.c:155 script_debug(): command - target names
Debug: 166 260 command.c:155 script_debug(): command - stm32f7x.cpu invoke-event reset-start
Debug: 167 261 command.c:155 script_debug(): command - transport select
Debug: 168 261 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 169 261 command.c:155 script_debug(): command - transport select
Debug: 170 261 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 171 262 command.c:155 script_debug(): command - stm32f7x.cpu invoke-event examine-start
Debug: 172 262 command.c:155 script_debug(): command - stm32f7x.cpu arp_examine allow-defer
Debug: 173 262 hla_target.c:602 adapter_read_memory(): adapter_read_memory 0xe000ed00 4 1
Debug: 174 265 target.c:2630 target_read_u32(): address: 0xe000ed00, value: 0x01010000
Error: 175 265 cortex_m.c:2389 cortex_m_examine(): [stm32f7x.cpu] Cortex-M PARTNO 0x0 is unrecognized
Debug: 176 265 command.c:155 script_debug(): command - stm32f7x.cpu invoke-event examine-fail
Debug: 177 265 command.c:155 script_debug(): command - stm32f7x.cpu invoke-event reset-assert-pre
Debug: 178 266 command.c:155 script_debug(): command - transport select
Debug: 179 266 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 180 266 command.c:155 script_debug(): command - stm32f7x.cpu arp_reset assert 0
Debug: 181 266 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 182 267 hla_target.c:336 hl_assert_reset(): hl_assert_reset
Debug: 183 269 command.c:155 script_debug(): command - stm32f7x.cpu invoke-event reset-assert-post
Debug: 184 269 command.c:155 script_debug(): command - stm32f7x.cpu invoke-event reset-deassert-pre
Debug: 185 270 command.c:155 script_debug(): command - transport select
Debug: 186 270 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 187 270 command.c:155 script_debug(): command - stm32f7x.cpu arp_reset deassert 0
Debug: 188 270 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 189 271 hla_target.c:402 hl_deassert_reset(): hl_deassert_reset
Error: 190 271 target.c:641 target_resume(): Target not examined yet
Debug: 191 271 command.c:545 run_command(): Command 'reset' failed with error code -4
User : 192 271 command.c:608 command_run_line():
Debug: 193 271 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 194 272 hla_interface.c:119 hl_interface_quit(): hl_interface_quit
Debug: 195 273 stlink_usb.c:1696 stlink_usb_exit_mode(): MODE: 0x02
I am unable to connect to STM32F767ZG