Failed to connect to the debug stub

Sysprogs forums Forums VisualGDB Failed to connect to the debug stub

This topic contains 3 replies, has 2 voices, and was last updated by  support 3 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33332

    Hufflepuff
    Participant

    Hello everyone,

    I’m trying to connect to my Raspberry Pi 4 via JTAG (Olimex) for debugging but I always get an error that it can’t connect to the debug stub. When I check the gdb stub log I don’t see an error appearing, so I don’t really know what might be the issue? Im currently using the VisualKernel Beta version I recently downloaded from your homepage. Where do I find the entry to check if GDB is enabled, since in another post in your forum you mentioned that this needed to be checked. I also use a newer (I think) openocd version, since the given one seemed to have a hassle with the Olimex FTDI driver.

    This is the gdb stub log I get:

    C:\Program Files (x86)\Sysprogs\VisualKernel\OpenOCD\bin\openocd.exe -c “gdb_port 59240” -c “telnet_port 59238” -c “debug_level 3” -c “bindto 0.0.0.0” -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f target/raspberrypi4.cfg -c “echo VisualGDB_OpenOCD_Ready”
    xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2022-09-01-17:58)
    Licensed under GNU GPL v2
    For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
    User : 3 3 options.c:52 configuration_output_handler(): debug_level: 3
    User : 4 3 options.c:52 configuration_output_handler():
    Debug: 5 3 command.c:155 script_debug(): command – bindto 0.0.0.0
    Debug: 6 3 command.c:155 script_debug(): command – ocd_find interface/ftdi/olimex-arm-usb-ocd-h.cfg
    Debug: 7 4 configuration.c:88 find_file(): found interface/ftdi/olimex-arm-usb-ocd-h.cfg
    Debug: 8 5 command.c:155 script_debug(): command – adapter driver ftdi
    Debug: 9 5 command.c:155 script_debug(): command – ftdi device_desc Olimex OpenOCD JTAG ARM-USB-OCD-H
    Debug: 10 5 command.c:155 script_debug(): command – ftdi vid_pid 0x15ba 0x002b
    Debug: 11 5 command.c:155 script_debug(): command – ftdi layout_init 0x0908 0x0b1b
    Debug: 12 5 command.c:155 script_debug(): command – ftdi layout_signal nSRST -oe 0x0200
    Debug: 13 5 command.c:155 script_debug(): command – ftdi layout_signal nTRST -data 0x0100
    Debug: 14 5 command.c:155 script_debug(): command – ftdi layout_signal LED -data 0x0800
    Debug: 15 6 command.c:155 script_debug(): command – ocd_find target/raspberrypi4.cfg
    Debug: 16 6 configuration.c:88 find_file(): found target/raspberrypi4.cfg
    Debug: 17 6 command.c:155 script_debug(): command – transport select
    Info : 18 6 transport.c:265 jim_transport_select(): auto-selecting first available session transport “jtag”. To override use ‘transport select <transport>’.
    Debug: 19 6 command.c:155 script_debug(): command – transport select
    Debug: 20 6 command.c:155 script_debug(): command – expr [ string first “jtag” $_TRANSPORT ] != -1
    Debug: 21 6 command.c:155 script_debug(): command – jtag newtap bcm2711 cpu -expected-id 0x4ba00477 -irlen 4
    Debug: 22 7 tcl.c:557 jim_newtap_cmd(): Creating New Tap, Chip: bcm2711, Tap: cpu, Dotted: bcm2711.cpu, 4 params
    Debug: 23 7 tcl.c:582 jim_newtap_cmd(): Processing option: -expected-id
    Debug: 24 7 tcl.c:582 jim_newtap_cmd(): Processing option: -irlen
    Debug: 25 7 core.c:1474 jtag_tap_init(): Created Tap: bcm2711.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0x3
    Debug: 26 7 command.c:155 script_debug(): command – adapter speed 4000
    Debug: 27 7 adapter.c:251 adapter_config_khz(): handle adapter khz
    Debug: 28 7 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value
    Debug: 29 7 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value
    Debug: 30 7 command.c:155 script_debug(): command – dap create bcm2711.dap -chain-position bcm2711.cpu
    Debug: 31 8 command.c:155 script_debug(): command – target create bcm2711.ap mem_ap -dap bcm2711.dap -ap-num 0
    Debug: 32 8 command.c:155 script_debug(): command – cti create bcm2711.cti0 -dap bcm2711.dap -ap-num 0 -baseaddr 0x80420000
    Debug: 33 8 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 1
    Debug: 34 8 command.c:155 script_debug(): command – target create bcm2711.cpu0 aarch64 -dap bcm2711.dap -ap-num 0 -dbgbase 0x80410000 -cti bcm2711.cti0 -coreid 0 -rtos hwthread
    Info : 35 8 hwthread.c:384 hwthread_create(): Hardware thread awareness created
    Debug: 36 9 command.c:155 script_debug(): command – bcm2711.cpu0 configure -event reset-assert-post aarch64 dbginit
    Debug: 37 9 command.c:155 script_debug(): command – bcm2711.cpu0 configure -event gdb-attach halt
    Debug: 38 9 command.c:155 script_debug(): command – bcm2711.cpu0 configure -event gdb-detach resume
    Debug: 39 9 command.c:155 script_debug(): command – cti create bcm2711.cti1 -dap bcm2711.dap -ap-num 0 -baseaddr 0x80520000
    Debug: 40 9 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 2
    Debug: 41 9 command.c:155 script_debug(): command – target create bcm2711.cpu1 aarch64 -dap bcm2711.dap -ap-num 0 -dbgbase 0x80510000 -cti bcm2711.cti1 -coreid 1 -rtos hwthread
    Info : 42 9 hwthread.c:384 hwthread_create(): Hardware thread awareness created
    Debug: 43 9 command.c:289 register_command(): command ‘arm’ is already registered
    Debug: 44 10 command.c:289 register_command(): command ‘arm semihosting’ is already registered
    Debug: 45 10 command.c:289 register_command(): command ‘arm semihosting_redirect’ is already registered
    Debug: 46 10 command.c:289 register_command(): command ‘arm semihosting_cmdline’ is already registered
    Debug: 47 10 command.c:289 register_command(): command ‘arm semihosting_fileio’ is already registered
    Debug: 48 10 command.c:289 register_command(): command ‘arm semihosting_resexit’ is already registered
    Debug: 49 10 command.c:289 register_command(): command ‘arm semihosting_read_user_param’ is already registered
    Debug: 50 10 command.c:289 register_command(): command ‘arm semihosting_basedir’ is already registered
    Debug: 51 10 command.c:289 register_command(): command ‘catch_exc’ is already registered
    Debug: 52 10 command.c:289 register_command(): command ‘aarch64’ is already registered
    Debug: 53 10 command.c:289 register_command(): command ‘aarch64 cache_info’ is already registered
    Debug: 54 11 command.c:289 register_command(): command ‘aarch64 dbginit’ is already registered
    Debug: 55 11 command.c:289 register_command(): command ‘aarch64 disassemble’ is already registered
    Debug: 56 11 command.c:289 register_command(): command ‘aarch64 maskisr’ is already registered
    Debug: 57 11 command.c:289 register_command(): command ‘aarch64 mcr’ is already registered
    Debug: 58 11 command.c:289 register_command(): command ‘aarch64 mrc’ is already registered
    Debug: 59 11 command.c:289 register_command(): command ‘aarch64 smp’ is already registered
    Debug: 60 11 command.c:289 register_command(): command ‘aarch64 smp_gdb’ is already registered
    Debug: 61 11 command.c:155 script_debug(): command – bcm2711.cpu1 configure -event reset-assert-post aarch64 dbginit
    Debug: 62 12 command.c:155 script_debug(): command – bcm2711.cpu1 configure -event gdb-attach halt
    Debug: 63 12 command.c:155 script_debug(): command – bcm2711.cpu1 configure -event gdb-detach resume
    Debug: 64 12 command.c:155 script_debug(): command – cti create bcm2711.cti2 -dap bcm2711.dap -ap-num 0 -baseaddr 0x80620000
    Debug: 65 12 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 3
    Debug: 66 12 command.c:155 script_debug(): command – target create bcm2711.cpu2 aarch64 -dap bcm2711.dap -ap-num 0 -dbgbase 0x80610000 -cti bcm2711.cti2 -coreid 2 -rtos hwthread
    Info : 67 12 hwthread.c:384 hwthread_create(): Hardware thread awareness created
    Debug: 68 12 command.c:289 register_command(): command ‘arm’ is already registered
    Debug: 69 12 command.c:289 register_command(): command ‘arm semihosting’ is already registered
    Debug: 70 12 command.c:289 register_command(): command ‘arm semihosting_redirect’ is already registered
    Debug: 71 13 command.c:289 register_command(): command ‘arm semihosting_cmdline’ is already registered
    Debug: 72 13 command.c:289 register_command(): command ‘arm semihosting_fileio’ is already registered
    Debug: 73 13 command.c:289 register_command(): command ‘arm semihosting_resexit’ is already registered
    Debug: 74 13 command.c:289 register_command(): command ‘arm semihosting_read_user_param’ is already registered
    Debug: 75 13 command.c:289 register_command(): command ‘arm semihosting_basedir’ is already registered
    Debug: 76 13 command.c:289 register_command(): command ‘catch_exc’ is already registered
    Debug: 77 13 command.c:289 register_command(): command ‘aarch64’ is already registered
    Debug: 78 13 command.c:289 register_command(): command ‘aarch64 cache_info’ is already registered
    Debug: 79 13 command.c:289 register_command(): command ‘aarch64 dbginit’ is already registered
    Debug: 80 14 command.c:289 register_command(): command ‘aarch64 disassemble’ is already registered
    Debug: 81 14 command.c:289 register_command(): command ‘aarch64 maskisr’ is already registered
    Debug: 82 14 command.c:289 register_command(): command ‘aarch64 mcr’ is already registered
    Debug: 83 14 command.c:289 register_command(): command ‘aarch64 mrc’ is already registered
    Debug: 84 14 command.c:289 register_command(): command ‘aarch64 smp’ is already registered
    Debug: 85 14 command.c:289 register_command(): command ‘aarch64 smp_gdb’ is already registered
    Debug: 86 14 command.c:155 script_debug(): command – bcm2711.cpu2 configure -event reset-assert-post aarch64 dbginit
    Debug: 87 14 command.c:155 script_debug(): command – bcm2711.cpu2 configure -event gdb-attach halt
    Debug: 88 15 command.c:155 script_debug(): command – bcm2711.cpu2 configure -event gdb-detach resume
    Debug: 89 15 command.c:155 script_debug(): command – cti create bcm2711.cti3 -dap bcm2711.dap -ap-num 0 -baseaddr 0x80720000
    Debug: 90 15 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 4
    Debug: 91 15 command.c:155 script_debug(): command – target create bcm2711.cpu3 aarch64 -dap bcm2711.dap -ap-num 0 -dbgbase 0x80710000 -cti bcm2711.cti3 -coreid 3 -rtos hwthread
    Info : 92 15 hwthread.c:384 hwthread_create(): Hardware thread awareness created
    Debug: 93 15 command.c:289 register_command(): command ‘arm’ is already registered
    Debug: 94 15 command.c:289 register_command(): command ‘arm semihosting’ is already registered
    Debug: 95 15 command.c:289 register_command(): command ‘arm semihosting_redirect’ is already registered
    Debug: 96 16 command.c:289 register_command(): command ‘arm semihosting_cmdline’ is already registered
    Debug: 97 16 command.c:289 register_command(): command ‘arm semihosting_fileio’ is already registered
    Debug: 98 16 command.c:289 register_command(): command ‘arm semihosting_resexit’ is already registered
    Debug: 99 16 command.c:289 register_command(): command ‘arm semihosting_read_user_param’ is already registered
    Debug: 100 16 command.c:289 register_command(): command ‘arm semihosting_basedir’ is already registered
    Debug: 101 16 command.c:289 register_command(): command ‘catch_exc’ is already registered
    Debug: 102 16 command.c:289 register_command(): command ‘aarch64’ is already registered
    Debug: 103 16 command.c:289 register_command(): command ‘aarch64 cache_info’ is already registered
    Debug: 104 16 command.c:289 register_command(): command ‘aarch64 dbginit’ is already registered
    Debug: 105 17 command.c:289 register_command(): command ‘aarch64 disassemble’ is already registered
    Debug: 106 17 command.c:289 register_command(): command ‘aarch64 maskisr’ is already registered
    Debug: 107 17 command.c:289 register_command(): command ‘aarch64 mcr’ is already registered
    Debug: 108 17 command.c:289 register_command(): command ‘aarch64 mrc’ is already registered
    Debug: 109 17 command.c:289 register_command(): command ‘aarch64 smp’ is already registered
    Debug: 110 17 command.c:289 register_command(): command ‘aarch64 smp_gdb’ is already registered
    Debug: 111 17 command.c:155 script_debug(): command – bcm2711.cpu3 configure -event reset-assert-post aarch64 dbginit
    Debug: 112 17 command.c:155 script_debug(): command – bcm2711.cpu3 configure -event gdb-attach halt
    Debug: 113 18 command.c:155 script_debug(): command – bcm2711.cpu3 configure -event gdb-detach resume
    Debug: 114 18 command.c:155 script_debug(): command – target smp bcm2711.cpu0 bcm2711.cpu1 bcm2711.cpu2 bcm2711.cpu3
    Debug: 115 18 target.c:6446 jim_target_smp(): 5
    Debug: 116 18 target.c:6463 jim_target_smp(): bcm2711.cpu0
    Debug: 117 18 target.c:6463 jim_target_smp(): bcm2711.cpu1
    Debug: 118 18 target.c:6463 jim_target_smp(): bcm2711.cpu2
    Debug: 119 18 target.c:6463 jim_target_smp(): bcm2711.cpu3
    Debug: 120 18 hwthread.c:193 hwthread_update_threads(): hwthread_update_threads current_thread=-1
    Debug: 121 18 command.c:155 script_debug(): command – echo target smp bcm2711.cpu0 bcm2711.cpu1 bcm2711.cpu2 bcm2711.cpu3
    User : 122 18 command.c:685 handle_echo(): target smp bcm2711.cpu0 bcm2711.cpu1 bcm2711.cpu2 bcm2711.cpu3
    Debug: 123 19 command.c:155 script_debug(): command – targets bcm2711.cpu0
    Debug: 124 19 command.c:155 script_debug(): command – echo VisualGDB_OpenOCD_Ready
    User : 125 19 command.c:685 handle_echo(): VisualGDB_OpenOCD_Ready
    Info : 126 26 server.c:297 add_service(): Listening on port 6666 for tcl connections
    Info : 127 26 server.c:297 add_service(): Listening on port 59238 for telnet connections
    Debug: 128 27 command.c:155 script_debug(): command – init
    Debug: 129 27 command.c:155 script_debug(): command – target init
    Debug: 130 27 command.c:155 script_debug(): command – target names
    Debug: 131 27 command.c:155 script_debug(): command – bcm2711.ap cget -event gdb-flash-erase-start
    Debug: 132 27 command.c:155 script_debug(): command – bcm2711.ap configure -event gdb-flash-erase-start reset init
    Debug: 133 27 command.c:155 script_debug(): command – bcm2711.ap cget -event gdb-flash-write-end
    Debug: 134 27 command.c:155 script_debug(): command – bcm2711.ap configure -event gdb-flash-write-end reset halt
    Debug: 135 27 command.c:155 script_debug(): command – bcm2711.ap cget -event gdb-attach
    Debug: 136 28 command.c:155 script_debug(): command – bcm2711.ap configure -event gdb-attach halt 1000
    Debug: 137 28 command.c:155 script_debug(): command – bcm2711.cpu0 cget -event gdb-flash-erase-start
    Debug: 138 28 command.c:155 script_debug(): command – bcm2711.cpu0 configure -event gdb-flash-erase-start reset init
    Debug: 139 28 command.c:155 script_debug(): command – bcm2711.cpu0 cget -event gdb-flash-write-end
    Debug: 140 28 command.c:155 script_debug(): command – bcm2711.cpu0 configure -event gdb-flash-write-end reset halt
    Debug: 141 28 command.c:155 script_debug(): command – bcm2711.cpu0 cget -event gdb-attach
    Debug: 142 28 command.c:155 script_debug(): command – bcm2711.cpu1 cget -event gdb-flash-erase-start
    Debug: 143 28 command.c:155 script_debug(): command – bcm2711.cpu1 configure -event gdb-flash-erase-start reset init
    Debug: 144 29 command.c:155 script_debug(): command – bcm2711.cpu1 cget -event gdb-flash-write-end
    Debug: 145 29 command.c:155 script_debug(): command – bcm2711.cpu1 configure -event gdb-flash-write-end reset halt
    Debug: 146 29 command.c:155 script_debug(): command – bcm2711.cpu1 cget -event gdb-attach
    Debug: 147 29 command.c:155 script_debug(): command – bcm2711.cpu2 cget -event gdb-flash-erase-start
    Debug: 148 29 command.c:155 script_debug(): command – bcm2711.cpu2 configure -event gdb-flash-erase-start reset init
    Debug: 149 29 command.c:155 script_debug(): command – bcm2711.cpu2 cget -event gdb-flash-write-end
    Debug: 150 29 command.c:155 script_debug(): command – bcm2711.cpu2 configure -event gdb-flash-write-end reset halt
    Debug: 151 29 command.c:155 script_debug(): command – bcm2711.cpu2 cget -event gdb-attach
    Debug: 152 29 command.c:155 script_debug(): command – bcm2711.cpu3 cget -event gdb-flash-erase-start
    Debug: 153 30 command.c:155 script_debug(): command – bcm2711.cpu3 configure -event gdb-flash-erase-start reset init
    Debug: 154 30 command.c:155 script_debug(): command – bcm2711.cpu3 cget -event gdb-flash-write-end
    Debug: 155 30 command.c:155 script_debug(): command – bcm2711.cpu3 configure -event gdb-flash-write-end reset halt
    Debug: 156 30 command.c:155 script_debug(): command – bcm2711.cpu3 cget -event gdb-attach
    Debug: 157 30 target.c:1657 handle_target_init_command(): Initializing targets…
    Debug: 158 30 mem_ap.c:61 mem_ap_init_target(): mem_ap_init_target
    Debug: 159 30 semihosting_common.c:109 semihosting_common_init():
    Debug: 160 30 semihosting_common.c:109 semihosting_common_init():
    Debug: 161 30 semihosting_common.c:109 semihosting_common_init():
    Debug: 162 30 semihosting_common.c:109 semihosting_common_init():
    Debug: 163 31 ftdi.c:654 ftdi_initialize(): ftdi interface using shortest path jtag state transitions
    Debug: 164 55 mpsse.c:412 mpsse_purge(): –
    Debug: 165 56 mpsse.c:693 mpsse_loopback_config(): off
    Debug: 166 56 mpsse.c:738 mpsse_set_frequency(): target 4000000 Hz
    Debug: 167 56 mpsse.c:730 mpsse_rtck_config(): off
    Debug: 168 56 mpsse.c:719 mpsse_divide_by_5_config(): off
    Debug: 169 56 mpsse.c:699 mpsse_set_divisor(): 7
    Debug: 170 56 mpsse.c:762 mpsse_set_frequency(): actually 3750000 Hz
    Debug: 171 56 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value
    Debug: 172 56 adapter.c:219 adapter_khz_to_speed(): have adapter set up
    Debug: 173 56 mpsse.c:738 mpsse_set_frequency(): target 4000000 Hz
    Debug: 174 56 mpsse.c:730 mpsse_rtck_config(): off
    Debug: 175 56 mpsse.c:719 mpsse_divide_by_5_config(): off
    Debug: 176 57 mpsse.c:699 mpsse_set_divisor(): 7
    Debug: 177 57 mpsse.c:762 mpsse_set_frequency(): actually 3750000 Hz
    Debug: 178 57 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value
    Debug: 179 57 adapter.c:219 adapter_khz_to_speed(): have adapter set up
    Info : 180 57 adapter.c:179 adapter_init(): clock speed 4000 kHz
    Debug: 181 57 openocd.c:150 handle_init_command(): Debug Adapter init complete
    Debug: 182 57 command.c:155 script_debug(): command – transport init
    Debug: 183 57 transport.c:219 handle_transport_init(): handle_transport_init
    Debug: 184 57 core.c:830 jtag_add_reset(): SRST line released
    Debug: 185 57 core.c:855 jtag_add_reset(): TRST line released
    Debug: 186 57 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset
    Debug: 187 58 command.c:155 script_debug(): command – jtag arp_init
    Debug: 188 58 core.c:1509 jtag_init_inner(): Init JTAG chain
    Debug: 189 58 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset
    Debug: 190 58 core.c:1234 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
    Debug: 191 58 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset
    Info : 192 58 core.c:1133 jtag_examine_chain_display(): JTAG tap: bcm2711.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x4)
    Debug: 193 59 core.c:1364 jtag_validate_ircapture(): IR capture validation scan
    Debug: 194 59 core.c:1421 jtag_validate_ircapture(): bcm2711.cpu: IR capture 0x01
    Debug: 195 59 command.c:155 script_debug(): command – dap init
    Debug: 196 59 arm_dap.c:97 dap_init_all(): Initializing all DAPs …
    Debug: 197 59 arm_dap.c:121 dap_init_all(): DAP bcm2711.cpu configured by default to use ADIv5 protocol
    Debug: 198 59 arm_adi_v5.c:679 dap_dp_init(): bcm2711.dap
    Debug: 199 59 arm_adi_v5.c:711 dap_dp_init(): DAP: wait CDBGPWRUPACK
    Debug: 200 59 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000
    Debug: 201 60 arm_adi_v5.c:719 dap_dp_init(): DAP: wait CSYSPWRUPACK
    Debug: 202 60 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000
    Debug: 203 60 openocd.c:167 handle_init_command(): Examining targets…
    Debug: 204 60 target.c:1843 target_call_event_callbacks(): target event 19 (examine-start) for core bcm2711.ap
    Debug: 205 61 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 5
    Debug: 206 62 arm_adi_v5.c:825 mem_ap_init(): MEM_AP Packed Transfers: disabled
    Debug: 207 62 arm_adi_v5.c:836 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
    Debug: 208 62 target.c:1843 target_call_event_callbacks(): target event 21 (examine-end) for core bcm2711.ap
    Debug: 209 62 target.c:1843 target_call_event_callbacks(): target event 19 (examine-start) for core bcm2711.cpu0
    Debug: 210 62 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 6
    Debug: 211 63 arm_adi_v5.c:825 mem_ap_init(): MEM_AP Packed Transfers: disabled
    Debug: 212 63 arm_adi_v5.c:836 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
    Debug: 213 64 aarch64.c:2630 aarch64_examine_first(): cpuid = 0x410fd083
    Debug: 214 64 aarch64.c:2631 aarch64_examine_first(): ttypr = 0x00001124
    Debug: 215 64 aarch64.c:2632 aarch64_examine_first(): debug = 0x10305106
    Info : 216 64 armv8_dpm.c:1460 armv8_dpm_setup(): bcm2711.cpu0: hardware has 6 breakpoints, 4 watchpoints
    Debug: 217 64 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80410408
    Debug: 218 65 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80410418
    Debug: 219 65 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80410428
    Debug: 220 65 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80410438
    Debug: 221 66 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80410448
    Debug: 222 66 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80410458
    Debug: 223 66 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80410808
    Debug: 224 67 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80410818
    Debug: 225 67 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80410828
    Debug: 226 68 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80410838
    Debug: 227 68 aarch64.c:2673 aarch64_examine_first(): Configured 6 hw breakpoints, 4 watchpoints
    Debug: 228 68 aarch64.c:202 aarch64_init_debug_access(): bcm2711.cpu0
    Debug: 229 70 target.c:1843 target_call_event_callbacks(): target event 21 (examine-end) for core bcm2711.cpu0
    Debug: 230 70 target.c:1843 target_call_event_callbacks(): target event 19 (examine-start) for core bcm2711.cpu1
    Debug: 231 70 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 7
    Debug: 232 71 arm_adi_v5.c:825 mem_ap_init(): MEM_AP Packed Transfers: disabled
    Debug: 233 71 arm_adi_v5.c:836 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
    Debug: 234 72 aarch64.c:2630 aarch64_examine_first(): cpuid = 0x410fd083
    Debug: 235 72 aarch64.c:2631 aarch64_examine_first(): ttypr = 0x00001124
    Debug: 236 72 aarch64.c:2632 aarch64_examine_first(): debug = 0x10305106
    Info : 237 73 armv8_dpm.c:1460 armv8_dpm_setup(): bcm2711.cpu1: hardware has 6 breakpoints, 4 watchpoints
    Debug: 238 73 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80510408
    Debug: 239 73 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80510418
    Debug: 240 73 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80510428
    Debug: 241 74 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80510438
    Debug: 242 74 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80510448
    Debug: 243 74 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80510458
    Debug: 244 75 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80510808
    Debug: 245 75 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80510818
    Debug: 246 75 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80510828
    Debug: 247 76 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80510838
    Debug: 248 76 aarch64.c:2673 aarch64_examine_first(): Configured 6 hw breakpoints, 4 watchpoints
    Debug: 249 76 aarch64.c:202 aarch64_init_debug_access(): bcm2711.cpu1
    Debug: 250 78 target.c:1843 target_call_event_callbacks(): target event 21 (examine-end) for core bcm2711.cpu1
    Debug: 251 78 target.c:1843 target_call_event_callbacks(): target event 19 (examine-start) for core bcm2711.cpu2
    Debug: 252 78 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 8
    Debug: 253 79 arm_adi_v5.c:825 mem_ap_init(): MEM_AP Packed Transfers: disabled
    Debug: 254 79 arm_adi_v5.c:836 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
    Debug: 255 80 aarch64.c:2630 aarch64_examine_first(): cpuid = 0x410fd083
    Debug: 256 80 aarch64.c:2631 aarch64_examine_first(): ttypr = 0x00001124
    Debug: 257 80 aarch64.c:2632 aarch64_examine_first(): debug = 0x10305106
    Info : 258 80 armv8_dpm.c:1460 armv8_dpm_setup(): bcm2711.cpu2: hardware has 6 breakpoints, 4 watchpoints
    Debug: 259 80 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80610408
    Debug: 260 81 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80610418
    Debug: 261 81 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80610428
    Debug: 262 81 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80610438
    Debug: 263 82 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80610448
    Debug: 264 82 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80610458
    Debug: 265 83 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80610808
    Debug: 266 83 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80610818
    Debug: 267 83 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80610828
    Debug: 268 84 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80610838
    Debug: 269 84 aarch64.c:2673 aarch64_examine_first(): Configured 6 hw breakpoints, 4 watchpoints
    Debug: 270 84 aarch64.c:202 aarch64_init_debug_access(): bcm2711.cpu2
    Debug: 271 86 target.c:1843 target_call_event_callbacks(): target event 21 (examine-end) for core bcm2711.cpu2
    Debug: 272 86 target.c:1843 target_call_event_callbacks(): target event 19 (examine-start) for core bcm2711.cpu3
    Debug: 273 86 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 9
    Debug: 274 87 arm_adi_v5.c:825 mem_ap_init(): MEM_AP Packed Transfers: disabled
    Debug: 275 87 arm_adi_v5.c:836 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
    Debug: 276 88 aarch64.c:2630 aarch64_examine_first(): cpuid = 0x410fd083
    Debug: 277 88 aarch64.c:2631 aarch64_examine_first(): ttypr = 0x00001124
    Debug: 278 88 aarch64.c:2632 aarch64_examine_first(): debug = 0x10305106
    Info : 279 89 armv8_dpm.c:1460 armv8_dpm_setup(): bcm2711.cpu3: hardware has 6 breakpoints, 4 watchpoints
    Debug: 280 89 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80710408
    Debug: 281 89 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80710418
    Debug: 282 89 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80710428
    Debug: 283 90 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80710438
    Debug: 284 90 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80710448
    Debug: 285 91 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80710458
    Debug: 286 91 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80710808
    Debug: 287 91 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80710818
    Debug: 288 92 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80710828
    Debug: 289 92 armv8_dpm.c:472 dpmv8_bpwp_disable(): A: bpwp disable, cr 80710838
    Debug: 290 92 aarch64.c:2673 aarch64_examine_first(): Configured 6 hw breakpoints, 4 watchpoints
    Debug: 291 92 aarch64.c:202 aarch64_init_debug_access(): bcm2711.cpu3
    Debug: 292 94 target.c:1843 target_call_event_callbacks(): target event 21 (examine-end) for core bcm2711.cpu3
    Debug: 293 94 command.c:155 script_debug(): command – flash init
    Debug: 294 94 tcl.c:1375 handle_flash_init_command(): Initializing flash devices…
    Debug: 295 94 command.c:155 script_debug(): command – nand init
    Debug: 296 94 tcl.c:487 handle_nand_init_command(): Initializing NAND devices…
    Debug: 297 95 command.c:155 script_debug(): command – pld init
    Debug: 298 95 pld.c:194 handle_pld_init_command(): Initializing PLDs…
    Debug: 299 95 command.c:155 script_debug(): command – tpiu init
    Info : 300 95 gdb_server.c:3825 gdb_target_add_one(): gdb port disabled
    Info : 301 95 gdb_server.c:3791 gdb_target_start(): starting gdb server for bcm2711.cpu0 on 59240
    Info : 302 95 server.c:297 add_service(): Listening on port 59240 for gdb connections

     

    Thanks for helping!

    #33333

    support
    Keymaster

    Hi,

    If OpenOCD generally doesn’t work with your hardware, running it with VisualGDB/VisualKernel won’t automatically resolve the OpenOCD issues. If this is the case, please consider asking in the OpenOCD or Raspberry Pi community.

    If you can get OpenOCD/gdb working when you launch it manually, we can gladly help you configure VisualGDB/VisualKernel to use this setup for debugging.

    #33334

    Hufflepuff
    Participant

    Hi,

    Well it does work when I call it manually, this is why I switched the openocd.exe files, because it worked with that one.

    Thanks

    #33335

    support
    Keymaster

    If you are able to connect (and successfully use) gdb to OpenOCD when you run it manually, please share the following:

    • The exact command lines from OpenOCD and GDB from the manual debug session that works.
    • The OpenOCD and GDB command lines shown by VisualGDB/VisualKernel. You can find the OpenOCD command line in OpenOCD window in Visual Studio during a debug session. The GDB command line is shown in the GDB session window.
    • A screenshot of the exact error message you get with VisualGDB/VisualKernel.
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.