From: Daniel P. <ma...@da...> - 2015-02-14 11:06:55
|
Hello, after installing Windows 8.1 on a Lenovo W500 (bought 01/2008), OpenOCD won't regognize my STM32F4Discovery board, which worked flawlessly under Win7. I already tried Zadig to change the drivers. Interestingly, the OEM tool "STM32 ST-Link Utility" is able to connect to the board. I am trying to use OpenOCD from QtCreator with the command (GDB-Host): "|D:/Documents/Coding/openocd-0.8.0/bin/openocd-0.8.0.exe -c "gdb_port pipe" -c "log_output openocd.log;" -f board/stm32f4discovery.cfg" When I execute OpenOCD using: "openocd-0.8.0.exe -d 3 -l log.txt -f interface/stlink-v2-1.cfg -f board/stm32f4discovery.cfg" I get the following Log-File: Debug: 17 31 options.c:98 add_default_dirs(): bindir=bin > Debug: 18 47 options.c:99 add_default_dirs(): pkgdatadir= > Debug: 19 47 options.c:100 add_default_dirs(): > run_prefix=D:/Documents/Coding/openocd-0.8.0/ > Debug: 20 47 configuration.c:44 add_script_search_dir(): adding > C:\Users\Daniel\AppData\Roaming/OpenOCD > Debug: 21 47 configuration.c:44 add_script_search_dir(): adding > D:/Documents/Coding/openocd-0.8.0//site > Debug: 22 47 configuration.c:44 add_script_search_dir(): adding > D:/Documents/Coding/openocd-0.8.0//scripts > Debug: 23 47 configuration.c:84 find_file(): found > D:/Documents/Coding/openocd-0.8.0//scripts/board/stm32f4discovery.cfg > Debug: 24 47 configuration.c:84 find_file(): found > D:/Documents/Coding/openocd-0.8.0//scripts/interface/stlink-v2.cfg > Debug: 25 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_interface hla > Debug: 26 47 command.c:145 script_debug(): command - interface > ocd_interface hla > Debug: 28 47 command.c:366 register_command_handler(): registering > 'ocd_hla_device_desc'... > Debug: 29 47 command.c:366 register_command_handler(): registering > 'ocd_hla_serial'... > Debug: 30 47 command.c:366 register_command_handler(): registering > 'ocd_hla_layout'... > Debug: 31 47 command.c:366 register_command_handler(): registering > 'ocd_hla_vid_pid'... > Debug: 32 47 command.c:366 register_command_handler(): registering > 'ocd_trace'... > Debug: 33 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_hla_layout stlink > Debug: 34 47 command.c:145 script_debug(): command - hla_layout > ocd_hla_layout stlink > Debug: 36 47 hla_interface.c:176 hl_interface_handle_layout_command(): > hl_interface_handle_layout_command > Debug: 37 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_hla_device_desc ST-LINK/V2 > Debug: 38 47 command.c:145 script_debug(): command - hla_device_desc > ocd_hla_device_desc ST-LINK/V2 > Debug: 40 47 hla_interface.c:150 > hl_interface_handle_device_desc_command(): > hl_interface_handle_device_desc_command > Debug: 41 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_hla_vid_pid 0x0483 0x3748 > Debug: 42 47 command.c:145 script_debug(): command - hla_vid_pid > ocd_hla_vid_pid 0x0483 0x3748 > Debug: 44 47 hla_interface.c:204 hl_interface_handle_vid_pid_command(): > hl_interface_handle_vid_pid_command > Debug: 45 47 configuration.c:84 find_file(): found > D:/Documents/Coding/openocd-0.8.0//scripts/target/stm32f4x_stlink.cfg > Debug: 46 47 configuration.c:84 find_file(): found > D:/Documents/Coding/openocd-0.8.0//scripts/target/stm32_stlink.cfg > Debug: 47 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_transport select hla_swd > Debug: 48 47 command.c:145 script_debug(): command - ocd_transport > ocd_transport select hla_swd > Debug: 49 47 hla_transport.c:187 hl_transport_select(): hl_transport_select > Debug: 50 47 command.c:366 register_command_handler(): registering > 'ocd_hla'... > Debug: 51 47 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 52 47 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 53 47 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 54 47 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 55 47 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 56 47 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 57 47 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 58 47 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 59 47 command.c:366 register_command_handler(): registering > 'ocd_jtag'... > Debug: 60 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_hla newtap stm32f4x cpu -expected-id 0x2ba01477 > Debug: 61 47 command.c:145 script_debug(): command - ocd_hla ocd_hla > newtap stm32f4x cpu -expected-id 0x2ba01477 > Debug: 62 47 hla_tcl.c:104 jim_hl_newtap_cmd(): Creating New Tap, Chip: > stm32f4x, Tap: cpu, Dotted: stm32f4x.cpu, 2 params > Debug: 63 47 hla_tcl.c:114 jim_hl_newtap_cmd(): Processing option: > -expected-id > Debug: 64 47 core.c:1319 jtag_tap_init(): Created Tap: stm32f4x.cpu @ abs > position 0, irlen 0, capture: 0x0 mask: 0x0 > Debug: 65 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_target create stm32f4x.cpu hla_target -chain-position > stm32f4x.cpu > Debug: 66 47 command.c:145 script_debug(): command - ocd_target ocd_target > create stm32f4x.cpu hla_target -chain-position stm32f4x.cpu > Debug: 67 47 target.c:1722 target_free_all_working_areas_restore(): > freeing all working areas > Debug: 68 47 command.c:366 register_command_handler(): registering > 'ocd_arm'... > Debug: 69 47 command.c:366 register_command_handler(): registering > 'ocd_arm'... > Debug: 70 47 command.c:366 register_command_handler(): registering > 'ocd_arm'... > Debug: 71 47 command.c:366 register_command_handler(): registering > 'ocd_arm'... > Debug: 72 47 command.c:366 register_command_handler(): registering > 'ocd_arm'... > Debug: 73 47 command.c:366 register_command_handler(): registering > 'ocd_arm'... > Debug: 74 47 hla_target.c:367 adapter_target_create(): > adapter_target_create > Debug: 75 47 hla_target.c:338 adapter_init_arch_info(): > adapter_init_arch_info > Debug: 76 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 77 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 78 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 79 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 80 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 81 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 82 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 83 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 84 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 85 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 86 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 87 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 88 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 89 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 90 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 91 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 92 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 93 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 94 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 95 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 96 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 97 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 98 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 99 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 100 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 101 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f4x.cpu'... > Debug: 102 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_stm32f4x.cpu configure -work-area-phys 0x20000000 > -work-area-size 0x10000 -work-area-backup 0 > Debug: 103 47 command.c:145 script_debug(): command - ocd_stm32f4x.cpu > ocd_stm32f4x.cpu configure -work-area-phys 0x20000000 -work-area-size > 0x10000 -work-area-backup 0 > Debug: 104 47 target.c:1722 target_free_all_working_areas_restore(): > freeing all working areas > Debug: 105 47 target.c:1722 target_free_all_working_areas_restore(): > freeing all working areas > Debug: 106 47 target.c:1722 target_free_all_working_areas_restore(): > freeing all working areas > Debug: 107 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_flash bank stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu > Debug: 108 47 command.c:145 script_debug(): command - ocd_flash ocd_flash > bank stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu > Debug: 110 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f2x'... > Debug: 111 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f2x'... > Debug: 112 47 command.c:366 register_command_handler(): registering > 'ocd_stm32f2x'... > Debug: 113 47 tcl.c:804 handle_flash_bank_command(): 'stm32f2x' driver > usage field missing > Debug: 114 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_reset_config srst_only srst_nogate > Debug: 115 47 command.c:145 script_debug(): command - reset_config > ocd_reset_config srst_only srst_nogate > User : 117 47 command.c:546 command_print(): srst_only separate > srst_nogate srst_open_drain connect_deassert_srst > Debug: 118 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_init > Debug: 119 47 command.c:145 script_debug(): command - init ocd_init > Debug: 121 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_target init > Debug: 122 47 command.c:145 script_debug(): command - ocd_target > ocd_target init > Debug: 124 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_target names > Debug: 125 47 command.c:145 script_debug(): command - ocd_target > ocd_target names > Debug: 126 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_stm32f4x.cpu cget -event gdb-flash-erase-start > Debug: 127 47 command.c:145 script_debug(): command - ocd_stm32f4x.cpu > ocd_stm32f4x.cpu cget -event gdb-flash-erase-start > Debug: 128 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_stm32f4x.cpu configure -event gdb-flash-erase-start > reset init > Debug: 129 47 command.c:145 script_debug(): command - ocd_stm32f4x.cpu > ocd_stm32f4x.cpu configure -event gdb-flash-erase-start reset init > Debug: 130 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_stm32f4x.cpu cget -event gdb-flash-write-end > Debug: 131 47 command.c:145 script_debug(): command - ocd_stm32f4x.cpu > ocd_stm32f4x.cpu cget -event gdb-flash-write-end > Debug: 132 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_stm32f4x.cpu configure -event gdb-flash-write-end > reset halt > Debug: 133 47 command.c:145 script_debug(): command - ocd_stm32f4x.cpu > ocd_stm32f4x.cpu configure -event gdb-flash-write-end reset halt > Debug: 134 47 target.c:1285 handle_target_init_command(): Initializing > targets... > Debug: 135 47 hla_target.c:357 adapter_init_target(): adapter_init_target > Debug: 136 47 command.c:366 register_command_handler(): registering > 'ocd_target_request'... > Debug: 137 47 command.c:401 register_command(): command 'trace' is already > registered in '<global>' context > Debug: 138 47 command.c:366 register_command_handler(): registering > 'ocd_trace'... > Debug: 139 47 command.c:366 register_command_handler(): registering > 'ocd_trace'... > Debug: 140 47 command.c:366 register_command_handler(): registering > 'ocd_fast_load_image'... > Debug: 141 47 command.c:366 register_command_handler(): registering > 'ocd_fast_load'... > Debug: 142 47 command.c:366 register_command_handler(): registering > 'ocd_profile'... > Debug: 143 47 command.c:366 register_command_handler(): registering > 'ocd_virt2phys'... > Debug: 144 47 command.c:366 register_command_handler(): registering > 'ocd_reg'... > Debug: 145 47 command.c:366 register_command_handler(): registering > 'ocd_poll'... > Debug: 146 47 command.c:366 register_command_handler(): registering > 'ocd_wait_halt'... > Debug: 147 47 command.c:366 register_command_handler(): registering > 'ocd_halt'... > Debug: 148 47 command.c:366 register_command_handler(): registering > 'ocd_resume'... > Debug: 149 47 command.c:366 register_command_handler(): registering > 'ocd_reset'... > Debug: 150 47 command.c:366 register_command_handler(): registering > 'ocd_soft_reset_halt'... > Debug: 151 47 command.c:366 register_command_handler(): registering > 'ocd_step'... > Debug: 152 47 command.c:366 register_command_handler(): registering > 'ocd_mdw'... > Debug: 153 47 command.c:366 register_command_handler(): registering > 'ocd_mdh'... > Debug: 154 47 command.c:366 register_command_handler(): registering > 'ocd_mdb'... > Debug: 155 47 command.c:366 register_command_handler(): registering > 'ocd_mww'... > Debug: 156 47 command.c:366 register_command_handler(): registering > 'ocd_mwh'... > Debug: 157 47 command.c:366 register_command_handler(): registering > 'ocd_mwb'... > Debug: 158 47 command.c:366 register_command_handler(): registering > 'ocd_bp'... > Debug: 159 47 command.c:366 register_command_handler(): registering > 'ocd_rbp'... > Debug: 160 47 command.c:366 register_command_handler(): registering > 'ocd_wp'... > Debug: 161 47 command.c:366 register_command_handler(): registering > 'ocd_rwp'... > Debug: 162 47 command.c:366 register_command_handler(): registering > 'ocd_load_image'... > Debug: 163 47 command.c:366 register_command_handler(): registering > 'ocd_dump_image'... > Debug: 164 47 command.c:366 register_command_handler(): registering > 'ocd_verify_image'... > Debug: 165 47 command.c:366 register_command_handler(): registering > 'ocd_test_image'... > Debug: 166 47 command.c:366 register_command_handler(): registering > 'ocd_reset_nag'... > Debug: 167 47 command.c:366 register_command_handler(): registering > 'ocd_ps'... > Debug: 168 47 command.c:366 register_command_handler(): registering > 'ocd_test_mem_access'... > Debug: 169 47 hla_interface.c:108 hl_interface_init(): hl_interface_init > Debug: 170 47 hla_layout.c:85 hl_layout_init(): hl_layout_init > Info : 171 47 core.c:1371 adapter_init(): This adapter doesn't support > configurable speed > Debug: 172 47 openocd.c:132 handle_init_command(): Debug Adapter init > complete > Debug: 173 47 command.c:145 script_debug(): command - ocd_command > ocd_command type ocd_transport init > Debug: 174 47 command.c:145 script_debug(): command - ocd_transport > ocd_transport init > Debug: 176 47 transport.c:240 handle_transport_init(): > handle_transport_init > Debug: 177 47 hla_transport.c:148 hl_transport_init(): hl_transport_init > Debug: 178 47 hla_transport.c:165 hl_transport_init(): current transport > hla_swd > Debug: 179 47 hla_interface.c:44 hl_interface_open(): hl_interface_open > Debug: 180 47 hla_layout.c:42 hl_layout_open(): hl_layout_open > Debug: 181 47 stlink_usb.c:1573 stlink_usb_open(): stlink_usb_open > Debug: 182 47 stlink_usb.c:1588 stlink_usb_open(): transport: 1 vid: > 0x0483 pid: 0x3748 > Error: 183 62 stlink_usb.c:1601 stlink_usb_open(): open failed > Debug: 184 62 hla_layout.c:49 hl_layout_open(): failed > Debug: 185 62 command.c:628 run_command(): Command failed with error code > -4 > User : 186 62 command.c:666 command_run_line(): in procedure 'transport' > Debug: 187 62 command.c:628 run_command(): Command failed with error code > -4 > User : 188 62 command.c:666 command_run_line(): in procedure 'init' > Debug: 189 62 hla_interface.c:116 hl_interface_quit(): hl_interface_quit > Did anyone encounter and solve this kind of problem before? Any hints or further advices? Greetings Daniel |
From: Uwe B. <bo...@el...> - 2015-02-14 13:01:10
|
>>>>> "Daniel" == Daniel Pfeffer <ma...@da...> writes: Daniel> Hello, after installing Windows 8.1 on a Lenovo W500 (bought Daniel> 01/2008), OpenOCD won't regognize my STM32F4Discovery board, Daniel> which worked flawlessly under Win7. I already tried Zadig to Daniel> change the drivers. Interestingly, the OEM tool "STM32 ST-Link Daniel> Utility" is able to connect to the board. Daniel> I am trying to use OpenOCD from QtCreator with the command Daniel> (GDB-Host): Daniel> "|D:/Documents/Coding/openocd-0.8.0/bin/openocd-0.8.0.exe -c Daniel> "gdb_port pipe" -c "log_output openocd.log;" -f Daniel> board/stm32f4discovery.cfg" Daniel> When I execute OpenOCD using: "openocd-0.8.0.exe -d 3 -l log.txt Daniel> -f interface/stlink-v2-1.cfg -f board/stm32f4discovery.cfg" I Daniel> get the following Log-File: F4(29)discovery hast ST-Link V2, not V2.1 So try "openocd-0.8.0.exe -f board/stm32f4discovery.cfg" and report back. -- Uwe Bonnes bo...@el... Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ---------- |
From: Daniel P. <ma...@da...> - 2015-02-14 13:06:24
|
User : 14 6 command.c:546 command_print(): debug_level: 3 Debug: 15 6 options.c:98 add_default_dirs(): bindir=bin Debug: 16 6 options.c:99 add_default_dirs(): pkgdatadir= Debug: 17 6 options.c:100 add_default_dirs(): run_prefix=D:/Documents/Coding/openocd-0.8.0/ Debug: 18 6 configuration.c:44 add_script_search_dir(): adding C:\Users\Daniel\AppData\Roaming/OpenOCD Debug: 19 6 configuration.c:44 add_script_search_dir(): adding D:/Documents/Coding/openocd-0.8.0//site Debug: 20 6 configuration.c:44 add_script_search_dir(): adding D:/Documents/Coding/openocd-0.8.0//scripts Debug: 21 8 configuration.c:84 find_file(): found D:/Documents/Coding/openocd-0.8.0//scripts/board/stm32f4discovery.cfg Debug: 22 9 configuration.c:84 find_file(): found D:/Documents/Coding/openocd-0.8.0//scripts/interface/stlink-v2.cfg Debug: 23 9 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_interface hla Debug: 24 9 command.c:145 script_debug(): command - interface ocd_interface hla Debug: 26 9 command.c:366 register_command_handler(): registering 'ocd_hla_device_desc'... Debug: 27 9 command.c:366 register_command_handler(): registering 'ocd_hla_serial'... Debug: 28 9 command.c:366 register_command_handler(): registering 'ocd_hla_layout'... Debug: 29 9 command.c:366 register_command_handler(): registering 'ocd_hla_vid_pid'... Debug: 30 9 command.c:366 register_command_handler(): registering 'ocd_trace'... Debug: 31 10 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_hla_layout stlink Debug: 32 10 command.c:145 script_debug(): command - hla_layout ocd_hla_layout stlink Debug: 34 10 hla_interface.c:176 hl_interface_handle_layout_command(): hl_interface_handle_layout_command Debug: 35 10 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_hla_device_desc ST-LINK/V2 Debug: 36 10 command.c:145 script_debug(): command - hla_device_desc ocd_hla_device_desc ST-LINK/V2 Debug: 38 10 hla_interface.c:150 hl_interface_handle_device_desc_command(): hl_interface_handle_device_desc_command Debug: 39 10 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_hla_vid_pid 0x0483 0x3748 Debug: 40 10 command.c:145 script_debug(): command - hla_vid_pid ocd_hla_vid_pid 0x0483 0x3748 Debug: 42 10 hla_interface.c:204 hl_interface_handle_vid_pid_command(): hl_interface_handle_vid_pid_command Debug: 43 10 configuration.c:84 find_file(): found D:/Documents/Coding/openocd-0.8.0//scripts/target/stm32f4x_stlink.cfg Debug: 44 11 configuration.c:84 find_file(): found D:/Documents/Coding/openocd-0.8.0//scripts/target/stm32_stlink.cfg Debug: 45 11 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select hla_swd Debug: 46 11 command.c:145 script_debug(): command - ocd_transport ocd_transport select hla_swd Debug: 47 11 hla_transport.c:187 hl_transport_select(): hl_transport_select Debug: 48 11 command.c:366 register_command_handler(): registering 'ocd_hla'... Debug: 49 11 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 50 12 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 51 12 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 52 12 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 53 12 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 54 12 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 55 12 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 56 12 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 57 12 command.c:366 register_command_handler(): registering 'ocd_jtag'... Debug: 58 12 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_hla newtap stm32f4x cpu -expected-id 0x2ba01477 Debug: 59 12 command.c:145 script_debug(): command - ocd_hla ocd_hla newtap stm32f4x cpu -expected-id 0x2ba01477 Debug: 60 12 hla_tcl.c:104 jim_hl_newtap_cmd(): Creating New Tap, Chip: stm32f4x, Tap: cpu, Dotted: stm32f4x.cpu, 2 params Debug: 61 12 hla_tcl.c:114 jim_hl_newtap_cmd(): Processing option: -expected-id Debug: 62 12 core.c:1319 jtag_tap_init(): Created Tap: stm32f4x.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0 Debug: 63 13 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target create stm32f4x.cpu hla_target -chain-position stm32f4x.cpu Debug: 64 13 command.c:145 script_debug(): command - ocd_target ocd_target create stm32f4x.cpu hla_target -chain-position stm32f4x.cpu Debug: 65 13 target.c:1722 target_free_all_working_areas_restore(): freeing all working areas Debug: 66 13 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 67 13 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 68 13 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 69 13 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 70 13 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 71 13 command.c:366 register_command_handler(): registering 'ocd_arm'... Debug: 72 13 hla_target.c:367 adapter_target_create(): adapter_target_create Debug: 73 13 hla_target.c:338 adapter_init_arch_info(): adapter_init_arch_info Debug: 74 13 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 75 13 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 76 13 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 77 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 78 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 79 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 80 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 81 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 82 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 83 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 84 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 85 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 86 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 87 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 88 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 89 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 90 14 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 91 15 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 92 15 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 93 15 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 94 15 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 95 15 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 96 15 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 97 15 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 98 15 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 99 15 command.c:366 register_command_handler(): registering 'ocd_stm32f4x.cpu'... Debug: 100 15 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stm32f4x.cpu configure -work-area-phys 0x20000000 -work-area-size 0x10000 -work-area-backup 0 Debug: 101 15 command.c:145 script_debug(): command - ocd_stm32f4x.cpu ocd_stm32f4x.cpu configure -work-area-phys 0x20000000 -work-area-size 0x10000 -work-area-backup 0 Debug: 102 16 target.c:1722 target_free_all_working_areas_restore(): freeing all working areas Debug: 103 16 target.c:1722 target_free_all_working_areas_restore(): freeing all working areas Debug: 104 16 target.c:1722 target_free_all_working_areas_restore(): freeing all working areas Debug: 105 16 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_flash bank stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu Debug: 106 16 command.c:145 script_debug(): command - ocd_flash ocd_flash bank stm32f4x.flash stm32f2x 0 0 0 0 stm32f4x.cpu Debug: 108 16 command.c:366 register_command_handler(): registering 'ocd_stm32f2x'... Debug: 109 16 command.c:366 register_command_handler(): registering 'ocd_stm32f2x'... Debug: 110 16 command.c:366 register_command_handler(): registering 'ocd_stm32f2x'... Debug: 111 16 tcl.c:804 handle_flash_bank_command(): 'stm32f2x' driver usage field missing Debug: 112 17 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_reset_config srst_only srst_nogate Debug: 113 17 command.c:145 script_debug(): command - reset_config ocd_reset_config srst_only srst_nogate User : 115 17 command.c:546 command_print(): srst_only separate srst_nogate srst_open_drain connect_deassert_srst Debug: 116 18 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_init Debug: 117 18 command.c:145 script_debug(): command - init ocd_init Debug: 119 18 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target init Debug: 120 18 command.c:145 script_debug(): command - ocd_target ocd_target init Debug: 122 18 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target names Debug: 123 18 command.c:145 script_debug(): command - ocd_target ocd_target names Debug: 124 18 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stm32f4x.cpu cget -event gdb-flash-erase-start Debug: 125 19 command.c:145 script_debug(): command - ocd_stm32f4x.cpu ocd_stm32f4x.cpu cget -event gdb-flash-erase-start Debug: 126 19 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stm32f4x.cpu configure -event gdb-flash-erase-start reset init Debug: 127 19 command.c:145 script_debug(): command - ocd_stm32f4x.cpu ocd_stm32f4x.cpu configure -event gdb-flash-erase-start reset init Debug: 128 19 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stm32f4x.cpu cget -event gdb-flash-write-end Debug: 129 19 command.c:145 script_debug(): command - ocd_stm32f4x.cpu ocd_stm32f4x.cpu cget -event gdb-flash-write-end Debug: 130 19 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stm32f4x.cpu configure -event gdb-flash-write-end reset halt Debug: 131 19 command.c:145 script_debug(): command - ocd_stm32f4x.cpu ocd_stm32f4x.cpu configure -event gdb-flash-write-end reset halt Debug: 132 20 target.c:1285 handle_target_init_command(): Initializing targets... Debug: 133 20 hla_target.c:357 adapter_init_target(): adapter_init_target Debug: 134 20 command.c:366 register_command_handler(): registering 'ocd_target_request'... Debug: 135 20 command.c:401 register_command(): command 'trace' is already registered in '<global>' context Debug: 136 20 command.c:366 register_command_handler(): registering 'ocd_trace'... Debug: 137 20 command.c:366 register_command_handler(): registering 'ocd_trace'... Debug: 138 20 command.c:366 register_command_handler(): registering 'ocd_fast_load_image'... Debug: 139 20 command.c:366 register_command_handler(): registering 'ocd_fast_load'... Debug: 140 20 command.c:366 register_command_handler(): registering 'ocd_profile'... Debug: 141 20 command.c:366 register_command_handler(): registering 'ocd_virt2phys'... Debug: 142 20 command.c:366 register_command_handler(): registering 'ocd_reg'... Debug: 143 20 command.c:366 register_command_handler(): registering 'ocd_poll'... Debug: 144 20 command.c:366 register_command_handler(): registering 'ocd_wait_halt'... Debug: 145 20 command.c:366 register_command_handler(): registering 'ocd_halt'... Debug: 146 20 command.c:366 register_command_handler(): registering 'ocd_resume'... Debug: 147 20 command.c:366 register_command_handler(): registering 'ocd_reset'... Debug: 148 20 command.c:366 register_command_handler(): registering 'ocd_soft_reset_halt'... Debug: 149 21 command.c:366 register_command_handler(): registering 'ocd_step'... Debug: 150 21 command.c:366 register_command_handler(): registering 'ocd_mdw'... Debug: 151 21 command.c:366 register_command_handler(): registering 'ocd_mdh'... Debug: 152 21 command.c:366 register_command_handler(): registering 'ocd_mdb'... Debug: 153 21 command.c:366 register_command_handler(): registering 'ocd_mww'... Debug: 154 21 command.c:366 register_command_handler(): registering 'ocd_mwh'... Debug: 155 21 command.c:366 register_command_handler(): registering 'ocd_mwb'... Debug: 156 21 command.c:366 register_command_handler(): registering 'ocd_bp'... Debug: 157 21 command.c:366 register_command_handler(): registering 'ocd_rbp'... Debug: 158 21 command.c:366 register_command_handler(): registering 'ocd_wp'... Debug: 159 21 command.c:366 register_command_handler(): registering 'ocd_rwp'... Debug: 160 21 command.c:366 register_command_handler(): registering 'ocd_load_image'... Debug: 161 21 command.c:366 register_command_handler(): registering 'ocd_dump_image'... Debug: 162 21 command.c:366 register_command_handler(): registering 'ocd_verify_image'... Debug: 163 21 command.c:366 register_command_handler(): registering 'ocd_test_image'... Debug: 164 21 command.c:366 register_command_handler(): registering 'ocd_reset_nag'... Debug: 165 22 command.c:366 register_command_handler(): registering 'ocd_ps'... Debug: 166 22 command.c:366 register_command_handler(): registering 'ocd_test_mem_access'... Debug: 167 22 hla_interface.c:108 hl_interface_init(): hl_interface_init Debug: 168 22 hla_layout.c:85 hl_layout_init(): hl_layout_init Info : 169 22 core.c:1371 adapter_init(): This adapter doesn't support configurable speed Debug: 170 22 openocd.c:132 handle_init_command(): Debug Adapter init complete Debug: 171 22 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport init Debug: 172 22 command.c:145 script_debug(): command - ocd_transport ocd_transport init Debug: 174 22 transport.c:240 handle_transport_init(): handle_transport_init Debug: 175 22 hla_transport.c:148 hl_transport_init(): hl_transport_init Debug: 176 22 hla_transport.c:165 hl_transport_init(): current transport hla_swd Debug: 177 22 hla_interface.c:44 hl_interface_open(): hl_interface_open Debug: 178 22 hla_layout.c:42 hl_layout_open(): hl_layout_open Debug: 179 22 stlink_usb.c:1573 stlink_usb_open(): stlink_usb_open Debug: 180 22 stlink_usb.c:1588 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3748 Error: 181 93 stlink_usb.c:1601 stlink_usb_open(): open failed Debug: 182 94 hla_layout.c:49 hl_layout_open(): failed Debug: 183 94 command.c:628 run_command(): Command failed with error code -4 User : 184 94 command.c:666 command_run_line(): in procedure 'transport' Debug: 185 95 command.c:628 run_command(): Command failed with error code -4 User : 186 95 command.c:666 command_run_line(): in procedure 'init' Debug: 187 96 hla_interface.c:116 hl_interface_quit(): hl_interface_quit |
From: Daniel P. <ma...@da...> - 2015-02-14 13:27:26
|
> Kannst Du nicht selbst kompilieren und openocd git ghead verwenden? > Release 0.8.0 ist schon ein 3/4 Jahre alt. Vielleicht ist Dein Problem > schon > behoben? Just tested Freddie Copin's Binary 0.9.0-dev-150204220259 ( http://www.freddiechopin.info/en/download/category/10-openocd-dev ). Slight changes in output, same problem: Debug: 226 39 stlink_usb.c:1686 stlink_usb_open(): stlink_usb_open Debug: 227 39 stlink_usb.c:1703 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3748 serial: Error: 228 46 stlink_usb.c:1716 stlink_usb_open(): open failed The device is definitely connected and recognized by the system. |
From: Paul F. <fer...@gm...> - 2015-02-14 15:31:37
|
Hi, On Sat, Feb 14, 2015 at 02:27:15PM +0100, Daniel Pfeffer wrote: > Just tested Freddie Copin's Binary 0.9.0-dev-150204220259 ( > [1]http://www.freddiechopin.info/en/download/category/10-openocd-dev ). Slight > changes in output, same problem: > Debug: 226 39 stlink_usb.c:1686 stlink_usb_open(): stlink_usb_open > Debug: 227 39 stlink_usb.c:1703 stlink_usb_open(): transport: 1 vid: 0x0483 pid: > 0x3748 serial: > Error: 228 46 stlink_usb.c:1716 stlink_usb_open(): open failed Please try version from MSYS2 repository, and if it doesn't work, you can easily self-compile OpenOCD with it and step-by-step jtag_libusb_open to see where exactly it fails. Another suggestion is to try a USB 2.0 port if you have one. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fer...@gm... |
From: Daniel P. <ma...@da...> - 2015-02-14 16:29:38
|
> > Please try version from MSYS2 repository, and if it doesn't work, you > can easily self-compile OpenOCD with it and step-by-step > jtag_libusb_open to see where exactly it fails. Is there a way to get OpenOCD from MSYS2-Repo without installing MSYS2-System? > Another suggestion is > to try a USB 2.0 port if you have one. > I tried already all my USB2.0 ports and even an PCMCIA ExpressCard with USB3.0 brings no help. |
From: Xiaofan C. <xia...@gm...> - 2015-02-16 23:06:15
|
On Sun, Feb 15, 2015 at 12:29 AM, Daniel Pfeffer <ma...@da...> wrote: > > Is there a way to get OpenOCD from MSYS2-Repo without installing > MSYS2-System? > You can try the binary snapshot from Freddie Choppin. http://www.freddiechopin.info/en/download/category/10-openocd-dev -- Xiaofan |
From: Freddie C. <fre...@op...> - 2015-02-17 07:08:17
|
On 02/17/2015 12:06 AM, Xiaofan Chen wrote: > On Sun, Feb 15, 2015 at 12:29 AM, Daniel Pfeffer <ma...@da...> wrote: >> Is there a way to get OpenOCD from MSYS2-Repo without installing >> MSYS2-System? >> > You can try the binary snapshot from Freddie Choppin. > http://www.freddiechopin.info/en/download/category/10-openocd-dev The last two compilations are using libusb 1.0.19 (; Regards, FCh |
From: Paul F. <fer...@gm...> - 2015-02-14 16:43:12
|
On Sat, Feb 14, 2015 at 05:29:31PM +0100, Daniel Pfeffer wrote: > Please try version from MSYS2 repository, and if it doesn't work, you > can easily self-compile OpenOCD with it and step-by-step > jtag_libusb_open to see where exactly it fails. > > Is there a way to get OpenOCD from MSYS2-Repo without installing MSYS2-System? Yes, by manually untarring etc, but I do not think it makes any sense to not have MSYS2 installed, you'll need it to self-compile and debug OpenOCD if it still doesn't work. None of the active OpenOCD users and developers are using windows systems, but we can help with debugging if you have a suitable environment. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fer...@gm... |
From: Daniel P. <ma...@da...> - 2015-02-15 11:42:40
|
> Is there a way to get OpenOCD from MSYS2-Repo without installing > MSYS2-System? > > Yes, by manually untarring etc, but I do not think it makes any sense > to not have MSYS2 installed, you'll need it to self-compile and debug > OpenOCD if it still doesn't work. None of the active OpenOCD users and > developers are using windows systems, but we can help with debugging > if you have a suitable environment. > OK. Unfortunately, I've got no experience with systems like MSYS2. Which steps are needed to comiple OpenOCD myself and to run it using a debugger? To be honest, I rather suspect some OS-based restrictions on USB port access than OpenOCD itself. Nevertheless, step-by-step debugging might find the exact cause. On the other hand, there is some software that is able to get along with that (STM32 St-Link Utility from OEM). |
From: Paul F. <fer...@gm...> - 2015-02-15 11:49:18
|
On Sun, Feb 15, 2015 at 12:42:33PM +0100, Daniel Pfeffer wrote: > > Is there a way to get OpenOCD from MSYS2-Repo without installing > MSYS2-System? > > Yes, by manually untarring etc, but I do not think it makes any sense > to not have MSYS2 installed, you'll need it to self-compile and debug > OpenOCD if it still doesn't work. None of the active OpenOCD users and > developers are using windows systems, but we can help with debugging > if you have a suitable environment. > > OK. Unfortunately, I've got no experience with systems like MSYS2. Which steps > are needed to comiple OpenOCD myself and to run it using a debugger? Please see http://openocd.zylin.com/#/c/2507/ , AFAICT, it's really straightforward. > To be honest, I rather suspect some OS-based restrictions on USB port access > than OpenOCD itself. I've tried searching the internet for similar or related symptoms but couldn't find anything; it doesn't look like WinUSB has any access restrictions whatsoever. The only hint I found was that somebody reinstalled WinUSB with Zadig (from seemingly identical version) and that helped. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fer...@gm... |
From: Xiaofan C. <xia...@gm...> - 2015-02-16 23:00:48
|
On Sat, Feb 14, 2015 at 7:06 PM, Daniel Pfeffer <ma...@da...> wrote: > > after installing Windows 8.1 on a Lenovo W500 (bought 01/2008), > OpenOCD won't regognize my STM32F4Discovery board, which > worked flawlessly under Win7. I already tried Zadig to change the > drivers. Interestingly, the OEM > tool "STM32 ST-Link Utility" is able to connect to the board. > Have your tried to use the latest version of libusb (libusb-1.0.dll) from libusb project (1.0.19 version)? http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.19/ Windows binary is libusb-1.0.19.7z The ST-Link v2 is shipped with WinUSB driver so it should work without changing to the Zadig driver. The Zadig generated driver will be a bit different from the ST WinUSB driver. Both should work with libusb/OpenOCD. -- Xiaofan |
From: Xiaofan C. <xia...@gm...> - 2015-02-16 23:03:03
|
On Tue, Feb 17, 2015 at 7:00 AM, Xiaofan Chen <xia...@gm...> wrote: > On Sat, Feb 14, 2015 at 7:06 PM, Daniel Pfeffer <ma...@da...> wrote: >> >> after installing Windows 8.1 on a Lenovo W500 (bought 01/2008), >> OpenOCD won't regognize my STM32F4Discovery board, which >> worked flawlessly under Win7. I already tried Zadig to change the >> drivers. Interestingly, the OEM >> tool "STM32 ST-Link Utility" is able to connect to the board. >> > > Have your tried to use the latest version of libusb (libusb-1.0.dll) > from libusb project (1.0.19 version)? > http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.19/ > Windows binary is libusb-1.0.19.7z > > The ST-Link v2 is shipped with WinUSB driver so it should work > without changing to the Zadig driver. The Zadig generated driver > will be a bit different from the ST WinUSB driver. Both should > work with libusb/OpenOCD. > BTW, you should not use libusb0.sys driver (or even libusbK driver) with libusb, it does not work properly. The best supported driver with libusb (and thus OpenOCD) under Windows is WinUSB. -- Xiaofan |
From: Xiaofan C. <xia...@gm...> - 2015-02-16 23:08:36
|
On Sun, Feb 15, 2015 at 7:42 PM, Daniel Pfeffer <ma...@da...> wrote: > > To be honest, I rather suspect some OS-based restrictions on > USB port access than OpenOCD itself. That should not be the case since ST-Link utility works. > Nevertheless, > step-by-step debugging might find the exact cause. On the > other hand, there is some software that is able to get > along with that (STM32 St-Link Utility from OEM). > I will suspect the libusb version. Please try to use the latest libusb and the ST provided WinUSB driver to see if that helps. -- Xiaofan |
From: Daniel P. <ma...@da...> - 2015-02-23 20:32:51
|
2015-02-17 0:08 GMT+01:00 Xiaofan Chen <xia...@gm...>: > On Sun, Feb 15, 2015 at 7:42 PM, Daniel Pfeffer <ma...@da...> > wrote: > > > > To be honest, I rather suspect some OS-based restrictions on > > USB port access than OpenOCD itself. > > That should not be the case since ST-Link utility works. > > > Nevertheless, > > step-by-step debugging might find the exact cause. On the > > other hand, there is some software that is able to get > > along with that (STM32 St-Link Utility from OEM). > > > > I will suspect the libusb version. Please try to use > the latest libusb and the ST provided WinUSB driver > to see if that helps. I tried that, but it didn't work. I also tried to build openocd in msys2 myself, but there are some problems with jimtcl: libtool: link: gcc -std=gnu99 -g -O2 -D__USE_MINGW_ANSI_STDIO -Wall > -Wstrict-prototypes -Wformat-security -Wshadow -Wextra > -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls > -Werror -o openocd.exe main.o ./.libs/libopenocd.a -lws2_32 -L/m > ingw64/lib -lhidapi -lusb -lusb-1.0 ../jimtcl/libjim.a > ../jimtcl/libjim.a(jim.o): In function `JimNumberBase': > /home/Daniel/openocd/jimtcl/jim.c:455: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `JimParseSep': > /home/Daniel/openocd/jimtcl/jim.c:1277: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `JimParseSubCmd': > /home/Daniel/openocd/jimtcl/jim.c:1494: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `JimParseVar': > /home/Daniel/openocd/jimtcl/jim.c:1548: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `JimParseEol': > /home/Daniel/openocd/jimtcl/jim.c:1298: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o):/home/Daniel/openocd/jimtcl/jim.c:8519: more > undefined references to `__imp___ctype_ptr__' follow > ../jimtcl/libjim.a(jim.o): In function `UpdateStringOfDouble': > /home/Daniel/openocd/jimtcl/jim.c:5927: undefined reference to > `__fpclassifyd' > /home/Daniel/openocd/jimtcl/jim.c:5931: undefined reference to > `__fpclassifyd' > ../jimtcl/libjim.a(jim.o): In function `JimCheckConversion': > /home/Daniel/openocd/jimtcl/jim.c:437: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `Jim_StringToDouble': > /home/Daniel/openocd/jimtcl/jim.c:557: undefined reference to `__errno' > ../jimtcl/libjim.a(jim.o): In function `JimParseList': > /home/Daniel/openocd/jimtcl/jim.c:2039: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `Jim_ConcatObj': > /home/Daniel/openocd/jimtcl/jim.c:6880: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `ScanOneEntry': > /home/Daniel/openocd/jimtcl/jim.c:9793: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `JimScanAString': > /home/Daniel/openocd/jimtcl/jim.c:9741: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `isrefchar': > /home/Daniel/openocd/jimtcl/jim.c:5113: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `SetIntFromAny': > /home/Daniel/openocd/jimtcl/jim.c:5839: undefined reference to `__errno' > ../jimtcl/libjim.a(jim.o): In function `SetIndexFromAny': > /home/Daniel/openocd/jimtcl/jim.c:7362: undefined reference to > `__imp___ctype_ptr__' > /home/Daniel/openocd/jimtcl/jim.c:7362: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `JimParseExpression': > /home/Daniel/openocd/jimtcl/jim.c:8439: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `isrefchar': > /home/Daniel/openocd/jimtcl/jim.c:5113: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim.o): In function `Jim_EvalFile': > /home/Daniel/openocd/jimtcl/jim.c:11004: undefined reference to `__errno' > /home/Daniel/openocd/jimtcl/jim.c:11017: undefined reference to `__errno' > ../jimtcl/libjim.a(jim.o): In function `Jim_PutsCoreCommand': > /home/Daniel/openocd/jimtcl/jim.c:11367: undefined reference to > `__getreent' > ../jimtcl/libjim.a(jim.o): In function `JimStringIs': > /home/Daniel/openocd/jimtcl/jim.c:3009: undefined reference to `__errno' > ../jimtcl/libjim.a(jim.o):jim.c:(.rdata$.refptr.environ[.refptr.environ]+0x0): > undefined reference to `environ' > ../jimtcl/libjim.a(jim-aio.o): In function `aio_cmd_ndelay': > /home/Daniel/openocd/jimtcl/jim-aio.c:740: undefined reference to `fcntl' > /home/Daniel/openocd/jimtcl/jim-aio.c:754: undefined reference to `fcntl' > ../jimtcl/libjim.a(jim-aio.o): In function `JimParseIpAddress': > /home/Daniel/openocd/jimtcl/jim-aio.c:225: undefined reference to > `getaddrinfo' > /home/Daniel/openocd/jimtcl/jim-aio.c:231: undefined reference to > `freeaddrinfo' > ../jimtcl/libjim.a(jim-aio.o): In function `JimAioSetError': > /home/Daniel/openocd/jimtcl/jim-aio.c:276: undefined reference to `__errno' > /home/Daniel/openocd/jimtcl/jim-aio.c:273: undefined reference to `__errno' > ../jimtcl/libjim.a(jim-aio.o): In function `JimMakeChannel': > /home/Daniel/openocd/jimtcl/jim-aio.c:1108: undefined reference to `fcntl' > ../jimtcl/libjim.a(jim-aio.o): In function `JimCheckStreamError': > /home/Daniel/openocd/jimtcl/jim-aio.c:307: undefined reference to `__errno' > /home/Daniel/openocd/jimtcl/jim-aio.c:307: undefined reference to `__errno' > /home/Daniel/openocd/jimtcl/jim-aio.c:311: undefined reference to `__errno' > /home/Daniel/openocd/jimtcl/jim-aio.c:316: undefined reference to `__errno' > ../jimtcl/libjim.a(jim-aio.o): In function `aio_cmd_gets': > /home/Daniel/openocd/jimtcl/jim-aio.c:437: undefined reference to `__errno' > ../jimtcl/libjim.a(jim-aio.o): In function `aio_cmd_close': > /home/Daniel/openocd/jimtcl/jim-aio.c:679: undefined reference to > `shutdown' > ../jimtcl/libjim.a(jim-aio.o): In function `aio_cmd_recvfrom': > /home/Daniel/openocd/jimtcl/jim-aio.c:541: undefined reference to > `recvfrom' > /home/Daniel/openocd/jimtcl/jim-aio.c:565: undefined reference to > `inet_ntop' > ../jimtcl/libjim.a(jim-aio.o): In function `aio_cmd_sendto': > /home/Daniel/openocd/jimtcl/jim-aio.c:603: undefined reference to `sendto' > ../jimtcl/libjim.a(jim-aio.o): In function `JimAioSockCommand': > /home/Daniel/openocd/jimtcl/jim-aio.c:1395: undefined reference to `pipe' > /home/Daniel/openocd/jimtcl/jim-aio.c:1376: undefined reference to > `socketpair' > /home/Daniel/openocd/jimtcl/jim-aio.c:1244: undefined reference to > `connect' > /home/Daniel/openocd/jimtcl/jim-aio.c:1319: undefined reference to > `connect' > ../jimtcl/libjim.a(jim-aio.o): In function `aio_cmd_copy': > /home/Daniel/openocd/jimtcl/jim-aio.c:420: undefined reference to `__errno' > /home/Daniel/openocd/jimtcl/jim-aio.c:414: undefined reference to `__errno' > ../jimtcl/libjim.a(jim-aio.o): In function `Jim_aioInit': > /home/Daniel/openocd/jimtcl/jim-aio.c:1437: undefined reference to > `__getreent' > /home/Daniel/openocd/jimtcl/jim-aio.c:1438: undefined reference to > `__getreent' > /home/Daniel/openocd/jimtcl/jim-aio.c:1439: undefined reference to > `__getreent' > ../jimtcl/libjim.a(jim-clock.o): In function `clock_cmd_scan': > /home/Daniel/openocd/jimtcl/jim-clock.c:68: undefined reference to > `localtime_r' > /home/Daniel/openocd/jimtcl/jim-clock.c:70: undefined reference to > `strptime' > ../jimtcl/libjim.a(jim-eventloop.o): In function `Jim_EvalObjBackground': > /home/Daniel/openocd/jimtcl/jim-eventloop.c:134: undefined reference to > `__getreent' > ../jimtcl/libjim.a(jim-eventloop.o): In function `Jim_ProcessEvents': > /home/Daniel/openocd/jimtcl/jim-eventloop.c:414: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-exec.o): In function `JimStrError': > /home/Daniel/openocd/jimtcl/jim-exec.c:168: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-exec.o): In function `JimReapDetachedPids': > /home/Daniel/openocd/jimtcl/jim-exec.c:467: undefined reference to > `waitpid' > ../jimtcl/libjim.a(jim-exec.o): In function `JimCreatePipeline': > /home/Daniel/openocd/jimtcl/jim-exec.c:939: undefined reference to `vfork' > /home/Daniel/openocd/jimtcl/jim-exec.c:961: undefined reference to > `__getreent' > /home/Daniel/openocd/jimtcl/jim-exec.c:914: undefined reference to `pipe' > /home/Daniel/openocd/jimtcl/jim-exec.c:830: undefined reference to `pipe' > ../jimtcl/libjim.a(jim-exec.o): In function `JimWaitForProcess': > /home/Daniel/openocd/jimtcl/jim-exec.c:496: undefined reference to > `waitpid' > ../jimtcl/libjim.a(jim-file.o): In function `file_cmd_readlink': > /home/Daniel/openocd/jimtcl/jim-file.c:675: undefined reference to > `readlink' > /home/Daniel/openocd/jimtcl/jim-file.c:679: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-file.o): In function `file_cmd_rename': > /home/Daniel/openocd/jimtcl/jim-file.c:539: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-file.o): In function `mkdir_all': > /home/Daniel/openocd/jimtcl/jim-file.c:449: undefined reference to > `__errno' > /home/Daniel/openocd/jimtcl/jim-file.c:454: undefined reference to > `__errno' > /home/Daniel/openocd/jimtcl/jim-file.c:449: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-file.o):/home/Daniel/openocd/jimtcl/jim-file.c:461: > more undefined references to `__errno' follow > ../jimtcl/libjim.a(jim-file.o): In function `file_cmd_normalize': > /home/Daniel/openocd/jimtcl/jim-file.c:273: undefined reference to > `realpath' > /home/Daniel/openocd/jimtcl/jim-file.c:279: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-file.o): In function `Jim_CdCmd': > /home/Daniel/openocd/jimtcl/jim-file.c:923: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-file.o): In function `file_stat': > /home/Daniel/openocd/jimtcl/jim-file.c:551: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-file.o): In function `file_cmd_owned': > /home/Daniel/openocd/jimtcl/jim-file.c:662: undefined reference to > `geteuid' > ../jimtcl/libjim.a(jim-file.o): In function `file_cmd_mtime': > /home/Daniel/openocd/jimtcl/jim-file.c:599: undefined reference to `utimes' > /home/Daniel/openocd/jimtcl/jim-file.c:600: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-file.o): In function `file_lstat': > /home/Daniel/openocd/jimtcl/jim-file.c:562: undefined reference to `lstat' > /home/Daniel/openocd/jimtcl/jim-file.c:563: undefined reference to > `__errno' > /home/Daniel/openocd/jimtcl/jim-file.c:562: undefined reference to `lstat' > /home/Daniel/openocd/jimtcl/jim-file.c:563: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-load.o): In function `Jim_LoadLibrary': > /home/Daniel/openocd/jimtcl/jim-load.c:32: undefined reference to `dlopen' > /home/Daniel/openocd/jimtcl/jim-load.c:65: undefined reference to `dlsym' > /home/Daniel/openocd/jimtcl/jim-load.c:85: undefined reference to `dlclose' > /home/Daniel/openocd/jimtcl/jim-load.c:34: undefined reference to `dlerror' > ../jimtcl/libjim.a(jim-load.o): In function `JimFreeOneLoadHandle': > /home/Daniel/openocd/jimtcl/jim-load.c:92: undefined reference to `dlclose' > ../jimtcl/libjim.a(jim-namespace.o): In function `JimCanonicalNamespace': > /home/Daniel/openocd/jimtcl/jim-namespace.c:76: undefined reference to > `__assert_func' > /home/Daniel/openocd/jimtcl/jim-namespace.c:77: undefined reference to > `__assert_func' > ../jimtcl/libjim.a(jim-posix.o): In function `Jim_PosixSetError': > /home/Daniel/openocd/jimtcl/jim-posix.c:52: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-posix.o): In function `Jim_PosixWaitCommand': > /home/Daniel/openocd/jimtcl/jim-posix.c:122: undefined reference to > `waitpid' > /home/Daniel/openocd/jimtcl/jim-posix.c:127: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-posix.o): In function `Jim_PosixUptimeCommand': > /home/Daniel/openocd/jimtcl/jim-posix.c:209: undefined reference to > `sysinfo' > ../jimtcl/libjim.a(jim-posix.o): In function `Jim_PosixGethostnameCommand': > /home/Daniel/openocd/jimtcl/jim-posix.c:188: undefined reference to > `gethostname' > ../jimtcl/libjim.a(jim-posix.o): In function `Jim_PosixGetidsCommand': > /home/Daniel/openocd/jimtcl/jim-posix.c:166: undefined reference to > `getuid' > /home/Daniel/openocd/jimtcl/jim-posix.c:168: undefined reference to > `geteuid' > /home/Daniel/openocd/jimtcl/jim-posix.c:170: undefined reference to > `getgid' > /home/Daniel/openocd/jimtcl/jim-posix.c:172: undefined reference to > `getegid' > ../jimtcl/libjim.a(jim-posix.o): In function `Jim_PosixForkCommand': > /home/Daniel/openocd/jimtcl/jim-posix.c:66: undefined reference to `fork' > ../jimtcl/libjim.a(jim-readdir.o): In function `Jim_ReaddirCmd': > /home/Daniel/openocd/jimtcl/jim-readdir.c:91: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-signal.o): In function `find_signal_by_name': > /home/Daniel/openocd/jimtcl/jim-signal.c:152: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jim-signal.o): In function `do_signal_cmd': > /home/Daniel/openocd/jimtcl/jim-signal.c:232: undefined reference to > `sigaction' > /home/Daniel/openocd/jimtcl/jim-signal.c:222: undefined reference to > `sigaction' > /home/Daniel/openocd/jimtcl/jim-signal.c:225: undefined reference to > `sigaction' > ../jimtcl/libjim.a(jim-signal.o): In function `Jim_AlarmCmd': > /home/Daniel/openocd/jimtcl/jim-signal.c:415: undefined reference to > `ualarm' > ../jimtcl/libjim.a(jim-signal.o): In function `Jim_KillCmd': > /home/Daniel/openocd/jimtcl/jim-signal.c:493: undefined reference to `kill' > ../jimtcl/libjim.a(jim-signal.o): In function `Jim_SignalName': > /home/Daniel/openocd/jimtcl/jim-signal.c:128: undefined reference to > `__imp_sys_siglist' > ../jimtcl/libjim.a(jim-syslog.o): In function `Jim_SyslogCmd': > /home/Daniel/openocd/jimtcl/jim-syslog.c:121: undefined reference to > `closelog' > /home/Daniel/openocd/jimtcl/jim-syslog.c:121: undefined reference to > `closelog' > /home/Daniel/openocd/jimtcl/jim-syslog.c:163: undefined reference to > `openlog' > /home/Daniel/openocd/jimtcl/jim-syslog.c:166: undefined reference to > `syslog' > ../jimtcl/libjim.a(jim-syslog.o): In function `Jim_SyslogCmdDelete': > /home/Daniel/openocd/jimtcl/jim-syslog.c:65: undefined reference to > `closelog' > ../jimtcl/libjim.a(jim-interactive.o): In function `Jim_InteractivePrompt': > /home/Daniel/openocd/jimtcl/jim-interactive.c:125: undefined reference to > `__errno' > ../jimtcl/libjim.a(jim-format.o): In function `Jim_FormatString': > /home/Daniel/openocd/jimtcl/jim-format.c:126: undefined reference to > `__imp___ctype_ptr__' > /home/Daniel/openocd/jimtcl/jim-format.c:187: undefined reference to > `__imp___ctype_ptr__' > /home/Daniel/openocd/jimtcl/jim-format.c:188: undefined reference to > `__imp___ctype_ptr__' > /home/Daniel/openocd/jimtcl/jim-format.c:199: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(jimregexp.o): In function `regmatch': > /home/Daniel/openocd/jimtcl/jimregexp.c:1387: undefined reference to > `__imp___ctype_ptr__' > ../jimtcl/libjim.a(linenoise.o): In function `fd_read_char': > /home/Daniel/openocd/jimtcl/linenoise.c:347: undefined reference to `poll' > ../jimtcl/libjim.a(linenoise.o): In function `disableRawMode': > /home/Daniel/openocd/jimtcl/linenoise.c:269: undefined reference to > `tcsetattr' > ../jimtcl/libjim.a(linenoise.o): In function `enableRawMode': > /home/Daniel/openocd/jimtcl/linenoise.c:233: undefined reference to > `__errno' > /home/Daniel/openocd/jimtcl/linenoise.c:231: undefined reference to > `tcgetattr' > /home/Daniel/openocd/jimtcl/linenoise.c:258: undefined reference to > `tcsetattr' > ../jimtcl/libjim.a(linenoise.o): In function `getWindowSize': > /home/Daniel/openocd/jimtcl/linenoise.c:446: undefined reference to `ioctl' > ../jimtcl/libjim.a(linenoise.o): In function `linenoiseAtExit': > /home/Daniel/openocd/jimtcl/linenoise.c:276: undefined reference to > `tcsetattr' > ../jimtcl/libjim.a(linenoise.o): In function `linenoiseEdit': > /home/Daniel/openocd/jimtcl/linenoise.c:1108: undefined reference to > `__errno' > ../jimtcl/libjim.a(linenoise.o): In function `linenoise': > /home/Daniel/openocd/jimtcl/linenoise.c:1387: undefined reference to > `__getreent' > /home/Daniel/openocd/jimtcl/linenoise.c:1388: undefined reference to > `__getreent' > collect2.exe: error: ld returned 1 exit status > Makefile:553: die Regel für Ziel „openocd.exe“ scheiterte > make[4]: *** [openocd.exe] Fehler 1 > make[4]: Verzeichnis „/home/Daniel/openocd/src“ wird verlassen > Makefile:617: die Regel für Ziel „all-recursive“ scheiterte > make[3]: *** [all-recursive] Fehler 1 > make[3]: Verzeichnis „/home/Daniel/openocd/src“ wird verlassen > Makefile:454: die Regel für Ziel „all“ scheiterte > make[2]: *** [all] Fehler 2 > make[2]: Verzeichnis „/home/Daniel/openocd/src“ wird verlassen > Makefile:511: die Regel für Ziel „all-recursive“ scheiterte > make[1]: *** [all-recursive] Fehler 1 > make[1]: Verzeichnis „/home/Daniel/openocd“ wird verlassen > Makefile:419: die Regel für Ziel „all“ scheiterte > make: *** [all] Fehler 2 > ./configure was started without any arguments Trying to localize the moment of failure, I found that it must happen somewhere here: http://openocd.sourceforge.net/doc/doxygen/html/libusb0__common_8c_source.html#l00068 I think it would help a lot, if there was an openocd-version that prints out the error codes, while not finding any devices. |
From: Xiaofan C. <xia...@gm...> - 2015-02-23 23:15:40
|
On Tue, Feb 24, 2015 at 4:32 AM, Daniel Pfeffer <ma...@da...> wrote: > Trying to localize the moment of failure, I found that it must happen > somewhere here: > http://openocd.sourceforge.net/doc/doxygen/html/libusb0__common_8c_source.html#l00068 > No this has nothing to do with libusb0 since it is using libusb-1.0 API and not libusb-0.1 API. > I think it would help a lot, if there was an openocd-version that prints out > the error codes, while not finding any devices. Maybe you should go back to the basic, can libusb find your device? Download libusb-1.0.19 Windows binary and run xusb against your device (xusb 0483:3748). The output should be something like the following. Please post the output. If you get errors opening the device, run "xusb -d 0483:3748" and post the output. Using libusb v1.0.19.10903 Opening device 0483:3748... Reading device descriptor: length: 18 device class: 0 S/N: 3 VID:PID: 0483:3748 bcdDevice: 0100 iMan:iProd:iSer: 1:2:3 nb confs: 1 Reading BOS descriptor: no descriptor Reading first configuration descriptor: nb interfaces: 1 interface[0]: id = 0 interface[0].altsetting[0]: num endpoints = 3 Class.SubClass.Protocol: FF.FF.FF endpoint[0].address: 81 max packet size: 0040 polling interval: 00 endpoint[1].address: 02 max packet size: 0040 polling interval: 00 endpoint[2].address: 83 max packet size: 0040 polling interval: 00 Claiming interface 0... Reading string descriptors: String (0x01): "STMicroelectronics" String (0x02): "STM32 STLink" String (0x03): "V?mIqTI?" Releasing interface 0... Closing device... -- Xiaofan |
From: Daniel P. <ma...@da...> - 2015-02-24 17:23:58
|
> Maybe you should go back to the basic, can libusb find your device? > > Download libusb-1.0.19 Windows binary and run xusb against your > device (xusb 0483:3748). > Ok, nothing found. > > The output should be something like the following. Please post > the output. If you get errors opening the device, run > "xusb -d 0483:3748" and post the output. > Here's the output: > C:\Users\Daniel\Desktop\examples\bin64>xusb -d 0483:3748 > Using libusb v1.0.19.10905 > > [timestamp] [threadID] facility level [function call] <message> > > -------------------------------------------------------------------------------- > > [ 0.000000] [00000d60] libusb: debug [libusb_init] created default context > [ 0.001002] [00000d60] libusb: debug [libusb_init] libusb v1.0.19.10905 > [ 0.001002] [00000d60] libusb: debug [windows_init] Windows 8.1 64-bit > [ 0.001002] [00000d60] libusb: debug [setup_cancel_io] Will use CancelIoEx > for I > /O cancellation > [ 0.004994] [00000d60] libusb: debug [winusbx_init] using libusbK DLL for > univer > sal access > [ 0.004994] [00000d60] libusb: debug [winusbx_init] libusbK version: > 3.0.7.0 > [ 0.005994] [00000d60] libusb: debug [winusbx_init] initalized sub API > libusbK > [ 0.005994] [00000d60] libusb: debug [winusbx_init] initalized sub API > libusb0 > [ 0.006994] [00000d60] libusb: debug [winusbx_init] initalized sub API > WinUSB > [ 0.006994] [00000150] libusb: debug [windows_clock_gettime_threaded] > hires time > r available (Frequency: 2467772 Hz) > [ 0.008008] [00000d60] libusb: debug [htab_create] using 1021 entries hash > table > > [ 0.008008] [00000d60] libusb: debug [usbi_add_pollfd] add fd 0 events 1 > [ 0.008008] [00000d60] libusb: debug [usbi_add_pollfd] add fd 1 events 1 > Opening device 0483:3748... > [ 0.008994] [00000d60] libusb: debug [libusb_get_device_list] > [ 0.009994] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [3D] > [ 0.009994] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [112] > [ 0.011008] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [21A] > [ 0.011008] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [223] > [ 0.011995] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [322] > [ 0.014478] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [32B] > [ 0.015483] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [1A6] > [ 0.015483] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [384] > [ 0.016495] [00000d60] libusb: debug [get_api_type] driver(s): usbhub > [ 0.017073] [00000d60] libusb: debug [get_api_type] matched driver name > against > HUB API > [ 0.030769] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [2DD] > [ 0.031774] [00000d60] libusb: debug [get_api_type] driver(s): usbhub > [ 0.032041] [00000d60] libusb: debug [get_api_type] matched driver name > against > HUB API > [ 0.032041] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [260] > [ 0.033058] [00000d60] libusb: debug [get_api_type] driver(s): usbhub > [ 0.033058] [00000d60] libusb: debug [get_api_type] matched driver name > against > HUB API > [ 0.041076] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [2CD] > [ 0.042045] [00000d60] libusb: debug [get_api_type] driver(s): usbhub > [ 0.042045] [00000d60] libusb: debug [get_api_type] matched driver name > against > HUB API > [ 0.042045] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [398] > [ 0.043045] [00000d60] libusb: debug [get_api_type] driver(s): usbhub > [ 0.053573] [00000d60] libusb: debug [get_api_type] matched driver name > against > HUB API > [ 0.053573] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [283] > [ 0.054577] [00000d60] libusb: debug [get_api_type] driver(s): usbhub > [ 0.054577] [00000d60] libusb: debug [get_api_type] matched driver name > against > HUB API > [ 0.054577] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [1A8] > [ 0.055576] [00000d60] libusb: debug [get_api_type] driver(s): usbhub > [ 0.055576] [00000d60] libusb: debug [get_api_type] matched driver name > against > HUB API > [ 0.064577] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [2C7] > [ 0.064577] [00000d60] libusb: debug [get_api_type] driver(s): usbhub > [ 0.065577] [00000d60] libusb: debug [get_api_type] matched driver name > against > HUB API > [ 0.065577] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [192] > [ 0.130451] [00000d60] libusb: debug [windows_get_device_list] allocating > new de > vice for session [3F0] > [ 0.131451] [00000d60] libusb: error [init_device] program assertion > failed: una > ble to find ancestor bus number for > '\\.\USB#VID_0BDB&PID_1900&REV_0000&MI_07&OS > _NT&WWAN#01' > [ 0.132697] [00000d60] libusb: debug [libusb_unref_device] destroy device > 1.0 > [ 0.134070] [00000d60] libusb: debug [libusb_unref_device] destroy device > 2.0 > [ 0.135183] [00000d60] libusb: debug [libusb_unref_device] destroy device > 3.0 > [ 0.136249] [00000d60] libusb: debug [libusb_unref_device] destroy device > 4.0 > [ 0.137254] [00000d60] libusb: debug [libusb_unref_device] destroy device > 5.0 > [ 0.138254] [00000d60] libusb: debug [libusb_unref_device] destroy device > 6.0 > [ 0.139264] [00000d60] libusb: debug [libusb_unref_device] destroy device > 7.0 > [ 0.140275] [00000d60] libusb: debug [libusb_unref_device] destroy device > 8.0 > [ 0.141255] [00000d60] libusb: debug [libusb_unref_device] destroy device > 0.0 > [ 0.142255] [00000d60] libusb: debug [libusb_unref_device] destroy device > 0.0 > [ 0.143274] [00000d60] libusb: debug [libusb_unref_device] destroy device > 0.0 > [ 0.144255] [00000d60] libusb: debug [libusb_unref_device] destroy device > 0.0 > [ 0.145255] [00000d60] libusb: debug [libusb_unref_device] destroy device > 0.0 > [ 0.146255] [00000d60] libusb: debug [libusb_unref_device] destroy device > 0.0 > [ 0.148256] [00000d60] libusb: debug [libusb_unref_device] destroy device > 0.0 > [ 0.149275] [00000d60] libusb: debug [libusb_unref_device] destroy device > 0.0 > Failed. > [ 0.151255] [00000d60] libusb: debug [libusb_exit] > [ 0.152255] [00000d60] libusb: debug [libusb_exit] destroying default > context > [ 0.153939] [00000d60] libusb: warning [libusb_exit] some libusb_devices > were le > aked > [ 0.155016] [00000d60] libusb: debug [usbi_remove_pollfd] remove fd 0 > [ 0.156022] [00000d60] libusb: debug [usbi_remove_pollfd] remove fd 1 > [ 0.157041] [00000150] libusb: debug [windows_clock_gettime_threaded] > timer thre > ad quitting > Is this helpful? BTW: I finally managed to build openocd in MSYS2. Using primitive LOG_DEBUG - debugging, I found out, that in libusb1_common.c, in function jtag_libusb_open(...) theres the following problem: > cnt = libusb_get_device_list(jtag_libusb_context, &devs); > > if (cnt < 0) { > LOG_ERROR("cnt: failed with %s", > libusb_error_name(cnt)); > } > cnt get the value -5, which means LIBUSB_ERROR_NOT_FOUND. Maybe that's, what the above output of xusb shows, too. |
From: Daniel P. <ma...@da...> - 2015-02-24 17:48:05
|
> Is this helpful? > > It was! Now everything is working. Ther was apparently some problem whith my WWAN driver for UMTS-Access. There is a bunch of devices listed im my devicemanager with VID_0BDB&PID_1900. After manually disabling all those devices and reinstalling the OEM-driver from ST, everything worked like a charm. Thanks to everyone, who supported me! Someone maybe should have an eye on the problem, that one bad driver was able to interfere with libusb in such a way, that it doesn't want to do anything anymore. I'll be there for reproducing and testing. |
From: Xiaofan C. <xia...@gm...> - 2015-02-25 01:09:23
|
On Wed, Feb 25, 2015 at 1:47 AM, Daniel Pfeffer <ma...@da...> wrote: > It was! Now everything is working. > > Ther was apparently some problem whith my WWAN driver for UMTS-Access. There > is a bunch of devices listed im my devicemanager with VID_0BDB&PID_1900. > After manually disabling all those devices and reinstalling the OEM-driver > from ST, everything worked like a charm. Thanks to everyone, who supported > me! > > Someone maybe should have an eye on the problem, that one bad driver was > able to interfere with libusb in such a way, that it doesn't want to do > anything anymore. I'll be there for reproducing and testing. > Now it is a libusb problem. Please subscribe and post the details to libusb-devel mailing list. Thanks. URL: https://lists.sourceforge.net/lists/listinfo/libusb-devel -- Xiaofan |