% openocd -s /opt/local/share/openocd/scripts -f board/stm32f469i-disco.cfg -d4 Open On-Chip Debugger 0.11.0 Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html User : 13 13 options.c:63 configuration_output_handler(): debug_level: 4 User : 14 13 options.c:63 configuration_output_handler(): Debug: 15 13 options.c:244 add_default_dirs(): bindir=/opt/local/bin Debug: 16 13 options.c:245 add_default_dirs(): pkgdatadir=/opt/local/share/openocd Debug: 17 13 options.c:246 add_default_dirs(): exepath=/opt/local/bin Debug: 18 13 options.c:247 add_default_dirs(): bin2data=../share/openocd Debug: 19 13 configuration.c:42 add_script_search_dir(): adding /Users/general/Library/Preferences/org.openocd Debug: 20 13 configuration.c:42 add_script_search_dir(): adding /Users/general/.config/openocd Debug: 21 13 configuration.c:42 add_script_search_dir(): adding /Users/general/.openocd Debug: 22 13 configuration.c:42 add_script_search_dir(): adding /opt/local/bin/../share/openocd/site Debug: 23 13 configuration.c:42 add_script_search_dir(): adding /opt/local/bin/../share/openocd/scripts Debug: 24 15 configuration.c:97 find_file(): found /opt/local/share/openocd/scripts/board/stm32f469i-disco.cfg Debug: 25 17 configuration.c:97 find_file(): found /opt/local/share/openocd/scripts/interface/stlink.cfg Debug: 26 17 command.c:146 script_debug(): command - adapter driver hla Debug: 28 17 command.c:146 script_debug(): command - hla_layout stlink Debug: 30 17 hla_interface.c:242 hl_interface_handle_layout_command(): hl_interface_handle_layout_command Debug: 31 17 command.c:146 script_debug(): command - hla_device_desc ST-LINK Debug: 33 17 hla_interface.c:216 hl_interface_handle_device_desc_command(): hl_interface_handle_device_desc_command Debug: 34 17 command.c:146 script_debug(): command - hla_vid_pid 0x0483 0x3744 0x0483 0x3748 0x0483 0x374b 0x0483 0x374d 0x0483 0x374e 0x0483 0x374f 0x0483 0x3752 0x0483 0x3753 Debug: 36 17 command.c:146 script_debug(): command - transport select hla_swd Debug: 37 17 hla_transport.c:205 hl_swd_transport_select(): hl_swd_transport_select Debug: 38 19 configuration.c:97 find_file(): found /opt/local/share/openocd/scripts/target/stm32f4x.cfg Debug: 39 20 configuration.c:97 find_file(): found /opt/local/share/openocd/scripts/target/swj-dp.tcl Debug: 40 20 command.c:146 script_debug(): command - transport select Debug: 41 21 configuration.c:97 find_file(): found /opt/local/share/openocd/scripts/mem_helper.tcl Debug: 42 21 command.c:146 script_debug(): command - add_usage_text mrw address Debug: 44 21 command.c:1115 help_add_command(): added 'mrw' help text Debug: 45 21 command.c:146 script_debug(): command - add_help_text mrw Returns value of word in memory. Debug: 47 21 command.c:1128 help_add_command(): added 'mrw' help text Debug: 48 21 command.c:146 script_debug(): command - add_usage_text mrh address Debug: 50 21 command.c:1115 help_add_command(): added 'mrh' help text Debug: 51 21 command.c:146 script_debug(): command - add_help_text mrh Returns value of halfword in memory. Debug: 53 21 command.c:1128 help_add_command(): added 'mrh' help text Debug: 54 21 command.c:146 script_debug(): command - add_usage_text mrb address Debug: 56 21 command.c:1115 help_add_command(): added 'mrb' help text Debug: 57 21 command.c:146 script_debug(): command - add_help_text mrb Returns value of byte in memory. Debug: 59 21 command.c:1128 help_add_command(): added 'mrb' help text Debug: 60 21 command.c:146 script_debug(): command - add_usage_text mmw address setbits clearbits Debug: 62 21 command.c:1115 help_add_command(): added 'mmw' help text Debug: 63 21 command.c:146 script_debug(): command - add_help_text mmw Modify word in memory. new_val = (old_val & ~clearbits) | setbits; Debug: 65 21 command.c:1128 help_add_command(): added 'mmw' help text Debug: 66 21 command.c:146 script_debug(): command - transport select Debug: 67 21 command.c:146 script_debug(): command - transport select Debug: 68 21 command.c:146 script_debug(): command - transport select Debug: 69 21 command.c:146 script_debug(): command - swd newdap stm32f4x cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x2ba01477 Debug: 70 21 hla_tcl.c:111 jim_hl_newtap_cmd(): Creating New Tap, Chip: stm32f4x, Tap: cpu, Dotted: stm32f4x.cpu, 8 params Debug: 71 21 hla_tcl.c:121 jim_hl_newtap_cmd(): Processing option: -irlen Debug: 72 21 hla_tcl.c:121 jim_hl_newtap_cmd(): Processing option: -ircapture Debug: 73 21 hla_tcl.c:121 jim_hl_newtap_cmd(): Processing option: -irmask Debug: 74 21 hla_tcl.c:121 jim_hl_newtap_cmd(): Processing option: -expected-id Debug: 75 21 core.c:1488 jtag_tap_init(): Created Tap: stm32f4x.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0 Debug: 76 21 command.c:146 script_debug(): command - dap create stm32f4x.dap -chain-position stm32f4x.cpu Debug: 77 21 command.c:146 script_debug(): command - transport select Debug: 78 21 command.c:146 script_debug(): command - target create stm32f4x.cpu cortex_m -endian little -dap stm32f4x.dap Info : 79 22 target.c:5668 target_create(): The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD Debug: 80 25 hla_target.c:203 adapter_target_create(): adapter_target_create Debug: 81 25 hla_target.c:173 adapter_init_arch_info(): adapter_init_arch_info Debug: 82 25 command.c:376 register_command(): command 'rtt' is already registered in '<global>' context Debug: 83 25 command.c:146 script_debug(): command - stm32f4x.cpu configure -work-area-phys 0x20000000 -work-area-size 0x20000 -work-area-backup 0 Debug: 84 25 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas Debug: 85 25 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas Debug: 86 25 target.c:2172 target_free_all_working_areas_restore(): freeing all working areas Debug: 87 25 command.c:146 script_debug(): command - flash bank stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu Debug: 89 27 tcl.c:1319 handle_flash_bank_command(): 'stm32f2x' driver usage field missing Debug: 90 27 command.c:146 script_debug(): command - flash bank stm32f4x.otp stm32f2x 0x1fff7800 0 0 0 stm32f4x.cpu Debug: 92 27 command.c:376 register_command(): command 'stm32f2x' is already registered in '<global>' context Debug: 93 27 command.c:376 register_command(): command 'lock' is already registered in 'stm32f2x' context Debug: 94 27 command.c:376 register_command(): command 'unlock' is already registered in 'stm32f2x' context Debug: 95 27 command.c:376 register_command(): command 'mass_erase' is already registered in 'stm32f2x' context Debug: 96 27 command.c:376 register_command(): command 'options_read' is already registered in 'stm32f2x' context Debug: 97 27 command.c:376 register_command(): command 'options_write' is already registered in 'stm32f2x' context Debug: 98 27 command.c:376 register_command(): command 'optcr2_write' is already registered in 'stm32f2x' context Debug: 99 27 command.c:376 register_command(): command 'otp' is already registered in 'stm32f2x' context Debug: 100 27 tcl.c:1319 handle_flash_bank_command(): 'stm32f2x' driver usage field missing Debug: 101 27 command.c:146 script_debug(): command - flash list Debug: 102 27 command.c:146 script_debug(): command - flash bank stm32f4x.qspi stmqspi 0x90000000 0 0 0 stm32f4x.cpu 0xA0001000 Debug: 104 28 stmqspi.c:216 stmqspi_flash_bank_command(): stmqspi_flash_bank_command Debug: 105 28 tcl.c:1319 handle_flash_bank_command(): 'stmqspi' driver usage field missing Debug: 106 28 command.c:146 script_debug(): command - adapter speed 2000 Debug: 108 28 core.c:1822 jtag_config_khz(): handle jtag khz Debug: 109 28 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 110 28 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 111 28 command.c:146 script_debug(): command - adapter srst delay 100 Debug: 113 28 command.c:146 script_debug(): command - transport select Debug: 114 28 command.c:146 script_debug(): command - reset_config srst_nogate Debug: 116 28 command.c:146 script_debug(): command - transport select Debug: 117 28 command.c:146 script_debug(): command - stm32f4x.cpu configure -event examine-end # Enable debug during low power modes (uses more power) # DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP mmw 0xE0042004 0x00000007 0 # Stop watchdog counters during halt # DBGMCU_APB1_FZ |= DBG_IWDG_STOP | DBG_WWDG_STOP mmw 0xE0042008 0x00001800 0 Debug: 118 28 command.c:146 script_debug(): command - stm32f4x.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: 119 28 command.c:146 script_debug(): command - stm32f4x.cpu configure -event reset-init # Configure PLL to boost clock to HSI x 4 (64 MHz) mww 0x40023804 0x08012008 ;# RCC_PLLCFGR 16 Mhz /8 (M) * 128 (N) /4(P) mww 0x40023C00 0x00000102 ;# FLASH_ACR = PRFTBE | 2(Latency) mmw 0x40023800 0x01000000 0 ;# RCC_CR |= PLLON sleep 10 ;# Wait for PLL to lock mmw 0x40023808 0x00001000 0 ;# RCC_CFGR |= RCC_CFGR_PPRE1_DIV2 mmw 0x40023808 0x00000002 0 ;# RCC_CFGR |= RCC_CFGR_SW_PLL # Boost JTAG frequency adapter speed 8000 Debug: 120 28 command.c:146 script_debug(): command - stm32f4x.cpu configure -event reset-start # Reduce speed since CPU speed will slow down to 16MHz with the reset adapter speed 2000 Debug: 121 28 command.c:146 script_debug(): command - stm32f4x.cpu configure -event reset-init mww 0x40023C00 0x00000005 ;# 5 WS for 160 MHz HCLK sleep 1 mww 0x40023804 0x24002808 ;# 160 MHz: HSI, PLLM=8, PLLN=160, PLLP=2 mww 0x40023808 0x00009400 ;# APB1: /4, APB2: /2 mmw 0x40023800 0x01000000 0x00000000 ;# PLL on sleep 1 mmw 0x40023808 0x00000002 0x00000000 ;# switch to PLL sleep 1 adapter speed 4000 qspi_init Info : 122 28 server.c:312 add_service(): Listening on port 6666 for tcl connections Info : 123 28 server.c:312 add_service(): Listening on port 4444 for telnet connections Debug: 124 28 command.c:146 script_debug(): command - init Debug: 126 28 command.c:146 script_debug(): command - target init Debug: 128 28 command.c:146 script_debug(): command - target names Debug: 129 28 command.c:146 script_debug(): command - stm32f4x.cpu cget -event gdb-flash-erase-start Debug: 130 28 command.c:146 script_debug(): command - stm32f4x.cpu configure -event gdb-flash-erase-start reset init Debug: 131 28 command.c:146 script_debug(): command - stm32f4x.cpu cget -event gdb-flash-write-end Debug: 132 29 command.c:146 script_debug(): command - stm32f4x.cpu configure -event gdb-flash-write-end reset halt Debug: 133 29 command.c:146 script_debug(): command - stm32f4x.cpu cget -event gdb-attach Debug: 134 29 command.c:146 script_debug(): command - stm32f4x.cpu configure -event gdb-attach halt 1000 Debug: 135 29 target.c:1639 handle_target_init_command(): Initializing targets... Debug: 136 29 hla_target.c:193 adapter_init_target(): adapter_init_target Debug: 137 29 semihosting_common.c:99 semihosting_common_init(): Debug: 138 29 hla_interface.c:109 hl_interface_init(): hl_interface_init Debug: 139 29 hla_layout.c:95 hl_layout_init(): hl_layout_init Debug: 140 29 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 141 29 core.c:1789 adapter_khz_to_speed(): have interface set up Debug: 142 29 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 143 29 core.c:1789 adapter_khz_to_speed(): have interface set up Info : 144 29 core.c:1565 adapter_init(): clock speed 2000 kHz Debug: 145 29 openocd.c:143 handle_init_command(): Debug Adapter init complete Debug: 146 29 command.c:146 script_debug(): command - transport init Debug: 148 29 transport.c:229 handle_transport_init(): handle_transport_init Debug: 149 29 hla_transport.c:156 hl_transport_init(): hl_transport_init Debug: 150 29 hla_transport.c:173 hl_transport_init(): current transport hla_swd Debug: 151 29 hla_interface.c:42 hl_interface_open(): hl_interface_open Debug: 152 29 hla_layout.c:40 hl_layout_open(): hl_layout_open Debug: 153 29 stlink_usb.c:2819 stlink_usb_open(): stlink_usb_open Debug: 154 29 stlink_usb.c:2833 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x3744 serial: Debug: 155 29 stlink_usb.c:2833 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x3748 serial: Debug: 156 29 stlink_usb.c:2833 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x374b serial: Debug: 157 29 stlink_usb.c:2833 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x374d serial: Debug: 158 29 stlink_usb.c:2833 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x374e serial: Debug: 159 29 stlink_usb.c:2833 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x374f serial: Debug: 160 29 stlink_usb.c:2833 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x3752 serial: Debug: 161 29 stlink_usb.c:2833 stlink_usb_open(): transport: 4 vid: 0x0483 pid: 0x3753 serial:
Mac OS Catalina 10.15.7 (19H1030)
This is where the output of the application stops, it is impossible to terminate the application in the terminal via 'ctrl + c', the non-removable process 'openocd' appears in the system.
Sample from System Monitor.
Which libusb version are you using? Is it 1.0.24 release or the latest git version?
For git version, please refer to ticket #308 as well.
https://sourceforge.net/p/openocd/tickets/308/