Open newsy5 opened 1 year ago
Can you share the log from the esp-usb-bridge as well? It would be interesting to see if there are any error reported prior to the error coming from openocd.
Are you able to debug the same device by any other means that the esp-usb-bridge (same device, same openocd)?
Can you share the log from the esp-usb-bridge as well? It would be interesting to see if there are any error reported prior to the error coming from openocd.
Are you able to debug the same device by any other means that the esp-usb-bridge (same device, same openocd)?
I would love to, but how do I get a log with esp?
Are you able to debug the same device by any other means that the esp-usb-bridge (same device, same openocd)?
unfortunately I don't have another programmer
I would love to, but how do I get a log with esp?
The native USB connected to D+, D- is used by the bridge communication (JTAG) in your case. But you can connect to the UART (RxD, TxD) a terminal program. You will see the log there.
unfortunately I don't have another programmer
I would recommend to try find one. Because you can loose a lot of time try to debug the bridge if the issue is not there.
The native USB connected to D+, D- is used by the bridge communication (JTAG) in your case. But you can connect to the UART (RxD, TxD) a terminal program. You will see the log there.
do you mean that when I connect the esp, I have two devices, one jtag and the second com port? I tried to connect to com port speed 9600 and 115200, but there was nothing on the termen
do you mean that when I connect the esp,
Two connections are needed, not one.
- One USB connection through the connector connecting to D+ and D-.
- Another USB connection to the RxD, TxD signals through an UART-to-USB bridge.
ok, which pin should I connect to the esp
I (21) boot: ESP-IDF v5.0.1 2nd stage bootloader I (21) boot: compile time 17:24:36 I (21) boot: chip revision: v0.0 I (24) boot.esp32s2: SPI Speed : 80MHz I (29) boot.esp32s2: SPI Mode : DIO I (33) boot.esp32s2: SPI Flash Size : 2MB I (38) boot: Enabling RNG early entropy source... I (44) boot: Partition Table: I (47) boot: ## Label Usage Type ST Offset Length I (54) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (62) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (69) boot: 2 factory factory app 00 00 00010000 00100000 I (77) boot: End of partition table I (81) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=0acd8h ( 44248) map I (98) esp_image: segment 1: paddr=0001ad00 vaddr=3ffbf100 size=02each ( 11948) load I (101) esp_image: segment 2: paddr=0001dbb4 vaddr=40022000 size=02464h ( 9316) load I (109) esp_image: segment 3: paddr=00020020 vaddr=40080020 size=21a90h (137872) map I (142) esp_image: segment 4: paddr=00041ab8 vaddr=40024464 size=0ac9ch ( 44188) load I (160) boot: Loaded app from partition at offset 0x10000 I (160) boot: Disabling RNG early entropy source... I (172) cache: Instruction cache : size 8KB, 4Ways, cache line size 32Byte I (172) cpu_start: Pro cpu up. I (191) cpu_start: Pro cpu start user code I (191) cpu_start: cpu freq: 160000000 Hz I (191) cpu_start: Application information: I (194) cpu_start: Project name: bridge I (199) cpu_start: App version: 30b8d93-dirty I (204) cpu_start: Compile time: May 3 2023 17:24:40 I (210) cpu_start: ELF file SHA256: 4b3ca6157c003c04... I (216) cpu_start: ESP-IDF: v5.0.1 I (221) cpu_start: Min chip rev: v0.0 I (226) cpu_start: Max chip rev: v1.99 I (231) cpu_start: Chip rev: v0.0 I (235) heap_init: Initializing. RAM available for dynamic allocation: I (243) heap_init: At 3FFC3918 len 000386E8 (225 KiB): DRAM I (249) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM I (255) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAM I (262) spi_flash: detected chip: generic I (266) spi_flash: flash io: dio W (270) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header. I (283) esp_core_dump_uart: Init core dump to UART I (289) cpu_start: Starting scheduler on PRO CPU. I (294) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (294) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (304) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (314) bridge_main: LED GPIO init done I (324) bridge_msc: MSC disk RAM usage: 698 bytes I (324) uart: queue free spaces: 20 I (334) gpio: GPIO[7]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 I (344) gpio: GPIO[4]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0 I (354) bridge_serial: UART & GPIO have been initialized I (354) gpio: GPIO[3]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (364) gpio: GPIO[8]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (374) gpio: GPIO[10]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (384) gpio: GPIO[9]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (394) bridge_jtag: JTAG GPIO init done I (544) bridge_jtag: Mounted I (584) bridge_serial: DTR = 0, RTS = 0 -> BOOT = 1, RST = 1 I (24824) bridge_jtag: bRequest: (3) wValue: (0) wIndex: (0) I (24824) bridge_jtag: bRequest: (0) wValue: (1) wIndex: (0) "!!!! this line appeared during the firmware"
@newsy5 Can you run openocd with -d3 option to see the verbose debug logs? Until now, I didn't connect any arm chip to the bridge. I will try to test it soon. We use esp_usb_jtag protocol for the jtag communication, maybe it requires some adjustment.
C:\my\openocd-esp32\bin>openocd.exe -d3 Open On-Chip Debugger v0.12.0-esp32-20230419 (2023-04-18-22:02) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html User : 3 7 options.c:52 configuration_output_handler(): debug_level: 3User : 4 25 options.c:52 configuration_output_handler(): Debug: 5 41 options.c:233 add_default_dirs(): bindir=/builds/idf/openocd-esp32/_build/../openocd-esp32/bin Debug: 6 69 options.c:234 add_default_dirs(): pkgdatadir=/builds/idf/openocd-esp32/_build/../openocd-esp32/share/openocd Debug: 7 101 options.c:235 add_default_dirs(): exepath=C:/my/openocd-esp32/bin Debug: 8 123 options.c:236 add_default_dirs(): bin2data=../share/openocd Debug: 9 143 configuration.c:33 add_script_search_dir(): adding C:/Users/vladi/AppData/Roaming/OpenOCD Debug: 10 171 configuration.c:33 add_script_search_dir(): adding C:/my/openocd-esp32/bin/../share/openocd/site Debug: 11 200 configuration.c:33 add_script_search_dir(): adding C:/my/openocd-esp32/bin/../share/openocd/scripts Debug: 12 231 command.c:152 script_debug(): command - ocd_find openocd.cfg Debug: 13 252 configuration.c:88 find_file(): found openocd.cfg Debug: 14 274 command.c:152 script_debug(): command - adapter driver esp_usb_jtag Info : 15 296 transport.c:107 allow_transports(): only one transport option; autoselecting 'jtag' Debug: 16 322 command.c:152 script_debug(): command - espusbjtag vid_pid 0x303a 0x1002 Info : 17 346 esp_usb_jtag.c:894 esp_usb_jtag_vid_pid(): esp_usb_jtag: VID set to 0x303a and PID to 0x1002 Debug: 18 374 command.c:152 script_debug(): command - espusbjtag caps_descriptor 0x030A Info : 19 398 esp_usb_jtag.c:905 esp_usb_jtag_caps_descriptor(): esp_usb_jtag: capabilities descriptor set to 0x30a Debug: 20 430 command.c:152 script_debug(): command - adapter speed 1000 Debug: 21 449 adapter.c:253 adapter_config_khz(): handle adapter khz Debug: 22 467 adapter.c:217 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 23 493 adapter.c:217 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 24 521 command.c:152 script_debug(): command - ocd_find target/ti_cc26x2.cfg Debug: 25 544 configuration.c:88 find_file(): found C:/my/openocd-esp32/bin/../share/openocd/scripts/target/ti_cc26x2.cfg Debug: 26 578 command.c:152 script_debug(): command - ocd_find target/ti_cc26x0.cfg Debug: 27 601 configuration.c:88 find_file(): found C:/my/openocd-esp32/bin/../share/openocd/scripts/target/ti_cc26x0.cfg Debug: 28 633 command.c:152 script_debug(): command - ocd_find target/icepick.cfg Debug: 29 657 configuration.c:88 find_file(): found C:/my/openocd-esp32/bin/../share/openocd/scripts/target/icepick.cfg Debug: 30 689 command.c:152 script_debug(): command - ocd_find target/ti-cjtag.cfg Debug: 31 712 configuration.c:88 find_file(): found C:/my/openocd-esp32/bin/../share/openocd/scripts/target/ti-cjtag.cfg Debug: 32 747 command.c:152 script_debug(): command - jtag newtap cc26x2 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x4BA00477 -disable Debug: 33 788 tcl.c:562 jim_newtap_cmd(): Creating New Tap, Chip: cc26x2, Tap: cpu, Dotted: cc26x2.cpu, 9 params Debug: 34 819 tcl.c:579 jim_newtap_cmd(): Processing option: -irlen Debug: 35 837 tcl.c:579 jim_newtap_cmd(): Processing option: -ircapture Debug: 36 857 tcl.c:579 jim_newtap_cmd(): Processing option: -irmask Debug: 37 876 tcl.c:579 jim_newtap_cmd(): Processing option: -expected-id Debug: 38 896 tcl.c:579 jim_newtap_cmd(): Processing option: -disable Debug: 39 915 core.c:1478 jtag_tap_init(): Created Tap: cc26x2.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf Debug: 40 946 command.c:152 script_debug(): command - jtag configure cc26x2.cpu -event tap-enable icepick_c_tapenable cc26x2.jrc 0 Debug: 41 981 command.c:152 script_debug(): command - jtag newtap cc26x2 jrc -irlen 6 -ircapture 0x1 -irmask 0x3f -expected-id 0x0BB4102F -ignore-version Debug: 42 1025 tcl.c:562 jim_newtap_cmd(): Creating New Tap, Chip: cc26x2, Tap: jrc, Dotted: cc26x2.jrc, 9 params Debug: 43 1056 tcl.c:579 jim_newtap_cmd(): Processing option: -irlen Debug: 44 1075 tcl.c:579 jim_newtap_cmd(): Processing option: -ircapture Debug: 45 1094 tcl.c:579 jim_newtap_cmd(): Processing option: -irmask Debug: 46 1113 tcl.c:579 jim_newtap_cmd(): Processing option: -expected-id Debug: 47 1133 tcl.c:579 jim_newtap_cmd(): Processing option: -ignore-version Debug: 48 1155 core.c:1478 jtag_tap_init(): Created Tap: cc26x2.jrc @ abs position 1, irlen 6, capture: 0x1 mask: 0x3f Debug: 49 1186 command.c:152 script_debug(): command - jtag configure cc26x2.jrc -event setup jtag tapenable cc26x2.cpu Debug: 50 1221 command.c:152 script_debug(): command - jtag configure cc26x2.jrc -event post-reset ti_cjtag_to_4pin_jtag cc26x2.jrc Debug: 51 1260 command.c:152 script_debug(): command - dap create cc26x2.dap -chain-position cc26x2.cpu Debug: 52 1291 command.c:152 script_debug(): command - target create cc26x2.cpu cortex_m -dap cc26x2.dap Debug: 53 1323 command.c:286 register_command(): command 'tpiu' is already registered Debug: 54 1347 command.c:286 register_command(): command 'rtt' is already registered Debug: 55 1373 command.c:152 script_debug(): command - cc26x2.cpu configure -work-area-phys 0x20000000 -work-area-size 0x7000 -work-area-backup 0 Debug: 56 1415 target.c:2223 target_free_all_working_areas_restore(): freeing all working areas Debug: 57 1445 target.c:2223 target_free_all_working_areas_restore(): freeing all working areas Debug: 58 1474 target.c:2223 target_free_all_working_areas_restore(): freeing all working areas Debug: 59 1502 command.c:152 script_debug(): command - flash bank cc26x2.flash cc26xx 0 0 0 0 cc26x2.cpu Debug: 60 1534 tcl.c:1305 handle_flash_bank_command(): 'cc26xx' driver usage field missing Debug: 61 1561 command.c:152 script_debug(): command - cortex_m reset_config vectreset Debug: 62 1587 command.c:152 script_debug(): command - reset_config none User : 63 1609 options.c:52 configuration_output_handler(): none separateUser : 64 1633 options.c:52 configuration_output_handler(): Info : 65 1652 server.c:298 add_service(): Listening on port 6666 for tcl connections Info : 66 1684 server.c:298 add_service(): Listening on port 4444 for telnet connections Debug: 67 1708 command.c:152 script_debug(): command - init Debug: 68 1725 command.c:152 script_debug(): command - target init Debug: 69 1744 command.c:152 script_debug(): command - target names Debug: 70 1764 command.c:152 script_debug(): command - cc26x2.cpu cget -event gdb-flash-erase-start Debug: 71 1792 command.c:152 script_debug(): command - cc26x2.cpu configure -event gdb-flash-erase-start reset init Debug: 72 1826 command.c:152 script_debug(): command - cc26x2.cpu cget -event gdb-flash-write-end Debug: 73 1855 command.c:152 script_debug(): command - cc26x2.cpu configure -event gdb-flash-write-end reset halt Debug: 74 1888 command.c:152 script_debug(): command - cc26x2.cpu cget -event gdb-attach Debug: 75 1916 command.c:152 script_debug(): command - cc26x2.cpu configure -event gdb-attach halt 1000 Debug: 76 1947 target.c:1657 handle_target_init_command(): Initializing targets... Debug: 77 1973 semihosting_common.c:107 semihosting_common_init(): Info : 78 2132 esp_usb_jtag.c:661 esp_usb_jtag_init(): esp_usb_jtag: serial (4827E24B37E4) Debug: 79 2164 libusb_helper.c:326 jtag_libusb_choose_interface(): usb ep out 03 Debug: 80 2188 libusb_helper.c:326 jtag_libusb_choose_interface(): usb ep in 83 Debug: 81 2210 libusb_helper.c:334 jtag_libusb_choose_interface(): Claiming interface 2 Info : 82 2237 esp_usb_jtag.c:736 esp_usb_jtag_init(): esp_usb_jtag: Device found. Base speed 4800KHz, div range 1 to 1 Debug: 83 2271 adapter.c:217 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 84 2300 adapter.c:221 adapter_khz_to_speed(): have adapter set up Debug: 85 2322 esp_usb_jtag.c:795 esp_usb_jtag_khz(): Divisor for 1000 KHz with base clock of 4800 khz is 4 Debug: 86 2354 esp_usb_jtag.c:811 esp_usb_jtag_speed(): esp_usb_jtag: setting divisor 1 Debug: 87 2380 adapter.c:217 adapter_khz_to_speed(): convert khz to adapter specific speed value Debug: 88 2408 adapter.c:221 adapter_khz_to_speed(): have adapter set up Debug: 89 2431 esp_usb_jtag.c:795 esp_usb_jtag_khz(): Divisor for 1000 KHz with base clock of 4800 khz is 4 Info : 90 2464 adapter.c:181 adapter_init(): clock speed 4800 kHz Debug: 91 2485 openocd.c:133 handle_init_command(): Debug Adapter init complete Debug: 92 2510 command.c:152 script_debug(): command - transport init Debug: 93 2532 transport.c:219 handle_transport_init(): handle_transport_init Debug: 94 2557 core.c:718 legacy_jtag_add_reset(): SRST line released Debug: 95 2578 core.c:742 legacy_jtag_add_reset(): TRST line released Debug: 96 2600 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 97 2623 tcl.c:642 jtag_tap_handle_event(): JTAG tap: cc26x2.jrc event: 0 (post-reset) action: ti_cjtag_to_4pin_jtag cc26x2.jrc Debug: 98 2665 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x3f -endstate RUN/IDLE Debug: 99 2694 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 100 2727 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRUPDATE RUN/IDLE Debug: 101 2757 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 102 2793 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRUPDATE RUN/IDLE Debug: 103 2821 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 104 2851 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DREXIT1 DRUPDATE RUN/IDLE Debug: 105 2883 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 106 2913 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRUPDATE RUN/IDLE Debug: 107 2948 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 108 2983 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE Debug: 109 3018 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE Debug: 110 3050 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE Debug: 111 3084 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE Debug: 112 3117 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DREXIT1 DRPAUSE Debug: 113 3148 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRUPDATE RUN/IDLE Debug: 114 3178 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 115 3211 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x3f -endstate RUN/IDLE Debug: 116 3240 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x04 -endstate RUN/IDLE Debug: 117 3275 command.c:152 script_debug(): command - jtag arp_init Debug: 118 3296 core.c:1509 jtag_init_inner(): Init JTAG chain Debug: 119 3316 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 120 3339 tcl.c:642 jtag_tap_handle_event(): JTAG tap: cc26x2.jrc event: 0 (post-reset) action: ti_cjtag_to_4pin_jtag cc26x2.jrc Debug: 121 3378 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x3f -endstate RUN/IDLE Debug: 122 3406 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 123 3436 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRUPDATE RUN/IDLE Debug: 124 3464 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 125 3496 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRUPDATE RUN/IDLE Debug: 126 3526 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 127 3559 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DREXIT1 DRUPDATE RUN/IDLE Debug: 128 3593 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 129 3624 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRUPDATE RUN/IDLE Debug: 130 3660 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 131 3692 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE Debug: 132 3725 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE Debug: 133 3759 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE Debug: 134 3792 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE Debug: 135 3826 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DREXIT1 DRPAUSE Debug: 136 3857 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRUPDATE RUN/IDLE Debug: 137 3885 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 138 3916 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x3f -endstate RUN/IDLE Debug: 139 3944 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x04 -endstate RUN/IDLE Debug: 140 3971 core.c:1234 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS Debug: 141 3996 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset Debug: 142 4019 tcl.c:642 jtag_tap_handle_event(): JTAG tap: cc26x2.jrc event: 0 (post-reset) action: ti_cjtag_to_4pin_jtag cc26x2.jrc Debug: 143 4059 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x3f -endstate RUN/IDLE Debug: 144 4090 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 145 4120 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRUPDATE RUN/IDLE Debug: 146 4150 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 147 4181 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRUPDATE RUN/IDLE Debug: 148 4208 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 149 4239 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DREXIT1 DRUPDATE RUN/IDLE Debug: 150 4274 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 151 4307 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRUPDATE RUN/IDLE Debug: 152 4344 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 153 4376 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE Debug: 154 4409 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE Debug: 155 4444 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE Debug: 156 4477 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DRSHIFT DREXIT1 DRPAUSE Debug: 157 4511 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRSHIFT DREXIT1 DRPAUSE Debug: 158 4544 command.c:152 script_debug(): command - pathmove DRPAUSE DREXIT2 DRUPDATE RUN/IDLE Debug: 159 4575 command.c:152 script_debug(): command - pathmove RUN/IDLE DRSELECT DRCAPTURE DREXIT1 DRPAUSE Debug: 160 4607 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x3f -endstate RUN/IDLE Debug: 161 4637 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x04 -endstate RUN/IDLE Info : 162 4666 core.c:1133 jtag_examine_chain_display(): JTAG tap: cc26x2.jrc tap/device found: 0x3bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x3) Debug: 163 4713 core.c:1364 jtag_validate_ircapture(): IR capture validation scan Debug: 164 4741 core.c:1422 jtag_validate_ircapture(): cc26x2.jrc: IR capture 0x01 Debug: 165 4766 tcl.c:642 jtag_tap_handle_event(): JTAG tap: cc26x2.jrc event: 1 (setup) action: jtag tapenable cc26x2.cpu Debug: 166 4803 command.c:152 script_debug(): command - jtag tapenable cc26x2.cpu Debug: 167 4827 tcl.c:642 jtag_tap_handle_event(): JTAG tap: cc26x2.cpu event: 2 (tap-enable) action: icepick_c_tapenable cc26x2.jrc 0 Debug: 168 4870 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x07 -endstate IRPAUSE Debug: 169 4899 command.c:152 script_debug(): command - drscan cc26x2.jrc 8 0x89 -endstate DRPAUSE Debug: 170 4930 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x02 -endstate IRPAUSE Debug: 171 4960 command.c:152 script_debug(): command - drscan cc26x2.jrc 32 2164264960 -endstate DRPAUSE Debug: 172 4990 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x02 -endstate IRPAUSE Debug: 173 5016 command.c:152 script_debug(): command - drscan cc26x2.jrc 32 2685468744 -endstate DRPAUSE Debug: 174 5045 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x02 -endstate IRPAUSE Debug: 175 5073 command.c:152 script_debug(): command - drscan cc26x2.jrc 32 2685476936 -endstate DRPAUSE Debug: 176 5102 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x02 -endstate IRPAUSE Debug: 177 5130 command.c:152 script_debug(): command - drscan cc26x2.jrc 32 2685477192 -endstate DRPAUSE Debug: 178 5161 command.c:152 script_debug(): command - irscan cc26x2.jrc 0x00 -endstate RUN/IDLE Debug: 179 5188 command.c:152 script_debug(): command - runtest 10 Info : 180 5209 tcl.c:663 jtag_tap_handle_event(): JTAG tap: cc26x2.cpu enabled Debug: 181 5233 core.c:328 jtag_call_event_callbacks(): jtag event: TAP enabled Debug: 182 5258 command.c:152 script_debug(): command - dap init Debug: 183 5279 arm_dap.c:97 dap_init_all(): Initializing all DAPs ... Debug: 184 5301 arm_dap.c:121 dap_init_all(): DAP cc26x2.cpu configured by default to use ADIv5 protocol Debug: 185 5332 arm_adi_v5.c:679 dap_dp_init(): cc26x2.dap Debug: 186 5350 arm_adi_v5.c:711 dap_dp_init(): DAP: wait CDBGPWRUPACK Debug: 187 5373 arm_adi_v5.h:639 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000 Debug: 188 5407 arm_adi_v5.c:719 dap_dp_init(): DAP: wait CSYSPWRUPACK Debug: 189 5427 arm_adi_v5.h:639 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000 Debug: 190 5461 openocd.c:150 handle_init_command(): Examining targets... Debug: 191 5482 target.c:1845 target_call_event_callbacks(): target event 19 (examine-start) for core cc26x2.cpu Debug: 192 5516 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 1 Debug: 193 5539 arm_adi_v5.c:1040 dap_find_get_ap(): Found MEM-AP AHB3 at AP index: 0 (IDR=0x24770011) Debug: 194 5572 arm_adi_v5.c:826 mem_ap_init(): MEM_AP Packed Transfers: enabled Debug: 195 5595 arm_adi_v5.c:837 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0 Debug: 196 5628 target.c:2674 target_read_u32(): address: 0xe000ed00, value: 0x410fc241 Info : 197 5653 cortex_m.c:2557 cortex_m_examine(): [cc26x2.cpu] Cortex-M4 r0p1 processor detected Debug: 198 5683 cortex_m.c:2569 cortex_m_examine(): [cc26x2.cpu] cpuid: 0x410fc241 Debug: 199 5710 target.c:2674 target_read_u32(): address: 0xe000ef40, value: 0x10110021 Debug: 200 5736 target.c:2674 target_read_u32(): address: 0xe000ef44, value: 0x11000011 Debug: 201 5761 cortex_m.c:2577 cortex_m_examine(): [cc26x2.cpu] Cortex-M4 floating point feature FPv4_SP found Debug: 202 5796 target.c:2674 target_read_u32(): address: 0xe000edf0, value: 0x03010000 Debug: 203 5822 cortex_m.c:2626 cortex_m_examine(): [cc26x2.cpu] reset happened some time ago, ignore Debug: 204 5851 target.c:2762 target_write_u32(): address: 0xe000edf0, value: 0xa05f0001 Debug: 205 5879 target.c:2762 target_write_u32(): address: 0xe000edfc, value: 0x01000000 Debug: 206 5909 target.c:2674 target_read_u32(): address: 0xe0002000, value: 0x00000260 Debug: 207 5936 target.c:2762 target_write_u32(): address: 0xe0002008, value: 0x00000000 Debug: 208 5965 target.c:2762 target_write_u32(): address: 0xe000200c, value: 0x00000000 Debug: 209 5992 target.c:2762 target_write_u32(): address: 0xe0002010, value: 0x00000000 Debug: 210 6019 target.c:2762 target_write_u32(): address: 0xe0002014, value: 0x00000000 Debug: 211 6046 target.c:2762 target_write_u32(): address: 0xe0002018, value: 0x00000000 Debug: 212 6074 target.c:2762 target_write_u32(): address: 0xe000201c, value: 0x00000000 Debug: 213 6101 target.c:2762 target_write_u32(): address: 0xe0002020, value: 0x00000000 Debug: 214 6127 target.c:2762 target_write_u32(): address: 0xe0002024, value: 0x00000000 Debug: 215 6152 cortex_m.c:2676 cortex_m_examine(): [cc26x2.cpu] FPB fpcr 0x260, numcode 6, numlit 2 Debug: 216 6180 target.c:2674 target_read_u32(): address: 0xe0001000, value: 0x40000000 Debug: 217 6204 cortex_m.c:2372 cortex_m_dwt_setup(): [cc26x2.cpu] DWT_CTRL: 0x40000000 Debug: 218 6232 target.c:2674 target_read_u32(): address: 0xe0001fbc, value: 0x00000000 Debug: 219 6257 cortex_m.c:2379 cortex_m_dwt_setup(): [cc26x2.cpu] DWT_DEVARCH: 0x0 Debug: 220 6283 target.c:2762 target_write_u32(): address: 0xe0001028, value: 0x00000000 Debug: 221 6312 target.c:2762 target_write_u32(): address: 0xe0001038, value: 0x00000000 Debug: 222 6341 target.c:2762 target_write_u32(): address: 0xe0001048, value: 0x00000000 Debug: 223 6367 target.c:2762 target_write_u32(): address: 0xe0001058, value: 0x00000000 Debug: 224 6395 cortex_m.c:2428 cortex_m_dwt_setup(): [cc26x2.cpu] DWT dwtcr 0x40000000, comp 4, watch/trigger Info : 225 6426 cortex_m.c:2685 cortex_m_examine(): [cc26x2.cpu] target has 6 breakpoints, 4 watchpoints Debug: 226 6461 target.c:1845 target_call_event_callbacks(): target event 21 (examine-end) for core cc26x2.cpu Debug: 227 6508 command.c:152 script_debug(): command - flash init Debug: 228 6528 log.c:416 gdb_timeout_warning(): keep_alive() was not invoked in the 1000 ms timelimit (1399 ms). This may cause trouble with GDB connections. Debug: 229 6574 tcl.c:1362 handle_flash_init_command(): Initializing flash devices... Debug: 230 6600 command.c:152 script_debug(): command - nand init Debug: 231 6621 tcl.c:487 handle_nand_init_command(): Initializing NAND devices... Debug: 232 6646 command.c:152 script_debug(): command - pld init Debug: 233 6665 pld.c:194 handle_pld_init_command(): Initializing PLDs... Debug: 234 6688 command.c:152 script_debug(): command - tpiu init Info : 235 6709 gdb_server.c:3797 gdb_target_start(): starting gdb server for cc26x2.cpu on 3333 Info : 236 6738 server.c:298 add_service(): Listening on port 3333 for gdb connections Info : 237 10175 server.c:90 add_connection(): accepting 'telnet' connection on tcp/4444 Debug: 238 31694 command.c:152 script_debug(): command - halt Debug: 239 31710 target.c:3349 handle_halt_command(): - Debug: 240 31727 cortex_m.c:1089 cortex_m_halt_one(): [cc26x2.cpu] target->state: running Debug: 241 31755 cortex_m.c:786 cortex_m_debug_entry(): [cc26x2.cpu] Debug: 242 31780 cortex_m.c:527 cortex_m_clear_halt(): [cc26x2.cpu] NVIC_DFSR 0x1 Debug: 243 31816 cortex_m.c:329 cortex_m_fast_read_all_regs(): [cc26x2.cpu] read 53 32-bit registers Debug: 244 31842 cortex_m.c:864 cortex_m_debug_entry(): [cc26x2.cpu] entered debug state in core mode: Thread at PC 0x10000994, cpu in Non-Secure state, target->state: halted Debug: 245 31889 target.c:1845 target_call_event_callbacks(): target event 0 (gdb-halt) for core cc26x2.cpu Debug: 246 31920 target.c:1845 target_call_event_callbacks(): target event 1 (halted) for core cc26x2.cpu User : 247 31952 armv7m.c:752 armv7m_arch_state(): [cc26x2.cpu] halted due to debug-request, current mode: Thread xPSR: 0x81000000 pc: 0x10000994 msp: 0x20000fdc Debug: 248 35861 command.c:152 script_debug(): command - flash write_image erase ptvo.switch-zr02.hex Debug: 249 35925 configuration.c:88 find_file(): found ptvo.switch-zr02.hex Debug: 250 35945 image.c:76 autodetect_image_type(): IHEX image detected. Debug: 251 35967 configuration.c:88 find_file(): found ptvo.switch-zr02.hex Debug: 252 36141 target.c:2674 target_read_u32(): address: 0x50001318, value: 0x3bb4102f Debug: 253 36178 target.c:2674 target_read_u32(): address: 0x50001294, value: 0x3202f000 Debug: 254 36206 target.c:2674 target_read_u32(): address: 0x4003002c, value: 0x0000002c Info : 255 36230 core.c:832 flash_write_unlock_verify(): Padding image section 0 at 0x0000003c with 4036 bytes Info : 256 36261 core.c:832 flash_write_unlock_verify(): Padding image section 1 at 0x000013b8 with 8 bytes Info : 257 36291 core.c:825 flash_write_unlock_verify(): Flash write discontinued at 0x00037b86, next section at 0x00057fa8 Debug: 258 36324 core.c:929 flash_write_unlock_verify(): image_read_section: section = 0, t_section_num = 0, section_offset = 0, buffer_idx = 0, size_read = 60 Debug: 259 36371 core.c:929 flash_write_unlock_verify(): image_read_section: section = 1, t_section_num = 1, section_offset = 0, buffer_idx = 4096, size_read = 952 Debug: 260 36417 core.c:929 flash_write_unlock_verify(): image_read_section: section = 2, t_section_num = 2, section_offset = 0, buffer_idx = 5056, size_read = 223174 Debug: 261 36465 target.c:2050 alloc_working_area_try_do(): MMU disabled, using physical address for working memory 0x20000000 Debug: 262 36512 target.c:2103 alloc_working_area_try_do(): allocated new working area of 24576 bytes at address 0x20000000 Debug: 263 36546 target.c:1971 print_wa_layout(): 0x20000000-0x20005fff (24576 bytes) Debug: 264 36573 target.c:1971 print_wa_layout(): 0x20006000-0x20006fff (4096 bytes) Debug: 265 36599 target.c:2455 target_write_buffer(): writing buffer of 32768 byte at 0x20000000 Debug: 266 37061 esp_usb_jtag.c:408 esp_usb_jtag_recv_buf(): esp_usb_jtag: usb received only 59 out of 64 bytes. Debug: 267 37096 esp_usb_jtag.c:408 esp_usb_jtag_recv_buf(): esp_usb_jtag: usb received only 5 out of 64 bytes. Debug: 268 37273 target.c:1845 target_call_event_callbacks(): target event 3 (resume-start) for core cc26x2.cpu Debug: 269 37316 armv7m.c:174 armv7m_restore_context(): Debug: 270 37337 armv7m.c:441 armv7m_write_core_reg(): write pmsk_bpri_fltmsk_ctrl value 0x00000001 Debug: 271 37366 armv7m.c:441 armv7m_write_core_reg(): write xpsr value 0x01000000 Debug: 272 37389 armv7m.c:441 armv7m_write_core_reg(): write pc value 0x20000000 Debug: 273 37412 target.c:1845 target_call_event_callbacks(): target event 18 (debug-resumed) for core cc26x2.cpu Debug: 274 37444 cortex_m.c:1378 cortex_m_resume(): [cc26x2.cpu] debug resumed at 0x20000000 Debug: 275 37471 target.c:1845 target_call_event_callbacks(): target event 4 (resume-end) for core cc26x2.cpu Debug: 276 37504 target.c:2455 target_write_buffer(): writing buffer of 16 byte at 0x20001fd8 Debug: 277 37534 target.c:2674 target_read_u32(): address: 0x20001fe4, value: 0xffffffff Debug: 278 37562 target.c:2674 target_read_u32(): address: 0x20001fe4, value: 0x00000000 Debug: 279 37588 cortex_m.c:1089 cortex_m_halt_one(): [cc26x2.cpu] target->state: debug-running Debug: 280 37621 cortex_m.c:786 cortex_m_debug_entry(): [cc26x2.cpu] Debug: 281 37646 cortex_m.c:527 cortex_m_clear_halt(): [cc26x2.cpu] NVIC_DFSR 0x1 Debug: 282 37684 cortex_m.c:329 cortex_m_fast_read_all_regs(): [cc26x2.cpu] read 53 32-bit registers Debug: 283 37711 cortex_m.c:864 cortex_m_debug_entry(): [cc26x2.cpu] entered debug state in core mode: Thread at PC 0x20000388, cpu in Non-Secure state, target->state: halted Debug: 284 37759 target.c:1845 target_call_event_callbacks(): target event 17 (debug-halted) for core cc26x2.cpu Debug: 285 37793 armv7m.c:705 armv7m_wait_algorithm(): restoring register primask with value 0x00000000 Debug: 286 37824 armv7m.c:705 armv7m_wait_algorithm(): restoring register pmsk_bpri_fltmsk_ctrl with value 0x00000000 Debug: 287 37857 armv7m.c:705 armv7m_wait_algorithm(): restoring register msp with value 0x20000fdc Debug: 288 37888 armv7m.c:705 armv7m_wait_algorithm(): restoring register xpsr with value 0x81000000 Debug: 289 37918 armv7m.c:705 armv7m_wait_algorithm(): restoring register pc with value 0x10000994 Debug: 290 37946 armv7m.c:705 armv7m_wait_algorithm(): restoring register lr with value 0x10000c11 Debug: 291 37978 armv7m.c:705 armv7m_wait_algorithm(): restoring register sp with value 0x20000fdc Debug: 292 38008 armv7m.c:705 armv7m_wait_algorithm(): restoring register r7 with value 0x00000001 Debug: 293 38037 armv7m.c:705 armv7m_wait_algorithm(): restoring register r6 with value 0x20000000 Debug: 294 38066 armv7m.c:705 armv7m_wait_algorithm(): restoring register r5 with value 0x40081030 Debug: 295 38095 armv7m.c:705 armv7m_wait_algorithm(): restoring register r4 with value 0x00000003 Debug: 296 38123 armv7m.c:705 armv7m_wait_algorithm(): restoring register r2 with value 0x40000000 Debug: 297 38152 armv7m.c:705 armv7m_wait_algorithm(): restoring register r1 with value 0x00000001 Debug: 298 38181 armv7m.c:705 armv7m_wait_algorithm(): restoring register r0 with value 0x20000ff0 Debug: 299 38210 target.c:2190 target_free_working_area_restore(): freed 24576 bytes of working area at address 0x20000000 Debug: 300 38247 target.c:1971 print_wa_layout(): 0x20000000-0x20006fff (28672 bytes) Debug: 301 38274 target.c:2103 alloc_working_area_try_do(): allocated new working area of 24576 bytes at address 0x20000000 Debug: 302 38309 target.c:1971 print_wa_layout(): 0x20000000-0x20005fff (24576 bytes) Debug: 303 38337 target.c:1971 print_wa_layout(): 0x20006000-0x20006fff (4096 bytes) Debug: 304 38362 target.c:2455 target_write_buffer(): writing buffer of 32768 byte at 0x20000000 Error: 305 44704 libusb_helper.c:259 jtag_libusb_bulk_read(): libusb_bulk_read error: LIBUSB_ERROR_TIMEOUT Debug: 306 44865 libusb_helper.c:403 jtag_libusb_find_device(): USB dev found 303a:1002 @ 3:3-1 Error: 307 44894 libusb_helper.c:409 jtag_libusb_find_device(): libusb_open() failed with LIBUSB_ERROR_ACCESS Debug: 308 44942 log.c:416 gdb_timeout_warning(): keep_alive() was not invoked in the 1000 ms timelimit (9404 ms). This may cause trouble with GDB connections. Debug: 309 45207 libusb_helper.c:403 jtag_libusb_find_device(): USB dev found 303a:1002 @ 3:3-1 Error: 310 45241 libusb_helper.c:409 jtag_libusb_find_device(): libusb_open() failed with LIBUSB_ERROR_ACCESS Debug: 311 45531 libusb_helper.c:403 jtag_libusb_find_device(): USB dev found 303a:1002 @ 3:3-1 Error: 312 45556 libusb_helper.c:409 jtag_libusb_find_device(): libusb_open() failed with LIBUSB_ERROR_ACCESS Debug: 313 45845 libusb_helper.c:403 jtag_libusb_find_device(): USB dev found 303a:1002 @ 3:3-1 Error: 314 45878 libusb_helper.c:409 jtag_libusb_find_device(): libusb_open() failed with LIBUSB_ERROR_ACCESS Debug: 315 46186 libusb_helper.c:403 jtag_libusb_find_device(): USB dev found 303a:1002 @ 3:3-1 Error: 316 46220 libusb_helper.c:409 jtag_libusb_find_device(): libusb_open() failed with LIBUSB_ERROR_ACCESS Debug: 317 46535 libusb_helper.c:403 jtag_libusb_find_device(): USB dev found 303a:1002 @ 3:3-1 Error: 318 46576 libusb_helper.c:409 jtag_libusb_find_device(): libusb_open() failed with LIBUSB_ERROR_ACCESS Error: 319 46770 esp_usb_jtag.c:342 esp_usb_jtag_revive_device(): esp_usb_jtag: device not found! Error: 320 46825 esp_usb_jtag.c:398 esp_usb_jtag_recv_buf(): esp_usb_jtag: failed to revive USB device!
i test openocd version v0.12.0-esp32-20230419, v0.12.0-esp32-20230313, v0.11.0-esp32-20221026 and v0.12.0 oficial the problem is always the same
please tell me
Sorry, couldn't test it yet with the arm board. Can I ask for one more debug?
Please add the below lines to your config file and send me the log.txt
espusbjtag log "log.txt"
adapter driver esp_usb_jtag
espusbjtag vid_pid 0x303a 0x1002
espusbjtag caps_descriptor 0x030A
espusbjtag log "log.txt"
adapter speed 1000
source [find target/ti_cc26x2.cfg]
set remotetimeout 100
reset_config trst_only
program ptvo.switch-zr02.hex
conole with config openocd.cfg
adapter driver esp_usb_jtag espusbjtag vid_pid 0x303a 0x1002 espusbjtag caps_descriptor 0x030A espusbjtag log "log.txt" adapter speed 1000 source [find target/ti_cc26x2.cfg] set remotetimeout 100 reset_config trst_only program ptvo.switch-zr02.hex
the problem is in the line espusbjtag log "log.txt"
everything is as it was without her
adapter driver esp_usb_jtag espusbjtag vid_pid 0x303a 0x1002 espusbjtag caps_descriptor 0x030A espusbjtag log "log.txt" adapter speed 1000 source [find target/ti_cc26x2.cfg] set remotetimeout 100 reset_config trst_only program ptvo.switch-zr02.hex
C:\my\openocd-esp32\bin>openocd Open On-Chip Debugger v0.12.0-esp32-20230419 (2023-04-18-22:02) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : only one transport option; autoselecting 'jtag' Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002 Info : esp_usb_jtag: capabilities descriptor set to 0x30a Error: The 'espusbjtag log' command must be used after 'init'. openocd.cfg:5: Error: in procedure 'script' at file "embedded:startup.tcl", line 28 at file "openocd.cfg", line 5 Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Warn : An adapter speed is not selected in the init scripts. OpenOCD will try to run the adapter at very low speed (100 kHz). Warn : To remove this warnings and achieve reasonable communication speed with the target, set "adapter speed" or "jtag_rclk" in the init scripts. Info : esp_usb_jtag: serial (4827E24B37E4) Info : esp_usb_jtag: Device found. Base speed 4800KHz, div range 1 to 1 Info : clock speed 4800 kHz Warn : There are no enabled taps. AUTO PROBING MIGHT NOT WORK!! Error: JTAG scan chain interrogation failed: all zeroes Error: Check JTAG interface, timings, target power, etc. Error: Trying to use configured scan chain anyway... Error: IR capture error at bit 0, saw 0x00 not 0x...3 Warn : Bypassing JTAG setup events due to errors Warn : gdb services need one or more targets defined
Ok. You can run OpenOCD with -c parameter like below.
openocd -f <scripts> -c "init; espusbjtag log "log.txt""
have you looked at the log, is there a misunderstanding why it doesn't work?
Hi, @newsy5 I am sorry, couldn't figure out why the ARM board disappears during communication. I need to test it but still don't have a board with the Jtag pins exported.
Finally, I found a board with a Texas arm chip. It couldn't be able to complete the first examination process. I am on it. Will let you know when I have a progress.
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : esp_usb_jtag: serial (7CDFA1E0104C)
Info : esp_usb_jtag: Device found. Base speed 4800KHz, div range 1 to 1
Info : clock speed 4800 kHz
Info : JTAG tap: cc32xx.jrc tap/device found: 0x0b97c02f (mfg: 0x017 (Texas Instruments), part: 0xb97c, ver: 0x0)
Info : JTAG tap: cc32xx.cpu enabled
Error: Invalid ACK (4) in DAP response
Error: JTAG-DP STICKY ERROR
tnx, i im wait
@newsy5 After replicating the issue and conducting further investigation, it appears that we encounter a problem when OpenOCD requests a large amount of flash data for read/write operations, particularly on ARM chips. Considering other priorities at the moment, I will address this issue when I have sufficient time available.
maybe who knows what the problem might be, I want to download the firmware to cc2652p via esp bridge.
connected it seems to be correct, I use esp32s2 everything connects normally , but the firmware is not upload
config openocd: adapter driver esp_usb_jtag espusbjtag vid_pid 0x303a 0x1002 espusbjtag caps_descriptor 0x030A adapter speed 1000 source [find target/ti_cc26x2.cfg] set remotetimeout 100 reset_config trst_only program ptvo.switch-zr02.hex
log openocd:
C:\my\openocd-esp32\bin>openocd Open On-Chip Debugger v0.12.0-esp32-20230419 (2023-04-18-22:02) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : only one transport option; autoselecting 'jtag' Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1002 Info : esp_usb_jtag: capabilities descriptor set to 0x30a Info : esp_usb_jtag: serial (4827E24B37E4) Info : esp_usb_jtag: Device found. Base speed 480KHz, div range 1 to 1 Info : clock speed 480 kHz Info : JTAG tap: cc26x2.jrc tap/device found: 0x3bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x3) Info : JTAG tap: cc26x2.cpu enabled Info : [cc26x2.cpu] Cortex-M4 r0p1 processor detected Info : [cc26x2.cpu] target has 6 breakpoints, 4 watchpoints Info : starting gdb server for cc26x2.cpu on 3333 Info : Listening on port 3333 for gdb connections Info : JTAG tap: cc26x2.jrc tap/device found: 0x3bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x3) Info : JTAG tap: cc26x2.cpu enabled Warn : [cc26x2.cpu] Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support. [cc26x2.cpu] halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc Programming Started Info : Padding image section 0 at 0x0000003c with 4036 bytes Info : Padding image section 1 at 0x000013b8 with 8 bytes Info : Flash write discontinued at 0x00037b86, next section at 0x00057fa8 Error: libusb_bulk_read error: LIBUSB_ERROR_TIMEOUT Error: libusb_open() failed with LIBUSB_ERROR_ACCESS Error: libusb_open() failed with LIBUSB_ERROR_ACCESS Error: libusb_open() failed with LIBUSB_ERROR_ACCESS Error: libusb_open() failed with LIBUSB_ERROR_ACCESS Error: libusb_open() failed with LIBUSB_ERROR_ACCESS Error: libusb_open() failed with LIBUSB_ERROR_ACCESS Error: esp_usb_jtag: device not found! Error: esp_usb_jtag: failed to revive USB device!
any ideas what you can try???