|
From: Charles A. <CA...@te...> - 2022-12-14 22:29:22
|
Hello,
I'm just getting started with openOCD. I am using a RPi 3B and connected to a xmc4100 using SWD interface. I am able to connect to the xmc4100 using telnet and change PSRAM and DSRAM1 locations as well, so very encouraging for a first time experience, however I am getting errors that I don't understand. Could someone please take a look at let me know what might be the problem?
I eventually would like to program the xmc4100 using the RPi under SWD interface. Any guidance on this would be appreciated too.
When I try to program the xmc4100 through telnet I get time out errors (all in the log file below at bottom of email):
Debug: 246 59503 target.c:3286 target_wait_state(): waiting for target halted...
Error: 247 60504 target.c:3294 target_wait_state(): timed out while waiting for target halted
Debug: 248 60504 command.c:155 script_debug(): command - xmc4100.cpu curstate
Debug: 249 60504 command.c:544 run_command(): Command 'reset' failed with error code -4
User : 250 60505 command.c:608 command_run_line(): embedded:startup.tcl:1516: Error: ** Unable to reset target **
Any comments appreciated.
Thanks,
Chuck
Below is my openocd.cfg file:
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Config for using Raspberry Pi's expansion header
#
# This is best used with a fast enough buffer but also
# is suitable for direct connection if the target voltage
# matches RPi's 3.3V and the cable is short enough.
#
# Do not forget the GND connection, pin 6 of the expansion header.
#
adapter driver bcm2835gpio
bcm2835gpio peripheral_base 0x3F000000
# Transition delay calculation: SPEED_COEFF/khz - SPEED_OFFSET
# These depend on system clock, calibrated for scaling_max_freq 900MHz
# bcm2835gpio speed SPEED_COEFF SPEED_OFFSET
bcm2835gpio speed_coeffs 225000 36
# Each of the JTAG lines need a gpio number set: tck tms tdi tdo
# Header pin numbers: 23 22 19 21
adapter gpio tck -chip 0 11
adapter gpio tms -chip 0 25
adapter gpio tdi -chip 0 10
adapter gpio tdo -chip 0 9
# Each of the SWD lines need a gpio number set: swclk swdio
# Header pin numbers: 23 22
adapter gpio swclk -chip 0 25
adapter gpio swdio -chip 0 24
# If you define trst or srst, use appropriate reset_config
# Header pin numbers: TRST - 26, SRST - 18
# adapter gpio trst -chip 0 7
# reset_config trst_only
adapter gpio srst -chip 0 18
reset_config srst_only srst_push_pull
# or if you have both connected,
# reset_config trst_and_srst srst_push_pull
adapter srst delay 100
adapter srst pulse_width 100
transport select swd
set CHIPNAME xmc4100
source [find target/xmc4xxx.cfg]
init
targets
targets current
reset halt
reset
shutdown
Below is my xmc4xxx.cfg file:
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Infineon XMC4100/XMC4200/XMC4400/XMC4500 family (ARM Cortex-M4 @ 80-120 MHz)
#
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME xmc4000
}
source [find target/swj-dp.tcl]
#
# SWJ-DP
#
if { [info exists CPU_JTAG_TAPID] } {
set _CPU_JTAG_TAPID $CPU_JTAG_TAPID
} else {
set _CPU_JTAG_TAPID 0x4BA00477
}
#
# SW_DP
#
if { [info exists CPU_SWD_TAPID] } {
set _CPU_SWD_TAPID $CPU_SWD_TAPID
} else {
set _CPU_SWD_TAPID 0x2BA01477
}
if { [using_jtag] } {
set _CPU_TAPID $_CPU_JTAG_TAPID
} else {
set _CPU_TAPID $_CPU_SWD_TAPID
}
swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_TAPID
dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
# Work-area is a space in RAM used for flash programming
# By default use 16 kB
if { [info exists WORKAREASIZE] } {
set _WORKAREASIZE $WORKAREASIZE
} else {
set _WORKAREASIZE 0x1000
}
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME xmc4xxx 0x0C000000 0 0 0 $_TARGETNAME
if { ![using_hla] } {
cortex_m reset_config sysresetreq
}
adapter speed 1000
Below is the log when I run the openocd.cfg file:
Debug: 6 15 log.c:236 handle_log_output_command(): set log_output to "log-12-14-3.txt"
Debug: 7 15 options.c:233 add_default_dirs(): bindir=/usr/local/bin
Debug: 8 15 options.c:234 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 9 15 options.c:235 add_default_dirs(): exepath=/usr/local/bin
Debug: 10 15 options.c:236 add_default_dirs(): bin2data=../share/openocd
Debug: 11 15 configuration.c:33 add_script_search_dir(): adding /root/.config/openocd
Debug: 12 15 configuration.c:33 add_script_search_dir(): adding /root/.openocd
Debug: 13 15 configuration.c:33 add_script_search_dir(): adding /usr/local/bin/../share/openocd/site
Debug: 14 15 configuration.c:33 add_script_search_dir(): adding /usr/local/bin/../share/openocd/scripts
Debug: 15 16 command.c:155 script_debug(): command - ocd_find openocd.cfg
Debug: 16 16 configuration.c:88 find_file(): found openocd.cfg
Debug: 17 16 command.c:155 script_debug(): command - adapter driver bcm2835gpio
Debug: 18 17 command.c:155 script_debug(): command - bcm2835gpio peripheral_base 0x3F000000
Debug: 19 17 command.c:155 script_debug(): command - bcm2835gpio speed_coeffs 225000 36
Debug: 20 17 command.c:155 script_debug(): command - adapter gpio tck -chip 0 11
Debug: 21 17 adapter.c:947 adapter_gpio_config_handler(): Processing -chip
Debug: 22 17 adapter.c:962 adapter_gpio_config_handler(): -chip arg is 0
Debug: 23 17 adapter.c:947 adapter_gpio_config_handler(): Processing 11
Debug: 24 17 command.c:155 script_debug(): command - adapter gpio tms -chip 0 25
Debug: 25 17 adapter.c:947 adapter_gpio_config_handler(): Processing -chip
Debug: 26 17 adapter.c:962 adapter_gpio_config_handler(): -chip arg is 0
Debug: 27 17 adapter.c:947 adapter_gpio_config_handler(): Processing 25
Debug: 28 17 command.c:155 script_debug(): command - adapter gpio tdi -chip 0 10
Debug: 29 17 adapter.c:947 adapter_gpio_config_handler(): Processing -chip
Debug: 30 17 adapter.c:962 adapter_gpio_config_handler(): -chip arg is 0
Debug: 31 17 adapter.c:947 adapter_gpio_config_handler(): Processing 10
Debug: 32 17 command.c:155 script_debug(): command - adapter gpio tdo -chip 0 9
Debug: 33 18 adapter.c:947 adapter_gpio_config_handler(): Processing -chip
Debug: 34 18 adapter.c:962 adapter_gpio_config_handler(): -chip arg is 0
Debug: 35 18 adapter.c:947 adapter_gpio_config_handler(): Processing 9
Debug: 36 18 command.c:155 script_debug(): command - adapter gpio swclk -chip 0 25
Debug: 37 18 adapter.c:947 adapter_gpio_config_handler(): Processing -chip
Debug: 38 18 adapter.c:962 adapter_gpio_config_handler(): -chip arg is 0
Debug: 39 18 adapter.c:947 adapter_gpio_config_handler(): Processing 25
Debug: 40 18 command.c:155 script_debug(): command - adapter gpio swdio -chip 0 24
Debug: 41 18 adapter.c:947 adapter_gpio_config_handler(): Processing -chip
Debug: 42 18 adapter.c:962 adapter_gpio_config_handler(): -chip arg is 0
Debug: 43 18 adapter.c:947 adapter_gpio_config_handler(): Processing 24
Debug: 44 18 command.c:155 script_debug(): command - adapter gpio srst -chip 0 18
Debug: 45 18 adapter.c:947 adapter_gpio_config_handler(): Processing -chip
Debug: 46 18 adapter.c:962 adapter_gpio_config_handler(): -chip arg is 0
Debug: 47 18 adapter.c:947 adapter_gpio_config_handler(): Processing 18
Debug: 48 18 command.c:155 script_debug(): command - reset_config srst_only srst_push_pull
Debug: 49 18 command.c:155 script_debug(): command - adapter srst delay 100
Debug: 50 18 command.c:155 script_debug(): command - adapter srst pulse_width 100
Debug: 51 19 command.c:155 script_debug(): command - transport select swd
Debug: 52 19 bitbang.c:377 bitbang_swd_init(): bitbang_swd_init
Debug: 53 19 command.c:155 script_debug(): command - ocd_find target/xmc4xxx.cfg
Debug: 54 19 configuration.c:88 find_file(): found /usr/local/bin/../share/openocd/scripts/target/xmc4xxx.cfg
Debug: 55 19 command.c:155 script_debug(): command - ocd_find target/swj-dp.tcl
Debug: 56 20 configuration.c:88 find_file(): found /usr/local/bin/../share/openocd/scripts/target/swj-dp.tcl
Debug: 57 20 command.c:155 script_debug(): command - transport select
Debug: 58 20 command.c:155 script_debug(): command - transport select
Debug: 59 20 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 60 20 command.c:155 script_debug(): command - transport select
Debug: 61 20 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 62 21 command.c:155 script_debug(): command - transport select
Debug: 63 21 command.c:155 script_debug(): command - expr [ string first "swd" $_TRANSPORT ] != -1
Debug: 64 21 command.c:155 script_debug(): command - swd newdap xmc4100 cpu -irlen 4 -expected-id 0x2BA01477
Debug: 65 21 tcl.c:557 jim_newtap_cmd(): Creating New Tap, Chip: xmc4100, Tap: cpu, Dotted: xmc4100.cpu, 4 params
Debug: 66 21 core.c:1474 jtag_tap_init(): Created Tap: xmc4100.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0
Debug: 67 21 command.c:155 script_debug(): command - dap create xmc4100.dap -chain-position xmc4100.cpu
Debug: 68 22 command.c:155 script_debug(): command - target create xmc4100.cpu cortex_m -dap xmc4100.dap
Debug: 69 22 command.c:289 register_command(): command 'tpiu' is already registered
Debug: 70 23 command.c:289 register_command(): command 'rtt' is already registered
Debug: 71 24 command.c:155 script_debug(): command - xmc4100.cpu configure -work-area-phys 0x20000000 -work-area-size 0x1000 -work-area-backup 0
Debug: 72 24 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 73 24 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 74 24 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 75 25 command.c:155 script_debug(): command - flash bank xmc4100.flash xmc4xxx 0x0C000000 0 0 0 xmc4100.cpu
Debug: 76 25 tcl.c:1305 handle_flash_bank_command(): 'xmc4xxx' driver usage field missing
Debug: 77 25 command.c:155 script_debug(): command - transport select
Debug: 78 25 command.c:155 script_debug(): command - expr [ string first "hla" $_TRANSPORT ] != -1
Debug: 79 25 command.c:155 script_debug(): command - cortex_m reset_config sysresetreq
Debug: 80 25 command.c:155 script_debug(): command - adapter speed 1000
Debug: 81 25 adapter.c:251 adapter_config_khz(): handle adapter khz
Debug: 82 26 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 83 26 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 84 26 command.c:155 script_debug(): command - init
Debug: 85 26 command.c:155 script_debug(): command - target init
Debug: 86 26 command.c:155 script_debug(): command - target names
Debug: 87 26 command.c:155 script_debug(): command - xmc4100.cpu cget -event gdb-flash-erase-start
Debug: 88 26 command.c:155 script_debug(): command - xmc4100.cpu configure -event gdb-flash-erase-start reset init
Debug: 89 26 command.c:155 script_debug(): command - xmc4100.cpu cget -event gdb-flash-write-end
Debug: 90 26 command.c:155 script_debug(): command - xmc4100.cpu configure -event gdb-flash-write-end reset halt
Debug: 91 26 command.c:155 script_debug(): command - xmc4100.cpu cget -event gdb-attach
Debug: 92 27 command.c:155 script_debug(): command - xmc4100.cpu configure -event gdb-attach halt 1000
Debug: 93 27 target.c:1657 handle_target_init_command(): Initializing targets...
Debug: 94 27 semihosting_common.c:109 semihosting_common_init():
Info : 95 28 bcm2835gpio.c:391 bcm2835gpio_init(): BCM2835 GPIO JTAG/SWD bitbang driver
Debug: 96 28 bcm2835gpio.c:133 initialize_gpio(): saved GPIO mode for swdio (GPIO 0 24): 0
Debug: 97 28 bcm2835gpio.c:133 initialize_gpio(): saved GPIO mode for swclk (GPIO 0 25): 0
Debug: 98 28 bcm2835gpio.c:471 bcm2835gpio_init(): BCM2835 GPIO using fast mode for SWD write
Debug: 99 28 bcm2835gpio.c:133 initialize_gpio(): saved GPIO mode for srst (GPIO 0 18): 0
Debug: 100 28 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 101 28 adapter.c:219 adapter_khz_to_speed(): have adapter set up
Debug: 102 28 adapter.c:215 adapter_khz_to_speed(): convert khz to adapter specific speed value
Debug: 103 28 adapter.c:219 adapter_khz_to_speed(): have adapter set up
Info : 104 29 adapter.c:179 adapter_init(): clock speed 1000 kHz
Debug: 105 29 openocd.c:134 handle_init_command(): Debug Adapter init complete
Debug: 106 29 command.c:155 script_debug(): command - transport init
Debug: 107 29 transport.c:219 handle_transport_init(): handle_transport_init
Debug: 108 29 command.c:155 script_debug(): command - dap init
Debug: 109 29 arm_dap.c:97 dap_init_all(): Initializing all DAPs ...
Debug: 110 29 arm_dap.c:121 dap_init_all(): DAP xmc4100.cpu configured by default to use ADIv5 protocol
Debug: 111 29 bitbang.c:419 bitbang_swd_switch_seq(): JTAG-to-SWD
Info : 112 29 adi_v5_swd.c:370 swd_connect_single(): SWD DPIDR 0x2ba01477
Debug: 113 29 arm_adi_v5.c:679 dap_dp_init(): xmc4100.dap
Debug: 114 30 arm_adi_v5.c:711 dap_dp_init(): DAP: wait CDBGPWRUPACK
Debug: 115 30 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000
Debug: 116 30 arm_adi_v5.c:719 dap_dp_init(): DAP: wait CSYSPWRUPACK
Debug: 117 30 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000
Debug: 118 30 openocd.c:151 handle_init_command(): Examining targets...
Debug: 119 30 target.c:1843 target_call_event_callbacks(): target event 19 (examine-start) for core xmc4100.cpu
Debug: 120 31 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 1
Debug: 121 31 arm_adi_v5.c:1038 dap_find_get_ap(): Found MEM-AP AHB3 at AP index: 0 (IDR=0x24770011)
Debug: 122 32 arm_adi_v5.c:825 mem_ap_init(): MEM_AP Packed Transfers: enabled
Debug: 123 32 arm_adi_v5.c:836 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
Debug: 124 32 target.c:2628 target_read_u32(): address: 0xe000ed00, value: 0x410fc241
Info : 125 32 cortex_m.c:2366 cortex_m_examine(): [xmc4100.cpu] Cortex-M4 r0p1 processor detected
Debug: 126 32 cortex_m.c:2381 cortex_m_examine(): [xmc4100.cpu] cpuid: 0x410fc241
Debug: 127 33 target.c:2628 target_read_u32(): address: 0xe000ef40, value: 0x10110021
Debug: 128 33 target.c:2628 target_read_u32(): address: 0xe000ef44, value: 0x11000011
Debug: 129 33 cortex_m.c:2389 cortex_m_examine(): [xmc4100.cpu] Cortex-M4 floating point feature FPv4_SP found
Debug: 130 34 target.c:2628 target_read_u32(): address: 0xe000edf0, value: 0x01010001
Debug: 131 34 target.c:2716 target_write_u32(): address: 0xe000edfc, value: 0x01000000
Debug: 132 35 target.c:2628 target_read_u32(): address: 0xe0002000, value: 0x00000261
Debug: 133 35 target.c:2716 target_write_u32(): address: 0xe0002008, value: 0x00000000
Debug: 134 35 target.c:2716 target_write_u32(): address: 0xe000200c, value: 0x00000000
Debug: 135 36 target.c:2716 target_write_u32(): address: 0xe0002010, value: 0x00000000
Debug: 136 36 target.c:2716 target_write_u32(): address: 0xe0002014, value: 0x00000000
Debug: 137 37 target.c:2716 target_write_u32(): address: 0xe0002018, value: 0x00000000
Debug: 138 37 target.c:2716 target_write_u32(): address: 0xe000201c, value: 0x00000000
Debug: 139 37 target.c:2716 target_write_u32(): address: 0xe0002020, value: 0x00000000
Debug: 140 38 target.c:2716 target_write_u32(): address: 0xe0002024, value: 0x00000000
Debug: 141 38 cortex_m.c:2485 cortex_m_examine(): [xmc4100.cpu] FPB fpcr 0x261, numcode 6, numlit 2
Debug: 142 39 target.c:2628 target_read_u32(): address: 0xe0001000, value: 0x40000000
Debug: 143 39 cortex_m.c:2197 cortex_m_dwt_setup(): [xmc4100.cpu] DWT_CTRL: 0x40000000
Debug: 144 40 target.c:2628 target_read_u32(): address: 0xe0001fbc, value: 0x00000000
Debug: 145 40 cortex_m.c:2204 cortex_m_dwt_setup(): [xmc4100.cpu] DWT_DEVARCH: 0x0
Debug: 146 40 target.c:2716 target_write_u32(): address: 0xe0001028, value: 0x00000000
Debug: 147 41 target.c:2716 target_write_u32(): address: 0xe0001038, value: 0x00000000
Debug: 148 41 target.c:2716 target_write_u32(): address: 0xe0001048, value: 0x00000000
Debug: 149 42 target.c:2716 target_write_u32(): address: 0xe0001058, value: 0x00000000
Debug: 150 42 cortex_m.c:2251 cortex_m_dwt_setup(): [xmc4100.cpu] DWT dwtcr 0x40000000, comp 4, watch/trigger
Info : 151 42 cortex_m.c:2495 cortex_m_examine(): [xmc4100.cpu] target has 6 breakpoints, 4 watchpoints
Debug: 152 42 target.c:1843 target_call_event_callbacks(): target event 21 (examine-end) for core xmc4100.cpu
Debug: 153 42 command.c:155 script_debug(): command - flash init
Debug: 154 43 tcl.c:1375 handle_flash_init_command(): Initializing flash devices...
Debug: 155 43 command.c:155 script_debug(): command - nand init
Debug: 156 43 tcl.c:487 handle_nand_init_command(): Initializing NAND devices...
Debug: 157 43 command.c:155 script_debug(): command - pld init
Debug: 158 43 pld.c:194 handle_pld_init_command(): Initializing PLDs...
Debug: 159 43 command.c:155 script_debug(): command - tpiu init
Info : 160 44 gdb_server.c:3791 gdb_target_start(): starting gdb server for xmc4100.cpu on 3333
Info : 161 44 server.c:297 add_service(): Listening on port 3333 for gdb connections
Debug: 162 44 command.c:155 script_debug(): command - targets
Debug: 163 45 command.c:155 script_debug(): command - targets current
Error: 164 45 command.c:1335 parse_ullong(): Invalid command argument
Debug: 165 46 command.c:544 run_command(): Command 'targets' failed with error code -4
User : 166 46 command.c:608 command_run_line(): Target: current is unknown, try one of:
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* xmc4100.cpu cortex_m little xmc4100.cpu running
Info : 167 46 server.c:297 add_service(): Listening on port 6666 for tcl connections
Info : 168 47 server.c:297 add_service(): Listening on port 4444 for telnet connections
Debug: 169 47 command.c:155 script_debug(): command - init
Info : 170 8702 server.c:90 add_connection(): accepting 'telnet' connection on tcp/4444
Debug: 171 19553 command.c:155 script_debug(): command - mww 0x20000000 0xaaaaaaaa 1
Debug: 172 23270 command.c:155 script_debug(): command - mdw 0x20000000 32
Debug: 173 30512 command.c:155 script_debug(): command - mww 0x20000000 0xaaaaaaaa 4
Debug: 174 34086 command.c:155 script_debug(): command - mdw 0x20000000 32
Debug: 175 59238 command.c:155 script_debug(): command - init
Debug: 176 59238 command.c:155 script_debug(): command - reset init
Debug: 177 59239 target.c:1862 target_call_reset_callbacks(): target reset 3 (init)
Debug: 178 59239 command.c:155 script_debug(): command - expr [catch {ocd_process_reset_inner $MODE} result] == 0
Debug: 179 59239 command.c:155 script_debug(): command - target names
Debug: 180 59239 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-start
Debug: 181 59239 command.c:155 script_debug(): command - transport select
Debug: 182 59239 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 183 59240 command.c:155 script_debug(): command - transport select
Debug: 184 59240 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 185 59240 command.c:155 script_debug(): command - xmc4100.cpu invoke-event examine-start
Debug: 186 59240 command.c:155 script_debug(): command - xmc4100.cpu arp_examine allow-defer
Debug: 187 59240 arm_adi_v5.c:1120 dap_put_ap(): refcount AP#0x0 put 0
Debug: 188 59240 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 1
Debug: 189 59241 arm_adi_v5.c:1038 dap_find_get_ap(): Found MEM-AP AHB3 at AP index: 0 (IDR=0x24770011)
Debug: 190 59241 arm_adi_v5.c:825 mem_ap_init(): MEM_AP Packed Transfers: enabled
Debug: 191 59242 arm_adi_v5.c:836 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
Debug: 192 59242 command.c:155 script_debug(): command - xmc4100.cpu invoke-event examine-end
Debug: 193 59242 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-assert-pre
Debug: 194 59242 command.c:155 script_debug(): command - transport select
Debug: 195 59242 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 196 59242 command.c:155 script_debug(): command - xmc4100.cpu arp_reset assert 1
Debug: 197 59242 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 198 59242 cortex_m.c:1411 cortex_m_assert_reset(): [xmc4100.cpu] target->state: running, examined
Debug: 199 59243 bcm2835gpio.c:233 bcm2835gpio_reset(): BCM2835 GPIO: bcm2835gpio_reset(0, 1), trst_gpio: -1 -1, srst_gpio: 0 18
Debug: 200 59243 core.c:636 adapter_system_reset(): SRST line asserted
Debug: 201 59395 cortex_m.c:996 cortex_m_halt(): [xmc4100.cpu] target->state: reset
Debug: 202 59395 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-assert-post
Debug: 203 59395 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-deassert-pre
Debug: 204 59395 command.c:155 script_debug(): command - transport select
Debug: 205 59396 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 206 59396 command.c:155 script_debug(): command - xmc4100.cpu arp_reset deassert 1
Debug: 207 59396 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 208 59396 cortex_m.c:1579 cortex_m_deassert_reset(): [xmc4100.cpu] target->state: reset, examined
Debug: 209 59396 bcm2835gpio.c:233 bcm2835gpio_reset(): BCM2835 GPIO: bcm2835gpio_reset(0, 0), trst_gpio: -1 -1, srst_gpio: 0 18
Debug: 210 59396 core.c:640 adapter_system_reset(): SRST line released
Debug: 211 59497 arm_adi_v5.c:754 dap_dp_init_or_reconnect(): xmc4100.dap
Debug: 212 59497 arm_adi_v5.c:679 dap_dp_init(): xmc4100.dap
Debug: 213 59497 arm_adi_v5.c:711 dap_dp_init(): DAP: wait CDBGPWRUPACK
Debug: 214 59497 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000
Debug: 215 59497 arm_adi_v5.c:719 dap_dp_init(): DAP: wait CSYSPWRUPACK
Debug: 216 59497 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000
Debug: 217 59498 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-deassert-post
Debug: 218 59498 command.c:155 script_debug(): command - transport select
Debug: 219 59498 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 220 59498 command.c:155 script_debug(): command - xmc4100.cpu was_examined
Debug: 221 59498 command.c:155 script_debug(): command - xmc4100.cpu arp_waitstate halted 1000
Debug: 222 59499 cortex_m.c:931 cortex_m_poll(): [xmc4100.cpu] Exit from reset with dcb_dhcsr 0x1010001
Debug: 223 59499 cortex_m.c:588 cortex_m_endreset_event(): [xmc4100.cpu] DCB_DEMCR = 0x01000501
Debug: 224 59499 target.c:2716 target_write_u32(): address: 0xe0002000, value: 0x00000003
Debug: 225 59500 target.c:2628 target_read_u32(): address: 0xe0002000, value: 0x00000261
Debug: 226 59500 target.c:2716 target_write_u32(): address: 0xe0002008, value: 0x00000000
Debug: 227 59500 target.c:2716 target_write_u32(): address: 0xe000200c, value: 0x00000000
Debug: 228 59500 target.c:2716 target_write_u32(): address: 0xe0002010, value: 0x00000000
Debug: 229 59500 target.c:2716 target_write_u32(): address: 0xe0002014, value: 0x00000000
Debug: 230 59500 target.c:2716 target_write_u32(): address: 0xe0002018, value: 0x00000000
Debug: 231 59500 target.c:2716 target_write_u32(): address: 0xe000201c, value: 0x00000000
Debug: 232 59500 target.c:2716 target_write_u32(): address: 0xe0002020, value: 0x00000000
Debug: 233 59501 target.c:2716 target_write_u32(): address: 0xe0002024, value: 0x00000000
Debug: 234 59501 target.c:2716 target_write_u32(): address: 0xe0001020, value: 0x00000000
Debug: 235 59501 target.c:2716 target_write_u32(): address: 0xe0001024, value: 0x00000000
Debug: 236 59501 target.c:2716 target_write_u32(): address: 0xe0001028, value: 0x00000000
Debug: 237 59501 target.c:2716 target_write_u32(): address: 0xe0001030, value: 0x00000000
Debug: 238 59501 target.c:2716 target_write_u32(): address: 0xe0001034, value: 0x00000000
Debug: 239 59501 target.c:2716 target_write_u32(): address: 0xe0001038, value: 0x00000000
Debug: 240 59502 target.c:2716 target_write_u32(): address: 0xe0001040, value: 0x00000000
Debug: 241 59502 target.c:2716 target_write_u32(): address: 0xe0001044, value: 0x00000000
Debug: 242 59502 target.c:2716 target_write_u32(): address: 0xe0001048, value: 0x00000000
Debug: 243 59502 target.c:2716 target_write_u32(): address: 0xe0001050, value: 0x00000000
Debug: 244 59502 target.c:2716 target_write_u32(): address: 0xe0001054, value: 0x00000000
Debug: 245 59502 target.c:2716 target_write_u32(): address: 0xe0001058, value: 0x00000000
Debug: 246 59503 target.c:3286 target_wait_state(): waiting for target halted...
Error: 247 60504 target.c:3294 target_wait_state(): timed out while waiting for target halted
Debug: 248 60504 command.c:155 script_debug(): command - xmc4100.cpu curstate
Debug: 249 60504 command.c:544 run_command(): Command 'reset' failed with error code -4
User : 250 60505 command.c:608 command_run_line(): embedded:startup.tcl:1516: Error: ** Unable to reset target **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1553
at file "embedded:startup.tcl", line 1516
Info : 251 64407 target.c:576 target_poll(): Halt timed out, wake up GDB.
Debug: 252 64408 target.c:1843 target_call_event_callbacks(): target event 0 (gdb-halt) for core xmc4100.cpu
Debug: 253 92033 command.c:155 script_debug(): command - init
Debug: 254 92034 command.c:155 script_debug(): command - reset init
Debug: 255 92035 target.c:1862 target_call_reset_callbacks(): target reset 3 (init)
Debug: 256 92035 command.c:155 script_debug(): command - expr [catch {ocd_process_reset_inner $MODE} result] == 0
Debug: 257 92035 command.c:155 script_debug(): command - target names
Debug: 258 92035 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-start
Debug: 259 92036 command.c:155 script_debug(): command - transport select
Debug: 260 92036 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 261 92036 command.c:155 script_debug(): command - transport select
Debug: 262 92036 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 263 92036 command.c:155 script_debug(): command - xmc4100.cpu invoke-event examine-start
Debug: 264 92036 command.c:155 script_debug(): command - xmc4100.cpu arp_examine allow-defer
Debug: 265 92036 arm_adi_v5.c:1120 dap_put_ap(): refcount AP#0x0 put 0
Debug: 266 92036 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 1
Debug: 267 92037 arm_adi_v5.c:1038 dap_find_get_ap(): Found MEM-AP AHB3 at AP index: 0 (IDR=0x24770011)
Debug: 268 92038 arm_adi_v5.c:825 mem_ap_init(): MEM_AP Packed Transfers: enabled
Debug: 269 92038 arm_adi_v5.c:836 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
Debug: 270 92038 command.c:155 script_debug(): command - xmc4100.cpu invoke-event examine-end
Debug: 271 92038 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-assert-pre
Debug: 272 92038 command.c:155 script_debug(): command - transport select
Debug: 273 92038 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 274 92038 command.c:155 script_debug(): command - xmc4100.cpu arp_reset assert 1
Debug: 275 92038 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 276 92038 cortex_m.c:1411 cortex_m_assert_reset(): [xmc4100.cpu] target->state: running, examined
Debug: 277 92039 bcm2835gpio.c:233 bcm2835gpio_reset(): BCM2835 GPIO: bcm2835gpio_reset(0, 1), trst_gpio: -1 -1, srst_gpio: 0 18
Debug: 278 92039 core.c:636 adapter_system_reset(): SRST line asserted
Debug: 279 92192 cortex_m.c:996 cortex_m_halt(): [xmc4100.cpu] target->state: reset
Debug: 280 92192 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-assert-post
Debug: 281 92192 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-deassert-pre
Debug: 282 92192 command.c:155 script_debug(): command - transport select
Debug: 283 92192 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 284 92193 command.c:155 script_debug(): command - xmc4100.cpu arp_reset deassert 1
Debug: 285 92193 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 286 92193 cortex_m.c:1579 cortex_m_deassert_reset(): [xmc4100.cpu] target->state: reset, examined
Debug: 287 92193 bcm2835gpio.c:233 bcm2835gpio_reset(): BCM2835 GPIO: bcm2835gpio_reset(0, 0), trst_gpio: -1 -1, srst_gpio: 0 18
Debug: 288 92193 core.c:640 adapter_system_reset(): SRST line released
Debug: 289 92294 arm_adi_v5.c:754 dap_dp_init_or_reconnect(): xmc4100.dap
Debug: 290 92294 arm_adi_v5.c:679 dap_dp_init(): xmc4100.dap
Debug: 291 92294 arm_adi_v5.c:711 dap_dp_init(): DAP: wait CDBGPWRUPACK
Debug: 292 92294 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000
Debug: 293 92294 arm_adi_v5.c:719 dap_dp_init(): DAP: wait CSYSPWRUPACK
Debug: 294 92294 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000
Debug: 295 92294 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-deassert-post
Debug: 296 92294 command.c:155 script_debug(): command - transport select
Debug: 297 92294 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 298 92294 command.c:155 script_debug(): command - xmc4100.cpu was_examined
Debug: 299 92295 command.c:155 script_debug(): command - xmc4100.cpu arp_waitstate halted 1000
Debug: 300 92295 cortex_m.c:931 cortex_m_poll(): [xmc4100.cpu] Exit from reset with dcb_dhcsr 0x1010001
Debug: 301 92295 cortex_m.c:588 cortex_m_endreset_event(): [xmc4100.cpu] DCB_DEMCR = 0x01000501
Debug: 302 92295 target.c:2716 target_write_u32(): address: 0xe0002000, value: 0x00000003
Debug: 303 92295 target.c:2628 target_read_u32(): address: 0xe0002000, value: 0x00000261
Debug: 304 92296 target.c:2716 target_write_u32(): address: 0xe0002008, value: 0x00000000
Debug: 305 92296 target.c:2716 target_write_u32(): address: 0xe000200c, value: 0x00000000
Debug: 306 92296 target.c:2716 target_write_u32(): address: 0xe0002010, value: 0x00000000
Debug: 307 92296 target.c:2716 target_write_u32(): address: 0xe0002014, value: 0x00000000
Debug: 308 92296 target.c:2716 target_write_u32(): address: 0xe0002018, value: 0x00000000
Debug: 309 92296 target.c:2716 target_write_u32(): address: 0xe000201c, value: 0x00000000
Debug: 310 92296 target.c:2716 target_write_u32(): address: 0xe0002020, value: 0x00000000
Debug: 311 92296 target.c:2716 target_write_u32(): address: 0xe0002024, value: 0x00000000
Debug: 312 92296 target.c:2716 target_write_u32(): address: 0xe0001020, value: 0x00000000
Debug: 313 92296 target.c:2716 target_write_u32(): address: 0xe0001024, value: 0x00000000
Debug: 314 92296 target.c:2716 target_write_u32(): address: 0xe0001028, value: 0x00000000
Debug: 315 92296 target.c:2716 target_write_u32(): address: 0xe0001030, value: 0x00000000
Debug: 316 92297 target.c:2716 target_write_u32(): address: 0xe0001034, value: 0x00000000
Debug: 317 92297 target.c:2716 target_write_u32(): address: 0xe0001038, value: 0x00000000
Debug: 318 92297 target.c:2716 target_write_u32(): address: 0xe0001040, value: 0x00000000
Debug: 319 92297 target.c:2716 target_write_u32(): address: 0xe0001044, value: 0x00000000
Debug: 320 92297 target.c:2716 target_write_u32(): address: 0xe0001048, value: 0x00000000
Debug: 321 92297 target.c:2716 target_write_u32(): address: 0xe0001050, value: 0x00000000
Debug: 322 92297 target.c:2716 target_write_u32(): address: 0xe0001054, value: 0x00000000
Debug: 323 92297 target.c:2716 target_write_u32(): address: 0xe0001058, value: 0x00000000
Debug: 324 92298 target.c:3286 target_wait_state(): waiting for target halted...
Error: 325 93299 target.c:3294 target_wait_state(): timed out while waiting for target halted
Debug: 326 93299 command.c:155 script_debug(): command - xmc4100.cpu curstate
Debug: 327 93299 command.c:544 run_command(): Command 'reset' failed with error code -4
User : 328 93300 command.c:608 command_run_line(): embedded:startup.tcl:1516: Error: ** Unable to reset target **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1553
at file "embedded:startup.tcl", line 1516
Info : 329 97203 target.c:576 target_poll(): Halt timed out, wake up GDB.
Debug: 330 97206 target.c:1843 target_call_event_callbacks(): target event 0 (gdb-halt) for core xmc4100.cpu
Debug: 331 126347 command.c:155 script_debug(): command - init
Debug: 332 126347 command.c:155 script_debug(): command - reset init
Debug: 333 126348 target.c:1862 target_call_reset_callbacks(): target reset 3 (init)
Debug: 334 126348 command.c:155 script_debug(): command - expr [catch {ocd_process_reset_inner $MODE} result] == 0
Debug: 335 126348 command.c:155 script_debug(): command - target names
Debug: 336 126348 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-start
Debug: 337 126348 command.c:155 script_debug(): command - transport select
Debug: 338 126348 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 339 126348 command.c:155 script_debug(): command - transport select
Debug: 340 126348 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 341 126348 command.c:155 script_debug(): command - xmc4100.cpu invoke-event examine-start
Debug: 342 126348 command.c:155 script_debug(): command - xmc4100.cpu arp_examine allow-defer
Debug: 343 126349 arm_adi_v5.c:1120 dap_put_ap(): refcount AP#0x0 put 0
Debug: 344 126349 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 1
Debug: 345 126349 arm_adi_v5.c:1038 dap_find_get_ap(): Found MEM-AP AHB3 at AP index: 0 (IDR=0x24770011)
Debug: 346 126350 arm_adi_v5.c:825 mem_ap_init(): MEM_AP Packed Transfers: enabled
Debug: 347 126350 arm_adi_v5.c:836 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
Debug: 348 126350 command.c:155 script_debug(): command - xmc4100.cpu invoke-event examine-end
Debug: 349 126350 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-assert-pre
Debug: 350 126350 command.c:155 script_debug(): command - transport select
Debug: 351 126351 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 352 126351 command.c:155 script_debug(): command - xmc4100.cpu arp_reset assert 1
Debug: 353 126351 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 354 126351 cortex_m.c:1411 cortex_m_assert_reset(): [xmc4100.cpu] target->state: running, examined
Debug: 355 126351 bcm2835gpio.c:233 bcm2835gpio_reset(): BCM2835 GPIO: bcm2835gpio_reset(0, 1), trst_gpio: -1 -1, srst_gpio: 0 18
Debug: 356 126351 core.c:636 adapter_system_reset(): SRST line asserted
Debug: 357 126504 cortex_m.c:996 cortex_m_halt(): [xmc4100.cpu] target->state: reset
Debug: 358 126504 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-assert-post
Debug: 359 126504 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-deassert-pre
Debug: 360 126504 command.c:155 script_debug(): command - transport select
Debug: 361 126504 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 362 126504 command.c:155 script_debug(): command - xmc4100.cpu arp_reset deassert 1
Debug: 363 126504 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 364 126504 cortex_m.c:1579 cortex_m_deassert_reset(): [xmc4100.cpu] target->state: reset, examined
Debug: 365 126504 bcm2835gpio.c:233 bcm2835gpio_reset(): BCM2835 GPIO: bcm2835gpio_reset(0, 0), trst_gpio: -1 -1, srst_gpio: 0 18
Debug: 366 126504 core.c:640 adapter_system_reset(): SRST line released
Debug: 367 126605 arm_adi_v5.c:754 dap_dp_init_or_reconnect(): xmc4100.dap
Debug: 368 126605 arm_adi_v5.c:679 dap_dp_init(): xmc4100.dap
Debug: 369 126605 arm_adi_v5.c:711 dap_dp_init(): DAP: wait CDBGPWRUPACK
Debug: 370 126605 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000
Debug: 371 126605 arm_adi_v5.c:719 dap_dp_init(): DAP: wait CSYSPWRUPACK
Debug: 372 126605 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000
Debug: 373 126606 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-deassert-post
Debug: 374 126606 command.c:155 script_debug(): command - transport select
Debug: 375 126606 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 376 126606 command.c:155 script_debug(): command - xmc4100.cpu was_examined
Debug: 377 126606 command.c:155 script_debug(): command - xmc4100.cpu arp_waitstate halted 1000
Debug: 378 126606 cortex_m.c:931 cortex_m_poll(): [xmc4100.cpu] Exit from reset with dcb_dhcsr 0x1010001
Debug: 379 126606 cortex_m.c:588 cortex_m_endreset_event(): [xmc4100.cpu] DCB_DEMCR = 0x01000501
Debug: 380 126606 target.c:2716 target_write_u32(): address: 0xe0002000, value: 0x00000003
Debug: 381 126607 target.c:2628 target_read_u32(): address: 0xe0002000, value: 0x00000261
Debug: 382 126607 target.c:2716 target_write_u32(): address: 0xe0002008, value: 0x00000000
Debug: 383 126607 target.c:2716 target_write_u32(): address: 0xe000200c, value: 0x00000000
Debug: 384 126607 target.c:2716 target_write_u32(): address: 0xe0002010, value: 0x00000000
Debug: 385 126607 target.c:2716 target_write_u32(): address: 0xe0002014, value: 0x00000000
Debug: 386 126607 target.c:2716 target_write_u32(): address: 0xe0002018, value: 0x00000000
Debug: 387 126607 target.c:2716 target_write_u32(): address: 0xe000201c, value: 0x00000000
Debug: 388 126607 target.c:2716 target_write_u32(): address: 0xe0002020, value: 0x00000000
Debug: 389 126607 target.c:2716 target_write_u32(): address: 0xe0002024, value: 0x00000000
Debug: 390 126607 target.c:2716 target_write_u32(): address: 0xe0001020, value: 0x00000000
Debug: 391 126608 target.c:2716 target_write_u32(): address: 0xe0001024, value: 0x00000000
Debug: 392 126608 target.c:2716 target_write_u32(): address: 0xe0001028, value: 0x00000000
Debug: 393 126608 target.c:2716 target_write_u32(): address: 0xe0001030, value: 0x00000000
Debug: 394 126608 target.c:2716 target_write_u32(): address: 0xe0001034, value: 0x00000000
Debug: 395 126608 target.c:2716 target_write_u32(): address: 0xe0001038, value: 0x00000000
Debug: 396 126608 target.c:2716 target_write_u32(): address: 0xe0001040, value: 0x00000000
Debug: 397 126608 target.c:2716 target_write_u32(): address: 0xe0001044, value: 0x00000000
Debug: 398 126608 target.c:2716 target_write_u32(): address: 0xe0001048, value: 0x00000000
Debug: 399 126608 target.c:2716 target_write_u32(): address: 0xe0001050, value: 0x00000000
Debug: 400 126608 target.c:2716 target_write_u32(): address: 0xe0001054, value: 0x00000000
Debug: 401 126608 target.c:2716 target_write_u32(): address: 0xe0001058, value: 0x00000000
Debug: 402 126609 target.c:3286 target_wait_state(): waiting for target halted...
Error: 403 127610 target.c:3294 target_wait_state(): timed out while waiting for target halted
Debug: 404 127610 command.c:155 script_debug(): command - xmc4100.cpu curstate
Debug: 405 127611 command.c:544 run_command(): Command 'reset' failed with error code -4
User : 406 127611 command.c:608 command_run_line(): embedded:startup.tcl:1516: Error: ** Unable to reset target **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1553
at file "embedded:startup.tcl", line 1516
Info : 407 131514 target.c:576 target_poll(): Halt timed out, wake up GDB.
Debug: 408 131517 target.c:1843 target_call_event_callbacks(): target event 0 (gdb-halt) for core xmc4100.cpu
Debug: 409 145828 command.c:155 script_debug(): command - init
Debug: 410 145829 command.c:155 script_debug(): command - reset init
Debug: 411 145829 target.c:1862 target_call_reset_callbacks(): target reset 3 (init)
Debug: 412 145830 command.c:155 script_debug(): command - expr [catch {ocd_process_reset_inner $MODE} result] == 0
Debug: 413 145830 command.c:155 script_debug(): command - target names
Debug: 414 145830 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-start
Debug: 415 145830 command.c:155 script_debug(): command - transport select
Debug: 416 145830 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 417 145830 command.c:155 script_debug(): command - transport select
Debug: 418 145830 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 419 145830 command.c:155 script_debug(): command - xmc4100.cpu invoke-event examine-start
Debug: 420 145830 command.c:155 script_debug(): command - xmc4100.cpu arp_examine allow-defer
Debug: 421 145830 arm_adi_v5.c:1120 dap_put_ap(): refcount AP#0x0 put 0
Debug: 422 145830 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 1
Debug: 423 145831 arm_adi_v5.c:1038 dap_find_get_ap(): Found MEM-AP AHB3 at AP index: 0 (IDR=0x24770011)
Debug: 424 145832 arm_adi_v5.c:825 mem_ap_init(): MEM_AP Packed Transfers: enabled
Debug: 425 145832 arm_adi_v5.c:836 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0
Debug: 426 145832 command.c:155 script_debug(): command - xmc4100.cpu invoke-event examine-end
Debug: 427 145832 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-assert-pre
Debug: 428 145832 command.c:155 script_debug(): command - transport select
Debug: 429 145832 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 430 145832 command.c:155 script_debug(): command - xmc4100.cpu arp_reset assert 1
Debug: 431 145832 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 432 145833 cortex_m.c:1411 cortex_m_assert_reset(): [xmc4100.cpu] target->state: running, examined
Debug: 433 145833 bcm2835gpio.c:233 bcm2835gpio_reset(): BCM2835 GPIO: bcm2835gpio_reset(0, 1), trst_gpio: -1 -1, srst_gpio: 0 18
Debug: 434 145833 core.c:636 adapter_system_reset(): SRST line asserted
Debug: 435 145986 cortex_m.c:996 cortex_m_halt(): [xmc4100.cpu] target->state: reset
Debug: 436 145986 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-assert-post
Debug: 437 145986 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-deassert-pre
Debug: 438 145986 command.c:155 script_debug(): command - transport select
Debug: 439 145986 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 440 145986 command.c:155 script_debug(): command - xmc4100.cpu arp_reset deassert 1
Debug: 441 145986 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 442 145986 cortex_m.c:1579 cortex_m_deassert_reset(): [xmc4100.cpu] target->state: reset, examined
Debug: 443 145986 bcm2835gpio.c:233 bcm2835gpio_reset(): BCM2835 GPIO: bcm2835gpio_reset(0, 0), trst_gpio: -1 -1, srst_gpio: 0 18
Debug: 444 145986 core.c:640 adapter_system_reset(): SRST line released
Debug: 445 146088 arm_adi_v5.c:754 dap_dp_init_or_reconnect(): xmc4100.dap
Debug: 446 146088 arm_adi_v5.c:679 dap_dp_init(): xmc4100.dap
Debug: 447 146088 arm_adi_v5.c:711 dap_dp_init(): DAP: wait CDBGPWRUPACK
Debug: 448 146088 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000
Debug: 449 146088 arm_adi_v5.c:719 dap_dp_init(): DAP: wait CSYSPWRUPACK
Debug: 450 146088 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000
Debug: 451 146088 command.c:155 script_debug(): command - xmc4100.cpu invoke-event reset-deassert-post
Debug: 452 146089 command.c:155 script_debug(): command - transport select
Debug: 453 146089 command.c:155 script_debug(): command - expr [ string first "jtag" $_TRANSPORT ] != -1
Debug: 454 146089 command.c:155 script_debug(): command - xmc4100.cpu was_examined
Debug: 455 146089 command.c:155 script_debug(): command - xmc4100.cpu arp_waitstate halted 1000
Debug: 456 146089 cortex_m.c:931 cortex_m_poll(): [xmc4100.cpu] Exit from reset with dcb_dhcsr 0x1010001
Debug: 457 146089 cortex_m.c:588 cortex_m_endreset_event(): [xmc4100.cpu] DCB_DEMCR = 0x01000501
Debug: 458 146090 target.c:2716 target_write_u32(): address: 0xe0002000, value: 0x00000003
Debug: 459 146090 target.c:2628 target_read_u32(): address: 0xe0002000, value: 0x00000261
Debug: 460 146090 target.c:2716 target_write_u32(): address: 0xe0002008, value: 0x00000000
Debug: 461 146090 target.c:2716 target_write_u32(): address: 0xe000200c, value: 0x00000000
Debug: 462 146091 target.c:2716 target_write_u32(): address: 0xe0002010, value: 0x00000000
Debug: 463 146091 target.c:2716 target_write_u32(): address: 0xe0002014, value: 0x00000000
Debug: 464 146091 target.c:2716 target_write_u32(): address: 0xe0002018, value: 0x00000000
Debug: 465 146091 target.c:2716 target_write_u32(): address: 0xe000201c, value: 0x00000000
Debug: 466 146091 target.c:2716 target_write_u32(): address: 0xe0002020, value: 0x00000000
Debug: 467 146091 target.c:2716 target_write_u32(): address: 0xe0002024, value: 0x00000000
Debug: 468 146091 target.c:2716 target_write_u32(): address: 0xe0001020, value: 0x00000000
Debug: 469 146092 target.c:2716 target_write_u32(): address: 0xe0001024, value: 0x00000000
Debug: 470 146092 target.c:2716 target_write_u32(): address: 0xe0001028, value: 0x00000000
Debug: 471 146092 target.c:2716 target_write_u32(): address: 0xe0001030, value: 0x00000000
Debug: 472 146092 target.c:2716 target_write_u32(): address: 0xe0001034, value: 0x00000000
Debug: 473 146092 target.c:2716 target_write_u32(): address: 0xe0001038, value: 0x00000000
Debug: 474 146092 target.c:2716 target_write_u32(): address: 0xe0001040, value: 0x00000000
Debug: 475 146092 target.c:2716 target_write_u32(): address: 0xe0001044, value: 0x00000000
Debug: 476 146093 target.c:2716 target_write_u32(): address: 0xe0001048, value: 0x00000000
Debug: 477 146093 target.c:2716 target_write_u32(): address: 0xe0001050, value: 0x00000000
Debug: 478 146093 target.c:2716 target_write_u32(): address: 0xe0001054, value: 0x00000000
Debug: 479 146093 target.c:2716 target_write_u32(): address: 0xe0001058, value: 0x00000000
Debug: 480 146093 target.c:3286 target_wait_state(): waiting for target halted...
Error: 481 147094 target.c:3294 target_wait_state(): timed out while waiting for target halted
Debug: 482 147094 command.c:155 script_debug(): command - xmc4100.cpu curstate
Debug: 483 147094 command.c:544 run_command(): Command 'reset' failed with error code -4
User : 484 147095 command.c:608 command_run_line(): embedded:startup.tcl:1516: Error: ** Unable to reset target **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1553
at file "embedded:startup.tcl", line 1516
Info : 485 150998 target.c:576 target_poll(): Halt timed out, wake up GDB.
Debug: 486 151000 target.c:1843 target_call_event_callbacks(): target event 0 (gdb-halt) for core xmc4100.cpu
Debug: 487 158982 server.c:607 sig_handler(): Terminating on Signal 2
Debug: 488 158984 command.c:155 script_debug(): command - shutdown
User : 489 158984 server.c:758 handle_shutdown_command(): shutdown command invoked
Debug: 490 158987 arm_adi_v5.c:1120 dap_put_ap(): refcount AP#0x0 put 0
Debug: 491 158987 target.c:2199 target_free_all_working_areas_restore(): freeing all working areas
Debug: 492 158990 bitbang.c:427 bitbang_swd_switch_seq(): SWD-to-JTAG
|