I attached telo.cfg that I used for testing with the dummy driver.
'hangs.log' is with the reset_init and nohang.log is with that procedure
removed.

It looks like the openocd does not hang but rather skips the initial
scan when reset_init exits. The result is similar to the user as I can't
access my devices on the chain.




On Sun, 2009-10-18 at 17:33 +0200, Øyvind Harboe wrote:
> --enable-dummy
Debug: 11 2 command.c:68 script_debug(): command - interface
Debug: 12 2 command.c:77 script_debug(): interface - argv[0]=ocd_interface
Debug: 13 2 command.c:77 script_debug(): interface - argv[1]=dummy
Debug: 14 2 configuration.c:83 find_file(): found telo.cfg
Debug: 15 2 configuration.c:83 find_file(): found c100.cfg
Debug: 17 2 command.c:68 script_debug(): command - jtag_khz
Debug: 18 2 command.c:77 script_debug(): jtag_khz - argv[0]=ocd_jtag_khz
Debug: 19 3 command.c:77 script_debug(): jtag_khz - argv[1]=100
Debug: 20 3 core.c:1479 jtag_config_khz(): handle jtag khz
Debug: 21 3 core.c:1435 jtag_khz_to_speed(): convert khz to interface specific speed value
User : 22 3 command.c:400 command_print(): 100 kHz
Debug: 23 3 tcl.c:246 jim_newtap_cmd(): Creating New Tap, Chip: c100, Tap: dsp, Dotted: c100.dsp, 8 params
Debug: 24 3 tcl.c:266 jim_newtap_cmd(): Processing option: -irlen
Debug: 25 3 tcl.c:266 jim_newtap_cmd(): Processing option: -ircapture
Debug: 26 3 tcl.c:266 jim_newtap_cmd(): Processing option: -irmask
Debug: 27 3 tcl.c:266 jim_newtap_cmd(): Processing option: -expected-id
Debug: 28 3 core.c:1225 jtag_tap_init(): Created Tap: c100.dsp @ abs position 0, irlen 5, capture: 0x1 mask: 0x1f
Debug: 29 3 tcl.c:246 jim_newtap_cmd(): Creating New Tap, Chip: c100, Tap: cpu, Dotted: c100.cpu, 8 params
Debug: 30 3 tcl.c:266 jim_newtap_cmd(): Processing option: -irlen
Debug: 31 3 tcl.c:266 jim_newtap_cmd(): Processing option: -ircapture
Debug: 32 3 tcl.c:266 jim_newtap_cmd(): Processing option: -irmask
Debug: 33 3 tcl.c:266 jim_newtap_cmd(): Processing option: -expected-id
Debug: 34 3 core.c:1225 jtag_tap_init(): Created Tap: c100.cpu @ abs position 0, irlen 5, capture: 0x1 mask: 0x1f
Debug: 35 3 target.c:4368 jim_target(): Target command params:
Debug: 36 3 target.c:4369 jim_target(): target create c100.cpu arm11 -endian little -chain-position c100.cpu 
Debug: 37 6 configuration.c:83 find_file(): found c100regs.tcl
Debug: 38 7 configuration.c:83 find_file(): found c100config.tcl
Debug: 39 7 configuration.c:83 find_file(): found c100helper.tcl
Debug: 41 8 command.c:68 script_debug(): command - jtag_nsrst_assert_width
Debug: 42 8 command.c:77 script_debug(): jtag_nsrst_assert_width - argv[0]=ocd_jtag_nsrst_assert_width
Debug: 43 8 command.c:77 script_debug(): jtag_nsrst_assert_width - argv[1]=100
User : 44 8 command.c:400 command_print(): jtag_nsrst_assert_width: 100
Debug: 46 8 command.c:68 script_debug(): command - jtag_ntrst_assert_width
Debug: 47 8 command.c:77 script_debug(): jtag_ntrst_assert_width - argv[0]=ocd_jtag_ntrst_assert_width
Debug: 48 8 command.c:77 script_debug(): jtag_ntrst_assert_width - argv[1]=100
User : 49 8 command.c:400 command_print(): jtag_ntrst_assert_width: 100
Debug: 51 8 command.c:68 script_debug(): command - jtag_nsrst_delay
Debug: 52 8 command.c:77 script_debug(): jtag_nsrst_delay - argv[0]=ocd_jtag_nsrst_delay
Debug: 53 8 command.c:77 script_debug(): jtag_nsrst_delay - argv[1]=100
User : 54 8 command.c:400 command_print(): jtag_nsrst_delay: 100
Debug: 56 8 command.c:68 script_debug(): command - jtag_ntrst_delay
Debug: 57 8 command.c:77 script_debug(): jtag_ntrst_delay - argv[0]=ocd_jtag_ntrst_delay
Debug: 58 8 command.c:77 script_debug(): jtag_ntrst_delay - argv[1]=100
User : 59 8 command.c:400 command_print(): jtag_ntrst_delay: 100
Debug: 61 8 command.c:68 script_debug(): command - reset_config
Debug: 62 8 command.c:77 script_debug(): reset_config - argv[0]=ocd_reset_config
Debug: 63 8 command.c:77 script_debug(): reset_config - argv[1]=trst_and_srst
Debug: 64 9 command.c:77 script_debug(): reset_config - argv[2]=separate
User : 65 9 command.c:400 command_print(): trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
Debug: 67 9 command.c:68 script_debug(): command - bank
Debug: 68 9 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank
Debug: 69 9 command.c:77 script_debug(): bank - argv[1]=cfi
Debug: 70 9 command.c:77 script_debug(): bank - argv[2]=0x20000000
Debug: 71 9 command.c:77 script_debug(): bank - argv[3]=0x01000000
Debug: 72 9 command.c:77 script_debug(): bank - argv[4]=2
Debug: 73 9 command.c:77 script_debug(): bank - argv[5]=2
Debug: 74 9 command.c:77 script_debug(): bank - argv[6]=c100.cpu
Debug: 76 9 command.c:68 script_debug(): command - burst
Debug: 77 9 command.c:77 script_debug(): burst - argv[0]=ocd_memwrite_burst
Debug: 78 9 command.c:77 script_debug(): burst - argv[1]=disable
Info : 79 9 arm11.c:2022 arm11_handle_bool(): Disabled memory write burst mode.
User : 81 9 command.c:513 command_run_line(): 
Debug: 83 9 command.c:68 script_debug(): command - init
Debug: 84 9 command.c:77 script_debug(): init - argv[0]=ocd_init
Debug: 85 10 openocd.c:129 handle_init_command(): target init complete
Debug: 86 10 core.c:1435 jtag_khz_to_speed(): convert khz to interface specific speed value
Debug: 87 10 core.c:1439 jtag_khz_to_speed(): have interface set up
Info : 88 10 core.c:1275 jtag_interface_init(): clock speed 100 kHz
Debug: 89 10 openocd.c:136 handle_init_command(): jtag interface init complete
Debug: 90 10 dummy.c:129 dummy_reset(): reset to: RESET
Debug: 91 10 core.c:700 jtag_add_reset(): SRST line released
Debug: 92 11 core.c:725 jtag_add_reset(): TRST line released
Debug: 93 11 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 94 213 openocd.c:151 handle_init_command(): flash init complete
Debug: 95 213 openocd.c:155 handle_init_command(): mflash init complete
Debug: 96 213 openocd.c:159 handle_init_command(): NAND init complete
Debug: 97 214 openocd.c:163 handle_init_command(): pld init complete
Debug: 98 214 gdb_server.c:2272 gdb_init(): gdb service for target arm11 at TCP port 3333
Debug: 99 224 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 100 325 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 101 426 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 102 528 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 103 629 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 104 730 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 105 831 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 106 933 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 107 1034 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 108 1136 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 109 1237 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 110 1338 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 111 1440 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 112 1541 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 113 1642 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 114 1744 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 115 1845 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 116 1946 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 117 2048 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 118 2149 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 119 2250 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 120 2352 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 121 2453 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 11 1 command.c:68 script_debug(): command - interface
Debug: 12 1 command.c:77 script_debug(): interface - argv[0]=ocd_interface
Debug: 13 1 command.c:77 script_debug(): interface - argv[1]=dummy
Debug: 14 1 configuration.c:83 find_file(): found telo.cfg
Debug: 15 2 configuration.c:83 find_file(): found c100.cfg
Debug: 17 2 command.c:68 script_debug(): command - jtag_khz
Debug: 18 2 command.c:77 script_debug(): jtag_khz - argv[0]=ocd_jtag_khz
Debug: 19 2 command.c:77 script_debug(): jtag_khz - argv[1]=100
Debug: 20 2 core.c:1479 jtag_config_khz(): handle jtag khz
Debug: 21 2 core.c:1435 jtag_khz_to_speed(): convert khz to interface specific speed value
User : 22 2 command.c:400 command_print(): 100 kHz
Debug: 23 2 tcl.c:246 jim_newtap_cmd(): Creating New Tap, Chip: c100, Tap: dsp, Dotted: c100.dsp, 8 params
Debug: 24 2 tcl.c:266 jim_newtap_cmd(): Processing option: -irlen
Debug: 25 2 tcl.c:266 jim_newtap_cmd(): Processing option: -ircapture
Debug: 26 2 tcl.c:266 jim_newtap_cmd(): Processing option: -irmask
Debug: 27 2 tcl.c:266 jim_newtap_cmd(): Processing option: -expected-id
Debug: 28 2 core.c:1225 jtag_tap_init(): Created Tap: c100.dsp @ abs position 0, irlen 5, capture: 0x1 mask: 0x1f
Debug: 29 2 tcl.c:246 jim_newtap_cmd(): Creating New Tap, Chip: c100, Tap: cpu, Dotted: c100.cpu, 8 params
Debug: 30 2 tcl.c:266 jim_newtap_cmd(): Processing option: -irlen
Debug: 31 2 tcl.c:266 jim_newtap_cmd(): Processing option: -ircapture
Debug: 32 3 tcl.c:266 jim_newtap_cmd(): Processing option: -irmask
Debug: 33 3 tcl.c:266 jim_newtap_cmd(): Processing option: -expected-id
Debug: 34 3 core.c:1225 jtag_tap_init(): Created Tap: c100.cpu @ abs position 0, irlen 5, capture: 0x1 mask: 0x1f
Debug: 35 3 target.c:4368 jim_target(): Target command params:
Debug: 36 3 target.c:4369 jim_target(): target create c100.cpu arm11 -endian little -chain-position c100.cpu 
Debug: 37 3 configuration.c:83 find_file(): found c100regs.tcl
Debug: 38 4 configuration.c:83 find_file(): found c100config.tcl
Debug: 39 4 configuration.c:83 find_file(): found c100helper.tcl
Debug: 41 5 command.c:68 script_debug(): command - jtag_nsrst_assert_width
Debug: 42 5 command.c:77 script_debug(): jtag_nsrst_assert_width - argv[0]=ocd_jtag_nsrst_assert_width
Debug: 43 5 command.c:77 script_debug(): jtag_nsrst_assert_width - argv[1]=100
User : 44 5 command.c:400 command_print(): jtag_nsrst_assert_width: 100
Debug: 46 5 command.c:68 script_debug(): command - jtag_ntrst_assert_width
Debug: 47 5 command.c:77 script_debug(): jtag_ntrst_assert_width - argv[0]=ocd_jtag_ntrst_assert_width
Debug: 48 5 command.c:77 script_debug(): jtag_ntrst_assert_width - argv[1]=100
User : 49 5 command.c:400 command_print(): jtag_ntrst_assert_width: 100
Debug: 51 5 command.c:68 script_debug(): command - jtag_nsrst_delay
Debug: 52 5 command.c:77 script_debug(): jtag_nsrst_delay - argv[0]=ocd_jtag_nsrst_delay
Debug: 53 5 command.c:77 script_debug(): jtag_nsrst_delay - argv[1]=100
User : 54 5 command.c:400 command_print(): jtag_nsrst_delay: 100
Debug: 56 5 command.c:68 script_debug(): command - jtag_ntrst_delay
Debug: 57 5 command.c:77 script_debug(): jtag_ntrst_delay - argv[0]=ocd_jtag_ntrst_delay
Debug: 58 5 command.c:77 script_debug(): jtag_ntrst_delay - argv[1]=100
User : 59 5 command.c:400 command_print(): jtag_ntrst_delay: 100
Debug: 61 6 command.c:68 script_debug(): command - reset_config
Debug: 62 6 command.c:77 script_debug(): reset_config - argv[0]=ocd_reset_config
Debug: 63 6 command.c:77 script_debug(): reset_config - argv[1]=trst_and_srst
Debug: 64 6 command.c:77 script_debug(): reset_config - argv[2]=separate
User : 65 6 command.c:400 command_print(): trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
Debug: 67 6 command.c:68 script_debug(): command - bank
Debug: 68 6 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank
Debug: 69 6 command.c:77 script_debug(): bank - argv[1]=cfi
Debug: 70 6 command.c:77 script_debug(): bank - argv[2]=0x20000000
Debug: 71 6 command.c:77 script_debug(): bank - argv[3]=0x01000000
Debug: 72 6 command.c:77 script_debug(): bank - argv[4]=2
Debug: 73 6 command.c:77 script_debug(): bank - argv[5]=2
Debug: 74 6 command.c:77 script_debug(): bank - argv[6]=c100.cpu
Debug: 76 6 command.c:68 script_debug(): command - burst
Debug: 77 6 command.c:77 script_debug(): burst - argv[0]=ocd_memwrite_burst
Debug: 78 6 command.c:77 script_debug(): burst - argv[1]=disable
Info : 79 6 arm11.c:2022 arm11_handle_bool(): Disabled memory write burst mode.
User : 81 6 command.c:513 command_run_line(): 
Debug: 83 6 command.c:68 script_debug(): command - init
Debug: 84 7 command.c:77 script_debug(): init - argv[0]=ocd_init
Debug: 85 7 openocd.c:129 handle_init_command(): target init complete
Debug: 86 7 core.c:1435 jtag_khz_to_speed(): convert khz to interface specific speed value
Debug: 87 7 core.c:1439 jtag_khz_to_speed(): have interface set up
Info : 88 7 core.c:1275 jtag_interface_init(): clock speed 100 kHz
Debug: 89 7 openocd.c:136 handle_init_command(): jtag interface init complete
Debug: 90 8 dummy.c:129 dummy_reset(): reset to: RESET
Debug: 91 8 core.c:700 jtag_add_reset(): SRST line released
Debug: 92 8 core.c:725 jtag_add_reset(): TRST line released
Debug: 93 8 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 94 210 openocd.c:142 handle_init_command(): jtag init complete
Debug: 95 211 dummy.c:99 dummy_write(): dummy_tap: 2 stable clocks
Debug: 96 211 dummy.c:103 dummy_write(): dummy_tap: RUN/IDLE
Debug: 97 211 dummy.c:103 dummy_write(): dummy_tap: DRSELECT
Debug: 98 211 dummy.c:103 dummy_write(): dummy_tap: IRSELECT
Debug: 99 211 dummy.c:103 dummy_write(): dummy_tap: IRCAPTURE
Debug: 100 211 dummy.c:103 dummy_write(): dummy_tap: IRSHIFT
Debug: 101 211 dummy.c:99 dummy_write(): dummy_tap: 9 stable clocks
Debug: 102 211 dummy.c:103 dummy_write(): dummy_tap: IREXIT1
Debug: 103 211 dummy.c:103 dummy_write(): dummy_tap: IRPAUSE
Debug: 104 211 dummy.c:103 dummy_write(): dummy_tap: IREXIT2
Debug: 105 211 dummy.c:103 dummy_write(): dummy_tap: IRUPDATE
Debug: 106 211 dummy.c:103 dummy_write(): dummy_tap: DRSELECT
Debug: 107 211 dummy.c:103 dummy_write(): dummy_tap: DRCAPTURE
Debug: 108 211 dummy.c:103 dummy_write(): dummy_tap: DRSHIFT
Debug: 109 211 dummy.c:99 dummy_write(): dummy_tap: 32 stable clocks
Debug: 110 211 dummy.c:103 dummy_write(): dummy_tap: DREXIT1
Debug: 111 211 dummy.c:103 dummy_write(): dummy_tap: DRPAUSE
Debug: 112 211 dummy.c:103 dummy_write(): dummy_tap: DREXIT2
Debug: 113 211 dummy.c:103 dummy_write(): dummy_tap: DRUPDATE
Debug: 114 211 dummy.c:103 dummy_write(): dummy_tap: DRSELECT
Debug: 115 211 dummy.c:103 dummy_write(): dummy_tap: IRSELECT
Debug: 116 211 dummy.c:103 dummy_write(): dummy_tap: IRCAPTURE
Debug: 117 211 dummy.c:103 dummy_write(): dummy_tap: IRSHIFT
Debug: 118 211 dummy.c:99 dummy_write(): dummy_tap: 9 stable clocks
Debug: 119 211 dummy.c:103 dummy_write(): dummy_tap: IREXIT1
Debug: 120 211 dummy.c:103 dummy_write(): dummy_tap: IRPAUSE
Debug: 121 211 dummy.c:103 dummy_write(): dummy_tap: IREXIT2
Debug: 122 211 dummy.c:103 dummy_write(): dummy_tap: IRUPDATE
Debug: 123 211 dummy.c:103 dummy_write(): dummy_tap: DRSELECT
Debug: 124 211 dummy.c:103 dummy_write(): dummy_tap: DRCAPTURE
Debug: 125 211 dummy.c:103 dummy_write(): dummy_tap: DRSHIFT
Debug: 126 211 dummy.c:99 dummy_write(): dummy_tap: 5 stable clocks
Debug: 127 211 dummy.c:103 dummy_write(): dummy_tap: DREXIT1
Debug: 128 211 dummy.c:103 dummy_write(): dummy_tap: DRPAUSE
Error: 129 211 arm11_dbgtap.c:133 arm11_in_handler_SCAN_N(): 'arm11 target' JTAG communication error SCREG SCAN OUT 0x1f (expected 0x10)
Debug: 130 211 dummy.c:103 dummy_write(): dummy_tap: DREXIT2
Debug: 131 211 dummy.c:103 dummy_write(): dummy_tap: DRUPDATE
Debug: 132 211 dummy.c:103 dummy_write(): dummy_tap: DRSELECT
Debug: 133 211 dummy.c:103 dummy_write(): dummy_tap: IRSELECT
Debug: 134 211 dummy.c:103 dummy_write(): dummy_tap: IRCAPTURE
Debug: 135 211 dummy.c:103 dummy_write(): dummy_tap: IRSHIFT
Debug: 136 211 dummy.c:99 dummy_write(): dummy_tap: 9 stable clocks
Debug: 137 211 dummy.c:103 dummy_write(): dummy_tap: IREXIT1
Debug: 138 211 dummy.c:103 dummy_write(): dummy_tap: IRPAUSE
Debug: 139 212 dummy.c:103 dummy_write(): dummy_tap: IREXIT2
Debug: 140 212 dummy.c:103 dummy_write(): dummy_tap: IRUPDATE
Debug: 141 212 dummy.c:103 dummy_write(): dummy_tap: DRSELECT
Debug: 142 212 dummy.c:103 dummy_write(): dummy_tap: DRCAPTURE
Debug: 143 212 dummy.c:103 dummy_write(): dummy_tap: DRSHIFT
Debug: 144 212 dummy.c:99 dummy_write(): dummy_tap: 40 stable clocks
Debug: 145 212 dummy.c:103 dummy_write(): dummy_tap: DREXIT1
Debug: 146 212 dummy.c:103 dummy_write(): dummy_tap: DRUPDATE
Debug: 147 212 dummy.c:103 dummy_write(): dummy_tap: RUN/IDLE
Error: 148 212 arm11.c:1846 arm11_examine(): 'target arm11' expects IDCODE 0x*7B*7****
Debug: 149 212 openocd.c:151 handle_init_command(): flash init complete
Debug: 150 212 openocd.c:155 handle_init_command(): mflash init complete
Debug: 151 212 openocd.c:159 handle_init_command(): NAND init complete
Debug: 152 212 openocd.c:163 handle_init_command(): pld init complete
Debug: 153 212 gdb_server.c:2272 gdb_init(): gdb service for target arm11 at TCP port 3333
Debug: 154 223 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 155 324 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 156 425 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 157 527 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 158 629 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 159 730 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 160 831 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 161 932 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 162 1033 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 163 1135 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 164 1236 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 165 1337 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 166 1438 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 167 1540 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 168 1641 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 169 1742 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 170 1844 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 171 1945 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 172 2046 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 173 2147 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 174 2248 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 175 2350 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 176 2451 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 177 2553 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 178 2654 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 179 2755 target.c:861 target_call_event_callbacks(): target event 4 (gdb-halt)
source [find c100.cfg]
# basic register defintion for C100
source [find c100regs.tcl]
# board-config info
source [find c100config.tcl]
# C100 helper functions
source [find c100helper.tcl]


# Telo board & C100 support trst and srst
# Note that libftd2xx.so tries to assert srst
# which break this script
# use libftdi.so library instead with this script
# make the reset asserted to 
# allow RC circuit to discharge for: [ms]
jtag_nsrst_assert_width 100
jtag_ntrst_assert_width 100
# don't talk to JTAG after reset for: [ms]
jtag_nsrst_delay 100
jtag_ntrst_delay 100
reset_config trst_and_srst separate




# issue telnet: reset init
# issue gdb: monitor reset init
$_TARGETNAME configure -event reset-init {
        jtag_khz 100
        # this will setup Telo board
        setupTelo
        #turn up the JTAG speed
        jtag_khz 3000
        puts "JTAG speek now 3MHz"
        puts "type helpC100 to get help on C100"
}

$_TARGETNAME configure -event reset-deassert-post {
        # Force target into ARM state.
#       soft_reset_halt # not implemented on ARM11
        puts "Detected SRSRT asserted on C100.CPU"
        
}

$_TARGETNAME configure -event reset-assert-post {
  puts "Assering reset"
  #sleep 10
}

proc power_restore {} { puts "Sensed power restore. No action." } 
proc srst_deasserted {} { puts "Sensed nSRST deasserted. No action." }

# This will force reset before doing initial scan
# but only if reset_on_init variable exists
# run openocd with -c "set RESET_ON_INIT 1"
# to force reset sequence on srst/trst before
# initial JTAG scan
proc jtag_init {} {
   #Make sure we reset the hardware before we talk to it
   if { [info exists RESET_ON_INIT ] }{
      puts "nSRST & nTRST asserted via jtag_init proc()" 
      jtag arp_init-reset               
      }
}

# boots from NOR on CS0:  8 MBytes CFI flash, 16-bit bus
# it's really 16MB but the upper 8mb is controller via gpio
# openocd does not support 'complex reads/writes' to NOR
flash bank cfi 0x20000000 0x01000000 2 2 $_TARGETNAME

# writing data to memory does not work without this
memwrite burst disable
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to