From: <s.f...@bm...> - 2024-03-26 15:36:19
|
Thanks. I’ll check them. The -d3 output: Open On-Chip Debugger 0.12.0 (2023-10-02) [https://github.com/sysprogs/openocd] Licensed under GNU GPL v2 libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3 For bug reports, read http://openocd.org/doc/doxygen/bugs.html User : 4 7 options.c:53 configuration_output_handler(): debug_level: 3User : 5 20 options.c:53 configuration_output_handler(): Debug: 6 30 options.c:234 add_default_dirs(): bindir=../../bin Debug: 7 37 options.c:235 add_default_dirs(): pkgdatadir=../../share/openocd Debug: 8 46 options.c:236 add_default_dirs(): exepath=C:/Xojo/VT1/VT1_TestStation1/OpenOCD-0.12.0/bin Debug: 9 57 options.c:237 add_default_dirs(): bin2data=../share/openocd Debug: 10 67 configuration.c:33 add_script_search_dir(): adding C:/Users/fisch/AppData/Roaming/OpenOCD Debug: 11 78 configuration.c:33 add_script_search_dir(): adding C:/Xojo/VT1/VT1_TestStation1/OpenOCD-0.12.0/bin/../share/openocd/site Debug: 12 94 configuration.c:33 add_script_search_dir(): adding C:/Xojo/VT1/VT1_TestStation1/OpenOCD-0.12.0/bin/../share/openocd/scripts Debug: 13 113 command.c:152 script_debug(): command - ocd_find interface/stlink-dap.cfg Debug: 14 131 configuration.c:88 find_file(): found C:/Xojo/VT1/VT1_TestStation1/OpenOCD-0.12.0/bin/../share/openocd/scripts/interface/stlink-dap.cfg Debug: 15 156 command.c:152 script_debug(): command - adapter driver st-link Debug: 16 168 command.c:152 script_debug(): command - st-link vid_pid 0x0483 0x3744 0x0483 0x3748 0x0483 0x374b 0x0483 0x374d 0x0483 0x374e 0x0483 0x374f 0x0483 0x3752 0x0483 0x3753 0x0483 0x3754 0x0483 0x3755 0x0483 0x3757 Debug: 17 199 command.c:152 script_debug(): command - transport select dapdirect_jtag Debug: 18 212 adi_v5_dapdirect.c:177 dapdirect_jtag_select(): dapdirect_jtag_select() User : 19 226 options.c:53 configuration_output_handler(): dapdirect_jtagUser : 20 238 options.c:53 configuration_output_handler(): Debug: 21 248 command.c:152 script_debug(): command - adapter speed 8000 Debug: 22 256 adapter.c:249 adapter_config_khz(): handle adapter khz Debug: 23 267 adapter.c:213 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 24 278 adapter.c:213 adapter_khz_to_speed(): convert khz to adapter specific speed value User : 25 290 options.c:53 configuration_output_handler(): adapter speed: 8000 kHzUser : 26 303 options.c:53 configuration_output_handler(): Debug: 27 313 command.c:152 script_debug(): command - ocd_find target/ti_cc26x2.cfg Debug: 28 322 configuration.c:88 find_file(): found C:/Xojo/VT1/VT1_TestStation1/OpenOCD-0.12.0/bin/../share/openocd/scripts/target/ti_cc26x2.cfg Debug: 29 339 command.c:152 script_debug(): command - ocd_find target/ti_cc26x0.cfg Debug: 30 352 configuration.c:88 find_file(): found C:/Xojo/VT1/VT1_TestStation1/OpenOCD-0.12.0/bin/../share/openocd/scripts/target/ti_cc26x0.cfg Debug: 31 373 command.c:152 script_debug(): command - ocd_find target/icepick.cfg Debug: 32 387 configuration.c:88 find_file(): found C:/Xojo/VT1/VT1_TestStation1/OpenOCD-0.12.0/bin/../share/openocd/scripts/target/icepick.cfg Debug: 33 408 command.c:152 script_debug(): command - ocd_find target/ti-cjtag.cfg Debug: 34 422 configuration.c:88 find_file(): found C:/Xojo/VT1/VT1_TestStation1/OpenOCD-0.12.0/bin/../share/openocd/scripts/target/ti-cjtag.cfg Debug: 35 446 command.c:152 script_debug(): command - jtag newtap cc26x2 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x4BA00477 -disable Debug: 36 465 tcl.c:418 handle_jtag_newtap_args(): Creating New Tap, Chip: cc26x2, Tap: cpu, Dotted: cc26x2.cpu, 9 params Debug: 37 481 core.c:1474 jtag_tap_init(): Created Tap: cc26x2.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf Debug: 38 498 command.c:152 script_debug(): command - jtag configure cc26x2.cpu -event tap-enable icepick_c_tapenable cc26x2.jrc 0 Debug: 39 517 adi_v5_dapdirect.c:33 dapdirect_jtag_empty_command(): dapdirect_jtag_empty_command("configure") Debug: 40 532 command.c:152 script_debug(): command - jtag newtap cc26x2 jrc -irlen 6 -ircapture 0x1 -irmask 0x3f -expected-id 0x0BB4102F -ignore-version Debug: 41 552 tcl.c:418 handle_jtag_newtap_args(): Creating New Tap, Chip: cc26x2, Tap: jrc, Dotted: cc26x2.jrc, 9 params Debug: 42 570 core.c:1474 jtag_tap_init(): Created Tap: cc26x2.jrc @ abs position 1, irlen 6, capture: 0x1 mask: 0x3f Debug: 43 589 command.c:152 script_debug(): command - jtag configure cc26x2.jrc -event setup jtag tapenable cc26x2.cpu Debug: 44 612 adi_v5_dapdirect.c:33 dapdirect_jtag_empty_command(): dapdirect_jtag_empty_command("configure") Debug: 45 628 command.c:152 script_debug(): command - jtag configure cc26x2.jrc -event post-reset ti_cjtag_to_4pin_jtag cc26x2.jrc Debug: 46 647 adi_v5_dapdirect.c:33 dapdirect_jtag_empty_command(): dapdirect_jtag_empty_command("configure") Debug: 47 663 command.c:152 script_debug(): command - dap create cc26x2.dap -chain-position cc26x2.cpu Debug: 48 678 command.c:152 script_debug(): command - target create cc26x2.cpu cortex_m -dap cc26x2.dap Debug: 49 693 command.c:286 register_command(): command 'tpiu' is already registered Debug: 50 701 command.c:286 register_command(): command 'rtt' is already registered Debug: 51 713 command.c:152 script_debug(): command - cc26x2.cpu configure -work-area-phys 0x20000000 -work-area-size 0x7000 -work-area-backup 0 Debug: 52 731 target.c:2171 target_free_all_working_areas_restore(): freeing all working areas Debug: 53 745 target.c:2171 target_free_all_working_areas_restore(): freeing all working areas Debug: 54 755 target.c:2171 target_free_all_working_areas_restore(): freeing all working areas Debug: 55 770 command.c:152 script_debug(): command - flash bank cc26x2.flash cc26xx 0 0 0 0 cc26x2.cpu Debug: 56 788 tcl.c:1306 handle_flash_bank_command(): 'cc26xx' driver usage field missing Debug: 57 804 command.c:152 script_debug(): command - cortex_m reset_config vectreset User : 58 818 options.c:53 configuration_output_handler(): cortex_m reset_config vectresetUser : 59 831 options.c:53 configuration_output_handler(): Info : 60 839 server.c:297 add_service(): Listening on port 6666 for tcl connections Info : 61 854 server.c:297 add_service(): Listening on port 4444 for telnet connections Debug: 62 869 command.c:152 script_debug(): command - init Debug: 63 881 command.c:152 script_debug(): command - target init Debug: 64 889 command.c:152 script_debug(): command - target names Debug: 65 903 command.c:152 script_debug(): command - cc26x2.cpu cget -event gdb-flash-erase-start Debug: 66 920 command.c:152 script_debug(): command - cc26x2.cpu configure -event gdb-flash-erase-start reset init Debug: 67 942 command.c:152 script_debug(): command - cc26x2.cpu cget -event gdb-flash-write-end Debug: 68 953 command.c:152 script_debug(): command - cc26x2.cpu configure -event gdb-flash-write-end reset halt Debug: 69 967 command.c:152 script_debug(): command - cc26x2.cpu cget -event gdb-attach Debug: 70 979 command.c:152 script_debug(): command - cc26x2.cpu configure -event gdb-attach halt 1000 Debug: 71 995 target.c:1629 handle_target_init_command(): Initializing targets... Debug: 72 1006 semihosting_common.c:107 semihosting_common_init(): Debug: 73 1019 stlink_usb.c:5120 stlink_dap_init(): stlink_dap_init() Debug: 74 1029 stlink_usb.c:3732 stlink_open(): stlink_open Debug: 75 1037 stlink_usb.c:3744 stlink_open(): transport: 3 vid: 0x0483 pid: 0x3744 serial: Debug: 76 1050 stlink_usb.c:3744 stlink_open(): transport: 3 vid: 0x0483 pid: 0x3748 serial: Debug: 77 1063 stlink_usb.c:3744 stlink_open(): transport: 3 vid: 0x0483 pid: 0x374b serial: Debug: 78 1073 stlink_usb.c:3744 stlink_open(): transport: 3 vid: 0x0483 pid: 0x374d serial: Debug: 79 1086 stlink_usb.c:3744 stlink_open(): transport: 3 vid: 0x0483 pid: 0x374e serial: Debug: 80 1099 stlink_usb.c:3744 stlink_open(): transport: 3 vid: 0x0483 pid: 0x374f serial: Debug: 81 1113 stlink_usb.c:3744 stlink_open(): transport: 3 vid: 0x0483 pid: 0x3752 serial: Debug: 82 1129 stlink_usb.c:3744 stlink_open(): transport: 3 vid: 0x0483 pid: 0x3753 serial: Debug: 83 1138 stlink_usb.c:3744 stlink_open(): transport: 3 vid: 0x0483 pid: 0x3754 serial: Debug: 84 1153 stlink_usb.c:3744 stlink_open(): transport: 3 vid: 0x0483 pid: 0x3755 serial: Debug: 85 1169 stlink_usb.c:3744 stlink_open(): transport: 3 vid: 0x0483 pid: 0x3757 serial: Info : 86 1226 stlink_usb.c:1471 stlink_usb_version(): STLINK V4J2B1S0 (API v3) VID:PID 0483:3757 Debug: 87 1238 stlink_usb.c:1696 stlink_usb_exit_mode(): MODE: 0x01 Info : 88 1246 stlink_usb.c:1507 stlink_usb_check_voltage(): Target voltage: 3.263297 Debug: 89 1258 stlink_usb.c:1764 stlink_usb_init_mode(): MODE: 0x01 Debug: 90 1269 stlink_usb.c:3130 stlink_dump_speed_map(): Supported clock speeds are: Debug: 91 1280 stlink_usb.c:3133 stlink_dump_speed_map(): 28571 kHz Debug: 92 1291 stlink_usb.c:3133 stlink_dump_speed_map(): 20000 kHz Debug: 93 1303 stlink_usb.c:3133 stlink_dump_speed_map(): 16666 kHz Debug: 94 1312 stlink_usb.c:3133 stlink_dump_speed_map(): 12500 kHz Debug: 95 1322 stlink_usb.c:3133 stlink_dump_speed_map(): 8000 kHz Debug: 96 1333 stlink_usb.c:3133 stlink_dump_speed_map(): 2000 kHz Debug: 97 1341 stlink_usb.c:3133 stlink_dump_speed_map(): 800 kHz Debug: 98 1354 stlink_usb.c:1132 stlink_usb_error_check(): unknown/unexpected STLINK status code 0x5 Error: 99 1368 stlink_usb.c:3787 stlink_open(): init mode failed (unable to connect to the target) Debug: 100 1383 stlink_usb.c:1696 stlink_usb_exit_mode(): MODE: 0x01 Debug: 101 1396 command.c:541 run_command(): Command 'init' failed with error code -4 User : 102 1405 command.c:613 command_run_line(): Debug: 103 1415 target.c:2171 target_free_all_working_areas_restore(): freeing all working areas BR Sebastian From: Tommy Murphy <tom...@ho...> Sent: Tuesday, 26 March 2024 16:33 To: s.f...@bm...; ope...@li... Subject: Re: [OpenOCD-user] STLink problem Anything useful here? * https://stackoverflow.com/questions/57628401/eclipse-error-init-mode-failed-unable-to-connect-to-the-target * https://community.st.com/t5/stm32-mcus-wireless/getting-quot-error-init-mode-failed-unable-to-connect-to-the/td-p/109264 * https://community.platformio.org/t/stmf4discovery-board-init-mode-failed-unable-to-connect-to-the-target/22709 * https://github.com/platformio/platform-ststm32/issues/641 If not, then the next step is most likely to provide a verbose `openocd -d3` log for your attempted debug session as it may shed more light on what's going on/wrong. |