Open On-Chip Debugger 0.10.0-dev-00007-g58350bc-dirty (2018-01-12-12:21) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html User : 13 4 command.c:544 command_print(): debug_level: 3 Debug: 14 4 configuration.c:42 add_script_search_dir(): adding C:/YD Work/workdoc/NGCharger/NGCC/Proj_GPIO Debug: 15 4 configuration.c:42 add_script_search_dir(): adding C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_2.1.4.201801121207/resources/openocd/st_scripts Debug: 16 5 options.c:181 add_default_dirs(): bindir=/src/staging/openocd/win32/bin Debug: 17 5 options.c:182 add_default_dirs(): pkgdatadir=/src/staging/openocd/win32/share/openocd Debug: 18 5 options.c:183 add_default_dirs(): exepath=C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.openocd.win32_1.17.0.201801121207/tools/openocd/bin Debug: 19 5 options.c:184 add_default_dirs(): bin2data=../share/openocd Debug: 20 5 configuration.c:42 add_script_search_dir(): adding C:\Users\yingran.duan\GitHome/.openocd Debug: 21 6 configuration.c:42 add_script_search_dir(): adding C:\Users\yingran.duan\AppData\Roaming/OpenOCD Debug: 22 6 configuration.c:42 add_script_search_dir(): adding C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.openocd.win32_1.17.0.201801121207/tools/openocd/bin/../share/openocd/site Debug: 23 6 configuration.c:42 add_script_search_dir(): adding C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.openocd.win32_1.17.0.201801121207/tools/openocd/bin/../share/openocd/scripts Debug: 24 8 configuration.c:82 find_file(): found Proj_GPIO Debug.cfg Debug: 25 10 configuration.c:82 find_file(): found C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_2.1.4.201801121207/resources/openocd/st_scripts/interface/stlink.cfg Debug: 26 10 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_interface hla Debug: 27 10 command.c:143 script_debug(): command - interface ocd_interface hla Debug: 29 11 command.c:364 register_command_handler(): registering 'ocd_hla_device_desc'... Debug: 30 11 command.c:364 register_command_handler(): registering 'ocd_hla_serial'... Debug: 31 11 command.c:364 register_command_handler(): registering 'ocd_hla_layout'... Debug: 32 11 command.c:364 register_command_handler(): registering 'ocd_hla_vid_pid'... Debug: 33 11 command.c:364 register_command_handler(): registering 'ocd_hla_command'... Debug: 34 12 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_hla_layout stlink Debug: 35 12 command.c:143 script_debug(): command - hla_layout ocd_hla_layout stlink Debug: 37 12 hla_interface.c:239 hl_interface_handle_layout_command(): hl_interface_handle_layout_command Debug: 38 12 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_hla_device_desc ST-LINK/V2-1 Debug: 39 13 command.c:143 script_debug(): command - hla_device_desc ocd_hla_device_desc ST-LINK/V2-1 Debug: 41 13 hla_interface.c:213 hl_interface_handle_device_desc_command(): hl_interface_handle_device_desc_command Debug: 42 13 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_hla_vid_pid 0x0483 0x374b Debug: 43 13 command.c:143 script_debug(): command - hla_vid_pid ocd_hla_vid_pid 0x0483 0x374b Debug: 45 14 hla_interface.c:267 hl_interface_handle_vid_pid_command(): hl_interface_handle_vid_pid_command Debug: 46 14 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select hla_swd Debug: 47 14 command.c:143 script_debug(): command - ocd_transport ocd_transport select hla_swd Debug: 48 14 hla_transport.c:191 hl_transport_select(): hl_transport_select Debug: 49 15 command.c:364 register_command_handler(): registering 'ocd_hla'... Debug: 50 15 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 51 15 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 52 15 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 53 16 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 54 16 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 55 16 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 56 16 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 57 17 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 58 17 command.c:364 register_command_handler(): registering 'ocd_jtag'... Debug: 59 17 command.c:364 register_command_handler(): registering 'ocd_jtag_ntrst_delay'... Debug: 60 17 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_reset_config srst_only srst_nogate connect_assert_srst Debug: 61 18 command.c:143 script_debug(): command - reset_config ocd_reset_config srst_only srst_nogate connect_assert_srst User : 63 18 command.c:544 command_print(): srst_only separate srst_nogate srst_open_drain connect_assert_srst Debug: 64 18 configuration.c:82 find_file(): found C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_2.1.4.201801121207/resources/openocd/st_scripts/target/stm32l4x.cfg Debug: 65 19 configuration.c:82 find_file(): found C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_2.1.4.201801121207/resources/openocd/st_scripts/target/swj-dp.tcl Debug: 66 20 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 67 20 command.c:143 script_debug(): command - ocd_transport ocd_transport select Debug: 68 20 configuration.c:82 find_file(): found C:/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_2.1.4.201801121207/resources/openocd/st_scripts/mem_helper.tcl Debug: 69 21 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_add_usage_text mrw address Debug: 70 21 command.c:143 script_debug(): command - add_usage_text ocd_add_usage_text mrw address Debug: 72 21 command.c:1098 help_add_command(): added 'mrw' help text Debug: 73 21 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_add_help_text mrw Returns value of word in memory. Debug: 74 22 command.c:143 script_debug(): command - add_help_text ocd_add_help_text mrw Returns value of word in memory. Debug: 76 22 command.c:1111 help_add_command(): added 'mrw' help text Debug: 77 22 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_add_usage_text mmw address setbits clearbits Debug: 78 22 command.c:143 script_debug(): command - add_usage_text ocd_add_usage_text mmw address setbits clearbits Debug: 80 23 command.c:1098 help_add_command(): added 'mmw' help text Debug: 81 23 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_add_help_text mmw Modify word in memory. new_val = (old_val & ~clearbits) | setbits; Debug: 82 23 command.c:143 script_debug(): command - add_help_text ocd_add_help_text mmw Modify word in memory. new_val = (old_val & ~clearbits) | setbits; Debug: 84 23 command.c:1111 help_add_command(): added 'mmw' help text Debug: 85 24 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 86 24 command.c:143 script_debug(): command - ocd_transport ocd_transport select Debug: 87 24 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 88 24 command.c:143 script_debug(): command - ocd_transport ocd_transport select Debug: 89 24 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 90 25 command.c:143 script_debug(): command - ocd_transport ocd_transport select Debug: 91 25 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 92 25 command.c:143 script_debug(): command - ocd_transport ocd_transport select Debug: 93 25 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_hla newtap STM32L476VGTx cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x2ba01477 Debug: 94 26 command.c:143 script_debug(): command - ocd_hla ocd_hla newtap STM32L476VGTx cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x2ba01477 Debug: 95 26 hla_tcl.c:116 jim_hl_newtap_cmd(): Creating New Tap, Chip: STM32L476VGTx, Tap: cpu, Dotted: STM32L476VGTx.cpu, 8 params Debug: 96 26 hla_tcl.c:126 jim_hl_newtap_cmd(): Processing option: -irlen Debug: 97 26 hla_tcl.c:126 jim_hl_newtap_cmd(): Processing option: -ircapture Debug: 98 26 hla_tcl.c:126 jim_hl_newtap_cmd(): Processing option: -irmask Debug: 99 26 hla_tcl.c:126 jim_hl_newtap_cmd(): Processing option: -expected-id Debug: 100 26 core.c:1304 jtag_tap_init(): Created Tap: STM32L476VGTx.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0 Debug: 101 27 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 102 27 command.c:143 script_debug(): command - ocd_transport ocd_transport select Debug: 103 27 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target create STM32L476VGTx.cpu cortex_m -endian little -chain-position STM32L476VGTx.cpu Debug: 104 27 command.c:143 script_debug(): command - ocd_target ocd_target create STM32L476VGTx.cpu cortex_m -endian little -chain-position STM32L476VGTx.cpu Info : 105 28 target.c:5471 target_create(): The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD Debug: 106 28 target.c:1920 target_free_all_working_areas_restore(): freeing all working areas Debug: 107 28 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 108 28 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 109 28 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 110 29 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 111 29 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 112 29 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 113 29 command.c:364 register_command_handler(): registering 'ocd_arm'... Debug: 114 29 command.c:364 register_command_handler(): registering 'ocd_tpiu'... Debug: 115 29 command.c:364 register_command_handler(): registering 'ocd_itm'... Debug: 116 29 command.c:364 register_command_handler(): registering 'ocd_itm'... Debug: 117 30 hla_target.c:351 adapter_target_create(): adapter_target_create Debug: 118 30 hla_target.c:322 adapter_init_arch_info(): adapter_init_arch_info Debug: 119 30 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 120 30 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 121 30 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 122 31 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 123 31 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 124 31 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 125 31 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 126 32 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 127 32 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 128 32 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 129 32 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 130 33 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 131 33 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 132 33 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 133 33 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 134 33 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 135 34 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 136 34 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 137 34 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 138 34 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 139 34 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 140 35 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 141 35 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 142 35 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 143 35 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 144 35 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 145 36 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 146 36 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 147 36 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 148 36 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 149 36 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 150 37 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 151 37 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 152 37 command.c:364 register_command_handler(): registering 'ocd_STM32L476VGTx.cpu'... Debug: 153 37 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_STM32L476VGTx.cpu configure -work-area-phys 0x20000000 -work-area-size 0x8000 -work-area-backup 0 Debug: 154 38 command.c:143 script_debug(): command - ocd_STM32L476VGTx.cpu ocd_STM32L476VGTx.cpu configure -work-area-phys 0x20000000 -work-area-size 0x8000 -work-area-backup 0 Debug: 155 38 target.c:1920 target_free_all_working_areas_restore(): freeing all working areas Debug: 156 38 target.c:1920 target_free_all_working_areas_restore(): freeing all working areas Debug: 157 38 target.c:1920 target_free_all_working_areas_restore(): freeing all working areas Debug: 158 39 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash bank STM32L476VGTx.flash stm32l4x 0x08000000 0 0 0 STM32L476VGTx.cpu Debug: 159 39 command.c:143 script_debug(): command - ocd_flash ocd_flash bank STM32L476VGTx.flash stm32l4x 0x08000000 0 0 0 STM32L476VGTx.cpu Debug: 161 39 command.c:364 register_command_handler(): registering 'ocd_stm32l4x'... Debug: 162 40 command.c:364 register_command_handler(): registering 'ocd_stm32l4x'... Debug: 163 40 command.c:364 register_command_handler(): registering 'ocd_stm32l4x'... Debug: 164 40 command.c:364 register_command_handler(): registering 'ocd_stm32l4x'... Debug: 165 40 command.c:364 register_command_handler(): registering 'ocd_stm32l4x'... Debug: 166 40 command.c:364 register_command_handler(): registering 'ocd_stm32l4x'... Debug: 167 41 command.c:364 register_command_handler(): registering 'ocd_stm32l4x'... Debug: 168 41 tcl.c:1131 handle_flash_bank_command(): 'stm32l4x' driver usage field missing Debug: 169 41 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash erase_padded_zone 0 enable Debug: 170 41 command.c:143 script_debug(): command - ocd_flash ocd_flash erase_padded_zone 0 enable User : 172 41 command.c:544 command_print(): padded zone erase set to 1 Debug: 173 42 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_adapter_nsrst_delay 100 Debug: 174 42 command.c:143 script_debug(): command - adapter_nsrst_delay ocd_adapter_nsrst_delay 100 User : 176 42 command.c:544 command_print(): adapter_nsrst_delay: 100 Debug: 177 42 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 178 42 command.c:143 script_debug(): command - ocd_transport ocd_transport select Debug: 179 43 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 480 Debug: 180 43 command.c:143 script_debug(): command - adapter_khz ocd_adapter_khz 480 Debug: 182 43 core.c:1631 jtag_config_khz(): handle jtag khz Debug: 183 43 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 184 43 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value User : 185 44 command.c:544 command_print(): adapter speed: 480 kHz Debug: 186 44 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select Debug: 187 44 command.c:143 script_debug(): command - ocd_transport ocd_transport select Debug: 188 44 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_STM32L476VGTx.cpu configure -event examine-end global ENABLE_LOW_POWER global STOP_WATCHDOG global _CHIPNAME if { [expr ($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 } if { [expr ($ENABLE_LOW_POWER == 0)] } { # Disable debug during low power modes # DBGMCU_CR |= ~(DBG_STANDBY | DBG_STOP | DBG_SLEEP) mmw 0xE0042004 0 0x00000007 } if { [expr ($STOP_WATCHDOG == 1)] } { # Stop watchdog counters during halt # DBGMCU_APB1_FZ |= DBG_IWDG_STOP | DBG_WWDG_STOP mmw 0xE0042008 0x00001800 0 } if { [expr ($STOP_WATCHDOG == 0)] } { # Don't stop watchdog counters during halt # DBGMCU_APB1_FZ |= ~(DBG_IWDG_STOP | DBG_WWDG_STOP) mmw 0xE0042008 0 0x00001800 } Debug: 189 46 command.c:143 script_debug(): command - ocd_STM32L476VGTx.cpu ocd_STM32L476VGTx.cpu configure -event examine-end global ENABLE_LOW_POWER global STOP_WATCHDOG global _CHIPNAME if { [expr ($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 } if { [expr ($ENABLE_LOW_POWER == 0)] } { # Disable debug during low power modes # DBGMCU_CR |= ~(DBG_STANDBY | DBG_STOP | DBG_SLEEP) mmw 0xE0042004 0 0x00000007 } if { [expr ($STOP_WATCHDOG == 1)] } { # Stop watchdog counters during halt # DBGMCU_APB1_FZ |= DBG_IWDG_STOP | DBG_WWDG_STOP mmw 0xE0042008 0x00001800 0 } if { [expr ($STOP_WATCHDOG == 0)] } { # Don't stop watchdog counters during halt # DBGMCU_APB1_FZ |= ~(DBG_IWDG_STOP | DBG_WWDG_STOP) mmw 0xE0042008 0 0x00001800 } Debug: 190 48 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_STM32L476VGTx.cpu configure -event trace-config # 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: 191 49 command.c:143 script_debug(): command - ocd_STM32L476VGTx.cpu ocd_STM32L476VGTx.cpu configure -event trace-config # 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: 192 49 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_STM32L476VGTx.cpu configure -event reset-start if {[using_jtag]} { adapter_khz 562 } else { adapter_khz 480 } Debug: 193 49 command.c:143 script_debug(): command - ocd_STM32L476VGTx.cpu ocd_STM32L476VGTx.cpu configure -event reset-start if {[using_jtag]} { adapter_khz 562 } else { adapter_khz 480 } Debug: 194 50 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_STM32L476VGTx.cpu configure -event reset-init global _CLOCK_FREQ # CPU comes out of reset with MSI_ON | MSI_RDY | MSI Range 4 MHz. # Configure system to use MSI 24 MHz clock, compliant with VOS default Range1. # 2 WS compliant with VOS=Range1 and 24 MHz. mww 0x40022000 0x00000102 ;# FLASH_ACR = PRFTBE | 2(Latency) mww 0x4002100C 0x00000099 ;# RCC_CR = MSI_ON | MSIRGSEL | MSI Range 24 MHz adapter_khz $_CLOCK_FREQ Debug: 195 51 command.c:143 script_debug(): command - ocd_STM32L476VGTx.cpu ocd_STM32L476VGTx.cpu configure -event reset-init global _CLOCK_FREQ # CPU comes out of reset with MSI_ON | MSI_RDY | MSI Range 4 MHz. # Configure system to use MSI 24 MHz clock, compliant with VOS default Range1. # 2 WS compliant with VOS=Range1 and 24 MHz. mww 0x40022000 0x00000102 ;# FLASH_ACR = PRFTBE | 2(Latency) mww 0x4002100C 0x00000099 ;# RCC_CR = MSI_ON | MSIRGSEL | MSI Range 24 MHz adapter_khz $_CLOCK_FREQ Debug: 196 52 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_STM32L476VGTx.cpu configure -event gdb-attach global CONNECT_UNDER_RESET # Needed to be able to use the connect_assert_srst in reset_config # otherwise, wrong value when reading device flash size register if { [expr ($CONNECT_UNDER_RESET == 1)] } { reset init } Debug: 197 53 command.c:143 script_debug(): command - ocd_STM32L476VGTx.cpu ocd_STM32L476VGTx.cpu configure -event gdb-attach global CONNECT_UNDER_RESET # Needed to be able to use the connect_assert_srst in reset_config # otherwise, wrong value when reading device flash size register if { [expr ($CONNECT_UNDER_RESET == 1)] } { reset init } Debug: 198 54 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_STM32L476VGTx.cpu configure -event gdb-detach # to close connection if debug mode entered shutdown Debug: 199 54 command.c:143 script_debug(): command - ocd_STM32L476VGTx.cpu ocd_STM32L476VGTx.cpu configure -event gdb-detach # to close connection if debug mode entered shutdown Debug: 200 55 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_gdb_port 3333 Debug: 201 55 command.c:143 script_debug(): command - gdb_port ocd_gdb_port 3333 Debug: 203 55 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_tcl_port disabled Debug: 204 55 command.c:143 script_debug(): command - tcl_port ocd_tcl_port disabled Debug: 206 56 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_telnet_port disabled Debug: 207 56 command.c:143 script_debug(): command - telnet_port ocd_telnet_port disabled Info : 209 56 tcl_server.c:282 tcl_init(): tcl server disabled Info : 210 56 telnet_server.c:623 telnet_init(): telnet server disabled Debug: 211 56 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_init Debug: 212 57 command.c:143 script_debug(): command - init ocd_init Debug: 214 57 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target init Debug: 215 57 command.c:143 script_debug(): command - ocd_target ocd_target init Debug: 217 57 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target names Debug: 218 58 command.c:143 script_debug(): command - ocd_target ocd_target names Debug: 219 58 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_STM32L476VGTx.cpu cget -event gdb-flash-erase-start Debug: 220 58 command.c:143 script_debug(): command - ocd_STM32L476VGTx.cpu ocd_STM32L476VGTx.cpu cget -event gdb-flash-erase-start Debug: 221 59 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_STM32L476VGTx.cpu configure -event gdb-flash-erase-start reset init Debug: 222 59 command.c:143 script_debug(): command - ocd_STM32L476VGTx.cpu ocd_STM32L476VGTx.cpu configure -event gdb-flash-erase-start reset init Debug: 223 59 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_STM32L476VGTx.cpu cget -event gdb-flash-write-end Debug: 224 60 command.c:143 script_debug(): command - ocd_STM32L476VGTx.cpu ocd_STM32L476VGTx.cpu cget -event gdb-flash-write-end Debug: 225 60 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_STM32L476VGTx.cpu configure -event gdb-flash-write-end reset halt Debug: 226 60 command.c:143 script_debug(): command - ocd_STM32L476VGTx.cpu ocd_STM32L476VGTx.cpu configure -event gdb-flash-write-end reset halt Debug: 227 61 target.c:1329 handle_target_init_command(): Initializing targets... Debug: 228 61 hla_target.c:341 adapter_init_target(): adapter_init_target Debug: 229 61 command.c:364 register_command_handler(): registering 'ocd_target_request'... Debug: 230 61 command.c:364 register_command_handler(): registering 'ocd_trace'... Debug: 231 61 command.c:364 register_command_handler(): registering 'ocd_trace'... Debug: 232 62 command.c:364 register_command_handler(): registering 'ocd_fast_load_image'... Debug: 233 62 command.c:364 register_command_handler(): registering 'ocd_fast_load'... Debug: 234 62 command.c:364 register_command_handler(): registering 'ocd_profile'... Debug: 235 62 command.c:364 register_command_handler(): registering 'ocd_virt2phys'... Debug: 236 63 command.c:364 register_command_handler(): registering 'ocd_reg'... Debug: 237 63 command.c:364 register_command_handler(): registering 'ocd_poll'... Debug: 238 63 command.c:364 register_command_handler(): registering 'ocd_wait_halt'... Debug: 239 63 command.c:364 register_command_handler(): registering 'ocd_halt'... Debug: 240 64 command.c:364 register_command_handler(): registering 'ocd_resume'... Debug: 241 64 command.c:364 register_command_handler(): registering 'ocd_reset'... Debug: 242 64 command.c:364 register_command_handler(): registering 'ocd_soft_reset_halt'... Debug: 243 64 command.c:364 register_command_handler(): registering 'ocd_step'... Debug: 244 64 command.c:364 register_command_handler(): registering 'ocd_mdd'... Debug: 245 65 command.c:364 register_command_handler(): registering 'ocd_mdw'... Debug: 246 65 command.c:364 register_command_handler(): registering 'ocd_mdh'... Debug: 247 65 command.c:364 register_command_handler(): registering 'ocd_mdb'... Debug: 248 65 command.c:364 register_command_handler(): registering 'ocd_mwd'... Debug: 249 65 command.c:364 register_command_handler(): registering 'ocd_mww'... Debug: 250 66 command.c:364 register_command_handler(): registering 'ocd_mwh'... Debug: 251 66 command.c:364 register_command_handler(): registering 'ocd_mwb'... Debug: 252 66 command.c:364 register_command_handler(): registering 'ocd_bp'... Debug: 253 66 command.c:364 register_command_handler(): registering 'ocd_rbp'... Debug: 254 67 command.c:364 register_command_handler(): registering 'ocd_wp'... Debug: 255 67 command.c:364 register_command_handler(): registering 'ocd_rwp'... Debug: 256 67 command.c:364 register_command_handler(): registering 'ocd_load_image'... Debug: 257 67 command.c:364 register_command_handler(): registering 'ocd_dump_image'... Debug: 258 67 command.c:364 register_command_handler(): registering 'ocd_verify_image_checksum'... Debug: 259 68 command.c:364 register_command_handler(): registering 'ocd_verify_image'... Debug: 260 68 command.c:364 register_command_handler(): registering 'ocd_test_image'... Debug: 261 68 command.c:364 register_command_handler(): registering 'ocd_reset_nag'... Debug: 262 68 command.c:364 register_command_handler(): registering 'ocd_ps'... Debug: 263 69 command.c:364 register_command_handler(): registering 'ocd_test_mem_access'... Debug: 264 69 hla_interface.c:109 hl_interface_init(): hl_interface_init Debug: 265 69 hla_layout.c:89 hl_layout_init(): hl_layout_init Debug: 266 69 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 267 69 core.c:1601 adapter_khz_to_speed(): have interface set up Debug: 268 69 core.c:1598 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 269 70 core.c:1601 adapter_khz_to_speed(): have interface set up Info : 270 70 core.c:1386 adapter_init(): clock speed 480 kHz Debug: 271 70 openocd.c:140 handle_init_command(): Debug Adapter init complete Debug: 272 70 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport init Debug: 273 70 command.c:143 script_debug(): command - ocd_transport ocd_transport init Debug: 275 71 transport.c:239 handle_transport_init(): handle_transport_init Debug: 276 71 hla_transport.c:152 hl_transport_init(): hl_transport_init Debug: 277 71 hla_transport.c:169 hl_transport_init(): current transport hla_swd Debug: 278 71 hla_interface.c:42 hl_interface_open(): hl_interface_open Debug: 279 71 hla_layout.c:40 hl_layout_open(): hl_layout_open Debug: 280 71 stlink_usb.c:2070 stlink_usb_open(): stlink_usb_open Debug: 281 71 stlink_usb.c:2086 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x374b serial: Info : 282 92 stlink_usb.c:709 stlink_usb_version(): STLINK v2 JTAG v29 API v2 SWIM v7 VID 0x0483 PID 0x3748 Info : 283 92 stlink_usb.c:2184 stlink_usb_open(): vid/pid are not identical: 0x0483/0x374B 0x0483/0x3748 Info : 284 92 stlink_usb.c:2211 stlink_usb_open(): using stlink api v2 Debug: 285 93 stlink_usb.c:934 stlink_exit_mode(): MODE: 0x00 Debug: 286 93 stlink_usb.c:955 stlink_exit_mode(): E-MODE: 0x01 Debug: 287 146 stlink_usb.c:987 stlink_usb_init_mode(): MODE: 0x01 Info : 288 149 stlink_usb.c:742 stlink_usb_check_voltage(): Target voltage: 3.998441 Debug: 289 150 stlink_usb.c:506 stlink_usb_error_check(): JTAG_GET_IDCODE_ERROR Error: 290 151 stlink_usb.c:2220 stlink_usb_open(): init mode failed (unable to connect to the target) Debug: 291 151 hla_layout.c:47 hl_layout_open(): failed Debug: 292 151 command.c:626 run_command(): Command failed with error code -4 User : 293 152 command.c:687 command_run_line(): in procedure 'init' in procedure 'ocd_bouncer' Debug: 294 152 command.c:626 run_command(): Command failed with error code -4 User : 295 152 command.c:687 command_run_line(): Debug: 296 152 hla_interface.c:117 hl_interface_quit(): hl_interface_quit