Christian Jaeger wrote:
Øyvind Harboe wrote:
Try the attached patch.
It should cause an error rather than running into an infinite loop.
Hm, somehow today I'm only getting the "target not halted" and
subsequent "Target not examined yet" error when issuing "halt",
Ok I guess I should issue "reset halt" really.
Here's a sequence with that command:
> reset halt
RCLK not supported
jtag_khz: 16
JTAG device found: 0x04570041 (Manufacturer: 0x020, Part: 0x4570,
Version: 0x0)
JTAG device found: 0x25966041 (Manufacturer: 0x020, Part: 0x5966,
Version: 0x2)
JTAG device found: 0x2457f041 (Manufacturer: 0x020, Part: 0x457f,
Version: 0x2)
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
> flash protect 0 0 2 off
memory read caused data abort (address: 0x00010000, size: 0x1, count: 0x1)
memory read caused data abort (address: 0x00020000, size: 0x1, count: 0x1)
cleared protection for sectors 0 through 2 on flash bank 0
> flash erase_address 0x00000000 0x00070000
memory read caused data abort (address: 0x00010000, size: 0x1, count: 0x1)
failed erasing sectors 0 to 6 (-307)
Runtime error, file "?", line 1:
In procedure 'flash' called at file "?", line 1
In procedure 'unknown' called at file "?", line 1
> info 0
Runtime error, file "?", line 1:
bad command "0": must be one of args, body, commands, complete,
exists, globals, level, locals, vars, or version
> flash info 0
#0: str9x at 0x00000000, size 0x00080000, buswidth 0, chipwidth 0
#0: 0x00000000 (0x10000 64kB) protected
#1: 0x00010000 (0x10000 64kB) protected
#2: 0x00020000 (0x10000 64kB) protected
#3: 0x00030000 (0x10000 64kB) protected
#4: 0x00040000 (0x10000 64kB) protected
#5: 0x00050000 (0x10000 64kB) protected
#6: 0x00060000 (0x10000 64kB) protected
#7: 0x00070000 (0x10000 64kB) protected
str9x flash driver info
> flash info 1
#1: str9x at 0x00080000, size 0x00008000, buswidth 0, chipwidth 0
#0: 0x00000000 (0x2000 8kB) protected
#1: 0x00002000 (0x2000 8kB) protected
#2: 0x00004000 (0x2000 8kB) protected
#3: 0x00006000 (0x2000 8kB) protected
str9x flash driver info
>
Christian.
Open On-Chip Debugger 1.0 (2008-08-26-13:44) svn:exported
$URL$
Debug: 4 0 configuration.c:88 find_file(): found openocd.cfg
Debug: 6 0 command.c:79 script_command(): script_command - telnet_port
Debug: 7 0 command.c:96 script_command(): script_command - telnet_port,
argv[0]=ocd_telnet_port
Debug: 8 0 command.c:96 script_command(): script_command - telnet_port,
argv[1]=50000
Debug: 10 0 command.c:79 script_command(): script_command - gdb_port
Debug: 11 0 command.c:96 script_command(): script_command - gdb_port,
argv[0]=ocd_gdb_port
Debug: 12 0 command.c:96 script_command(): script_command - gdb_port,
argv[1]=50001
Debug: 14 1 command.c:79 script_command(): script_command - interface
Debug: 15 1 command.c:96 script_command(): script_command - interface,
argv[0]=ocd_interface
Debug: 16 1 command.c:96 script_command(): script_command - interface,
argv[1]=ft2232
Debug: 18 1 command.c:79 script_command(): script_command - ft2232_device_desc
Debug: 19 1 command.c:96 script_command(): script_command -
ft2232_device_desc, argv[0]=ocd_ft2232_device_desc
Debug: 20 1 command.c:96 script_command(): script_command -
ft2232_device_desc, argv[1]=Olimex OpenOCD JTAG TINY
Debug: 22 1 command.c:79 script_command(): script_command - ft2232_layout
Debug: 23 1 command.c:96 script_command(): script_command - ft2232_layout,
argv[0]=ocd_ft2232_layout
Debug: 24 1 command.c:96 script_command(): script_command - ft2232_layout,
argv[1]=olimex-jtag
Debug: 26 1 command.c:79 script_command(): script_command - ft2232_vid_pid
Debug: 27 1 command.c:96 script_command(): script_command - ft2232_vid_pid,
argv[0]=ocd_ft2232_vid_pid
Debug: 28 1 command.c:96 script_command(): script_command - ft2232_vid_pid,
argv[1]=0x15ba
Debug: 29 1 command.c:96 script_command(): script_command - ft2232_vid_pid,
argv[2]=0x0004
Debug: 31 1 command.c:79 script_command(): script_command - jtag_khz
Debug: 32 1 command.c:96 script_command(): script_command - jtag_khz,
argv[0]=ocd_jtag_khz
Debug: 33 1 command.c:96 script_command(): script_command - jtag_khz,
argv[1]=0
Debug: 34 2 jtag.c:1901 handle_jtag_khz_command(): handle jtag khz
User: 35 2 command.c:360 command_print(): jtag_khz: 0
Debug: 37 2 command.c:79 script_command(): script_command - jtag_nsrst_delay
Debug: 38 2 command.c:96 script_command(): script_command - jtag_nsrst_delay,
argv[0]=ocd_jtag_nsrst_delay
Debug: 39 2 command.c:96 script_command(): script_command - jtag_nsrst_delay,
argv[1]=100
Debug: 41 2 command.c:79 script_command(): script_command - jtag_ntrst_delay
Debug: 42 2 command.c:96 script_command(): script_command - jtag_ntrst_delay,
argv[0]=ocd_jtag_ntrst_delay
Debug: 43 2 command.c:96 script_command(): script_command - jtag_ntrst_delay,
argv[1]=100
Debug: 45 2 command.c:79 script_command(): script_command - reset_config
Debug: 46 2 command.c:96 script_command(): script_command - reset_config,
argv[0]=ocd_reset_config
Debug: 47 2 command.c:96 script_command(): script_command - reset_config,
argv[1]=trst_and_srst
Debug: 49 2 command.c:79 script_command(): script_command - jtag_device
Debug: 50 2 command.c:96 script_command(): script_command - jtag_device,
argv[0]=ocd_jtag_device
Debug: 51 2 command.c:96 script_command(): script_command - jtag_device,
argv[1]=8
Debug: 52 2 command.c:96 script_command(): script_command - jtag_device,
argv[2]=0x1
Debug: 53 2 command.c:96 script_command(): script_command - jtag_device,
argv[3]=0x1
Debug: 54 2 command.c:96 script_command(): script_command - jtag_device,
argv[4]=0xfe
Debug: 56 2 command.c:79 script_command(): script_command - jtag_device
Debug: 57 2 command.c:96 script_command(): script_command - jtag_device,
argv[0]=ocd_jtag_device
Debug: 58 2 command.c:96 script_command(): script_command - jtag_device,
argv[1]=4
Debug: 59 2 command.c:96 script_command(): script_command - jtag_device,
argv[2]=0x1
Debug: 60 2 command.c:96 script_command(): script_command - jtag_device,
argv[3]=0xf
Debug: 61 2 command.c:96 script_command(): script_command - jtag_device,
argv[4]=0xe
Debug: 63 2 command.c:79 script_command(): script_command - jtag_device
Debug: 64 2 command.c:96 script_command(): script_command - jtag_device,
argv[0]=ocd_jtag_device
Debug: 65 2 command.c:96 script_command(): script_command - jtag_device,
argv[1]=5
Debug: 66 2 command.c:96 script_command(): script_command - jtag_device,
argv[2]=0x1
Debug: 67 2 command.c:96 script_command(): script_command - jtag_device,
argv[3]=0x1
Debug: 68 2 command.c:96 script_command(): script_command - jtag_device,
argv[4]=0x1e
Debug: 70 3 command.c:79 script_command(): script_command - target
Debug: 71 3 command.c:96 script_command(): script_command - target,
argv[0]=ocd_target
Debug: 72 3 command.c:96 script_command(): script_command - target,
argv[1]=arm966e
Debug: 73 3 command.c:96 script_command(): script_command - target,
argv[2]=little
Debug: 74 3 command.c:96 script_command(): script_command - target, argv[3]=1
Debug: 75 3 command.c:96 script_command(): script_command - target,
argv[4]=arm966e
Debug: 76 3 arm966e.c:139 arm966e_target_command(): chain_pos: 1, variant:
arm966e
Debug: 78 3 command.c:79 script_command(): script_command - working_area
Debug: 79 3 command.c:96 script_command(): script_command - working_area,
argv[0]=ocd_working_area
Debug: 80 3 command.c:96 script_command(): script_command - working_area,
argv[1]=0
Debug: 81 3 command.c:96 script_command(): script_command - working_area,
argv[2]=0x50000000
Debug: 82 3 command.c:96 script_command(): script_command - working_area,
argv[3]=16384
Debug: 83 3 command.c:96 script_command(): script_command - working_area,
argv[4]=nobackup
Debug: 85 3 command.c:79 script_command(): script_command - bank
Debug: 86 3 command.c:96 script_command(): script_command - bank,
argv[0]=ocd_flash_bank
Debug: 87 3 command.c:96 script_command(): script_command - bank,
argv[1]=str9x
Debug: 88 3 command.c:96 script_command(): script_command - bank,
argv[2]=0x00000000
Debug: 89 4 command.c:96 script_command(): script_command - bank,
argv[3]=0x00080000
Debug: 90 4 command.c:96 script_command(): script_command - bank, argv[4]=0
Debug: 91 4 command.c:96 script_command(): script_command - bank, argv[5]=0
Debug: 92 4 command.c:96 script_command(): script_command - bank, argv[6]=0
Debug: 94 4 command.c:79 script_command(): script_command - bank
Debug: 95 4 command.c:96 script_command(): script_command - bank,
argv[0]=ocd_flash_bank
Debug: 96 4 command.c:96 script_command(): script_command - bank,
argv[1]=str9x
Debug: 97 4 command.c:96 script_command(): script_command - bank,
argv[2]=0x00080000
Debug: 98 4 command.c:96 script_command(): script_command - bank,
argv[3]=0x00008000
Debug: 99 4 command.c:96 script_command(): script_command - bank, argv[4]=0
Debug: 100 4 command.c:96 script_command(): script_command - bank, argv[5]=0
Debug: 101 4 command.c:96 script_command(): script_command - bank, argv[6]=0
Debug: 103 4 command.c:79 script_command(): script_command - init
Debug: 104 4 command.c:96 script_command(): script_command - init,
argv[0]=ocd_init
Debug: 105 5 openocd.c:107 handle_init_command(): target init complete
Error: 106 5 ft2232.c:278 ft2232_khz(): RCLK not supported
Debug: 107 5 ft2232.c:1506 ft2232_init_libftdi(): 'ft2232' interface using
libftdi with 'olimex-jtag' layout (15ba:0004)
Debug: 108 271 ft2232.c:1548 ft2232_init_libftdi(): current latency timer: 2
Debug: 109 272 ft2232.c:1815 olimex_jtag_init(): 80 08 1b
Debug: 110 273 ft2232.c:1858 olimex_jtag_init(): 82 09 0f
Debug: 111 274 ft2232.c:253 ft2232_speed(): 86 00 00
Debug: 112 278 openocd.c:114 handle_init_command(): jtag interface init
complete
Debug: 113 278 jtag.c:1560 jtag_init_inner(): Init JTAG chain
Debug: 114 278 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (TLR or TRST)
Debug: 115 278 jtag.c:1301 jtag_reset_callback(): -
Debug: 116 278 jtag.c:1301 jtag_reset_callback(): -
Debug: 117 278 jtag.c:1301 jtag_reset_callback(): -
Debug: 118 279 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (TLR or TRST)
Debug: 119 279 jtag.c:1301 jtag_reset_callback(): -
Debug: 120 279 jtag.c:1301 jtag_reset_callback(): -
Debug: 121 279 jtag.c:1301 jtag_reset_callback(): -
Info: 122 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0x04570041 (Manufacturer: 0x020, Part: 0x4570, Version: 0x0)
Info: 123 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 124 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 125 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 126 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 127 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 128 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 129 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 130 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 131 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 132 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 133 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 134 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 135 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 136 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 137 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 138 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 139 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 140 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info: 141 283 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Error: 142 284 jtag.c:1426 jtag_examine_chain(): number of discovered devices
in JTAG chain (20) doesn't match configuration (3)
Error: 143 284 jtag.c:1427 jtag_examine_chain(): check the config file and
ensure proper JTAG communication (connections, speed, ...)
Error: 144 284 jtag.c:1579 jtag_init_inner(): trying to validate configured
JTAG chain anyway...
Debug: 145 284 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (TLR or TRST)
Debug: 146 284 jtag.c:1301 jtag_reset_callback(): -
Debug: 147 284 jtag.c:1301 jtag_reset_callback(): -
Debug: 148 284 jtag.c:1301 jtag_reset_callback(): -
Error: 149 285 jtag.c:1471 jtag_validate_chain(): Error validating JTAG scan
chain, IR mismatch, scan returned 0x000029
Error: 150 285 jtag.c:1584 jtag_init_inner(): Could not validate JTAG chain,
continuing anyway...
Debug: 151 285 openocd.c:120 handle_init_command(): jtag init complete
Warning: 152 287 jtag.c:1217 jtag_check_value(): value captured during scan
didn't pass the requested check: captured: 0x00 check_value: 0x01 check_mask:
0x0f
Warning: 153 287 jtag.c:1177 jtag_read_buffer(): in_handler reported a failed
check
Warning: 154 287 jtag.c:1217 jtag_check_value(): value captured during scan
didn't pass the requested check: captured: 0x03 check_value: 0x01 check_mask:
0x0f
Warning: 155 287 jtag.c:1177 jtag_read_buffer(): in_handler reported a failed
check
Debug: 156 288 openocd.c:129 handle_init_command(): flash init complete
Debug: 157 288 openocd.c:133 handle_init_command(): NAND init complete
Debug: 158 288 openocd.c:137 handle_init_command(): pld init complete
Debug: 159 288 gdb_server.c:2117 gdb_init(): gdb service for target arm966e
at port 50001
Warning: 160 288 tcl_server.c:178 tcl_init(): no tcl port specified, using
default port 6666
Info: 161 15820 server.c:81 add_connection(): accepting 'telnet' connection
from 0
Debug: 163 18558 command.c:79 script_command(): script_command - halt
Debug: 164 18558 command.c:96 script_command(): script_command - halt,
argv[0]=ocd_halt
Debug: 165 18558 target.c:1774 handle_halt_command(): -
Error: 166 18558 target.c:316 target_halt(): Target not examined yet
Debug: 167 18558 command.c:404 run_command(): Command failed with error code
-4
User: 168 18559 command.c:604 openocd_jim_vfprintf(): Runtime error, file
"?", line 1:
User: 169 18559 command.c:604 openocd_jim_vfprintf():
User: 170 20177 command.c:604 openocd_jim_vfprintf(): Runtime error, file
"?", line 1:
User: 171 20177 command.c:604 openocd_jim_vfprintf(): Unknown command:
stop
User: 173 24473 command.c:604 openocd_jim_vfprintf():
User: 175 24473 command.c:604 openocd_jim_vfprintf():
User: 177 24473 command.c:604 openocd_jim_vfprintf():
User: 179 24474 command.c:604 openocd_jim_vfprintf():
User: 181 24475 command.c:604 openocd_jim_vfprintf():
User: 183 24475 command.c:604 openocd_jim_vfprintf():
User: 185 24475 command.c:604 openocd_jim_vfprintf():
User: 187 24475 command.c:604 openocd_jim_vfprintf():
User: 189 24475 command.c:604 openocd_jim_vfprintf():
Debug: 191 32711 command.c:79 script_command(): script_command - reset
Debug: 192 32711 command.c:96 script_command(): script_command - reset,
argv[0]=ocd_reset
Debug: 193 32711 command.c:96 script_command(): script_command - reset,
argv[1]=halt
Debug: 195 32711 command.c:79 script_command(): script_command - jtag_khz
Debug: 196 32711 command.c:96 script_command(): script_command - jtag_khz,
argv[0]=ocd_jtag_khz
Debug: 197 32711 command.c:96 script_command(): script_command - jtag_khz,
argv[1]=0
Debug: 198 32711 jtag.c:1901 handle_jtag_khz_command(): handle jtag khz
Debug: 199 32711 jtag.c:1909 handle_jtag_khz_command(): have interface set up
Error: 200 32711 ft2232.c:278 ft2232_khz(): RCLK not supported
Debug: 201 32711 command.c:404 run_command(): Command failed with error code
-4
Debug: 203 32711 command.c:79 script_command(): script_command - jtag_khz
Debug: 204 32711 command.c:96 script_command(): script_command - jtag_khz,
argv[0]=ocd_jtag_khz
Debug: 205 32711 command.c:96 script_command(): script_command - jtag_khz,
argv[1]=16
Debug: 206 32711 jtag.c:1901 handle_jtag_khz_command(): handle jtag khz
Debug: 207 32711 jtag.c:1909 handle_jtag_khz_command(): have interface set up
Debug: 208 32711 ft2232.c:253 ft2232_speed(): 86 76 01
User: 209 32713 command.c:360 command_print(): jtag_khz: 16
Debug: 210 32713 jtag.c:1597 jtag_init_reset(): Trying to bring the JTAG
controller to life by asserting TRST / TLR
Debug: 211 32713 jtag.c:1003 jtag_add_reset(): SRST line released
Debug: 212 32713 jtag.c:1022 jtag_add_reset(): TRST line asserted
Debug: 213 32713 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (TLR or TRST)
Debug: 214 32713 jtag.c:1301 jtag_reset_callback(): -
Debug: 215 32713 jtag.c:1301 jtag_reset_callback(): -
Debug: 216 32713 jtag.c:1301 jtag_reset_callback(): -
Debug: 217 32713 jtag.c:999 jtag_add_reset(): SRST line asserted
Debug: 218 32713 jtag.c:1022 jtag_add_reset(): TRST line asserted
Debug: 219 32713 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (TLR or TRST)
Debug: 220 32713 jtag.c:1301 jtag_reset_callback(): -
Debug: 221 32713 jtag.c:1301 jtag_reset_callback(): -
Debug: 222 32713 jtag.c:1301 jtag_reset_callback(): -
Debug: 223 32713 jtag.c:999 jtag_add_reset(): SRST line asserted
Debug: 224 32713 jtag.c:1003 jtag_add_reset(): SRST line released
Debug: 225 32713 ft2232.c:1042 olimex_jtag_reset(): trst: 1, srst: 0,
high_output: 0x00, high_direction: 0x0f
Debug: 226 32817 ft2232.c:1042 olimex_jtag_reset(): trst: 1, srst: 1,
high_output: 0x02, high_direction: 0x0f
Debug: 227 32818 ft2232.c:1042 olimex_jtag_reset(): trst: 0, srst: 1,
high_output: 0x03, high_direction: 0x0f
Debug: 228 32921 ft2232.c:1042 olimex_jtag_reset(): trst: 0, srst: 0,
high_output: 0x01, high_direction: 0x0f
Debug: 229 33125 jtag.c:1560 jtag_init_inner(): Init JTAG chain
Debug: 230 33127 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (TLR or TRST)
Debug: 231 33127 jtag.c:1301 jtag_reset_callback(): -
Debug: 232 33127 jtag.c:1301 jtag_reset_callback(): -
Debug: 233 33127 jtag.c:1301 jtag_reset_callback(): -
Info: 234 33170 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0x04570041 (Manufacturer: 0x020, Part: 0x4570, Version: 0x0)
Info: 235 33170 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0x25966041 (Manufacturer: 0x020, Part: 0x5966, Version: 0x2)
Info: 236 33170 jtag.c:1410 jtag_examine_chain(): JTAG device found:
0x2457f041 (Manufacturer: 0x020, Part: 0x457f, Version: 0x2)
Debug: 237 33170 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (TLR or TRST)
Debug: 238 33170 jtag.c:1301 jtag_reset_callback(): -
Debug: 239 33170 jtag.c:1301 jtag_reset_callback(): -
Debug: 240 33170 jtag.c:1301 jtag_reset_callback(): -
Debug: 241 33196 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000000
Debug: 242 33197 embeddedice.c:400 embeddedice_write_reg(): 12: 0x00000000
Debug: 243 33197 embeddedice.c:400 embeddedice_write_reg(): 20: 0x00000000
Debug: 244 33198 arm7_9_common.c:738 arm7_9_assert_reset(): target->state:
unknown
Debug: 245 33198 embeddedice.c:400 embeddedice_write_reg(): 2: 0x00000001
Debug: 246 33198 jtag.c:999 jtag_add_reset(): SRST line asserted
Debug: 247 33198 arm7_9_common.c:800 arm7_9_deassert_reset(): target->state:
reset
Debug: 248 33198 jtag.c:1003 jtag_add_reset(): SRST line released
Debug: 249 33198 ft2232.c:1042 olimex_jtag_reset(): trst: 0, srst: 1,
high_output: 0x0b, high_direction: 0x0f
Debug: 251 33353 ft2232.c:1042 olimex_jtag_reset(): trst: 0, srst: 0,
high_output: 0x09, high_direction: 0x0f
Debug: 252 33571 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 253 33571 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 254 33572 arm7_9_common.c:1072 arm7_9_debug_entry(): target entered
debug from ARM state
Debug: 255 33751 arm7_9_common.c:1104 arm7_9_debug_entry(): target entered
debug state in Supervisor mode
Debug: 256 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r0: 0x12002020
Debug: 257 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r1: 0x10303000
Debug: 258 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r2: 0x12104000
Debug: 259 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r3: 0x24140092
Debug: 260 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r4: 0x00044821
Debug: 261 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r5: 0x12940010
Debug: 262 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r6: 0x00040100
Debug: 263 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r7: 0x00807002
Debug: 264 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r8: 0x00980053
Debug: 265 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r9: 0x08008400
Debug: 266 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r10: 0x00023000
Debug: 267 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r11: 0x00c10010
Debug: 268 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r12: 0x000008c0
Debug: 269 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r13: 0x00002840
Debug: 270 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r14: 0x9c001420
Debug: 271 33751 arm7_9_common.c:1135 arm7_9_debug_entry(): r15: 0x00000000
Debug: 272 33751 arm7_9_common.c:1141 arm7_9_debug_entry(): entered debug
state at PC 0x0
Debug: 273 33807 target.c:691 target_call_event_callbacks(): target event 0
User: 274 33807 target.c:930 target_arch_state(): target state: halted
User: 275 33807 armv4_5.c:308 armv4_5_arch_state(): target halted in ARM
state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
Debug: 277 33807 target.c:416 target_process_reset(): Waiting for halted
stated as appropriate
> flash protect 0 0 2 off
Debug: 279 138881 command.c:79 script_command(): script_command - protect
Debug: 280 138881 command.c:96 script_command(): script_command - protect,
argv[0]=ocd_flash_protect
Debug: 281 138881 command.c:96 script_command(): script_command - protect,
argv[1]=0
Debug: 282 138881 command.c:96 script_command(): script_command - protect,
argv[2]=0
Debug: 283 138881 command.c:96 script_command(): script_command - protect,
argv[3]=2
Debug: 284 138881 command.c:96 script_command(): script_command - protect,
argv[4]=off
Debug: 285 138881 target.c:1246 target_write_u16(): address: 0x00000000,
value: 0x00000060
Debug: 286 138881 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 287 138987 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 288 139051 target.c:1246 target_write_u16(): address: 0x00000000,
value: 0x000000d0
Debug: 289 139052 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 290 139152 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 291 139216 arm7_9_common.c:1802 arm7_9_read_memory(): address:
0x00000000, size: 0x00000001, count: 0x00000001
Debug: 292 139356 target.c:1204 target_read_u8(): address: 0x00000000, value:
0x80
Debug: 293 139357 target.c:1246 target_write_u16(): address: 0x00000000,
value: 0x00000050
Debug: 294 139357 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 295 139457 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 296 139521 target.c:1246 target_write_u16(): address: 0x00000000,
value: 0x000000ff
Debug: 297 139522 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 298 139622 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 299 139686 target.c:1246 target_write_u16(): address: 0x00010000,
value: 0x00000060
Debug: 300 139687 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 301 139787 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 302 139851 target.c:1246 target_write_u16(): address: 0x00010000,
value: 0x000000d0
Debug: 303 139852 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 304 139952 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 305 140016 arm7_9_common.c:1802 arm7_9_read_memory(): address:
0x00010000, size: 0x00000001, count: 0x00000001
Warning: 306 140156 arm7_9_common.c:1927 arm7_9_read_memory(): memory read
caused data abort (address: 0x00010000, size: 0x1, count: 0x1)
Debug: 307 140157 arm9tdmi.c:584 arm9tdmi_write_xpsr_im8(): xpsr_im: d3, rot:
0, spsr: 0
Debug: 308 140157 target.c:1209 target_read_u8(): address: 0x00010000 failed
Debug: 309 140157 target.c:1246 target_write_u16(): address: 0x00010000,
value: 0x00000050
Debug: 310 140157 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 311 140287 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 312 140351 target.c:1246 target_write_u16(): address: 0x00010000,
value: 0x000000ff
Debug: 313 140352 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 314 140452 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 315 140516 target.c:1246 target_write_u16(): address: 0x00020000,
value: 0x00000060
Debug: 316 140517 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 317 140617 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 318 140681 target.c:1246 target_write_u16(): address: 0x00020000,
value: 0x000000d0
Debug: 319 140682 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 320 140782 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 321 140846 arm7_9_common.c:1802 arm7_9_read_memory(): address:
0x00020000, size: 0x00000001, count: 0x00000001
Warning: 322 140988 arm7_9_common.c:1927 arm7_9_read_memory(): memory read
caused data abort (address: 0x00020000, size: 0x1, count: 0x1)
Debug: 323 140989 arm9tdmi.c:584 arm9tdmi_write_xpsr_im8(): xpsr_im: d3, rot:
0, spsr: 0
Debug: 324 140989 target.c:1209 target_read_u8(): address: 0x00020000 failed
Debug: 325 140989 target.c:1246 target_write_u16(): address: 0x00020000,
value: 0x00000050
Debug: 326 140989 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 327 141119 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 328 141183 target.c:1246 target_write_u16(): address: 0x00020000,
value: 0x000000ff
Debug: 329 141184 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 330 141284 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
User: 331 141348 command.c:360 command_print(): cleared protection for
sectors 0 through 2 on flash bank 0
memory read caused data abort (address: 0x00010000, size: 0x1, count: 0x1)
memory read caused data abort (address: 0x00020000, size: 0x1, count: 0x1)
cleared protection for sectors 0 through 2 on flash bank 0
> flash erase_address 0x00000000 0x00070000
Debug: 333 305054 command.c:79 script_command(): script_command -
erase_address
Debug: 334 305054 command.c:96 script_command(): script_command -
erase_address, argv[0]=ocd_flash_erase_address
Debug: 335 305054 command.c:96 script_command(): script_command -
erase_address, argv[1]=0x00000000
Debug: 336 305054 command.c:96 script_command(): script_command -
erase_address, argv[2]=0x00070000
Debug: 337 305054 target.c:1246 target_write_u16(): address: 0x00000000,
value: 0x00000020
Debug: 338 305054 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 339 305161 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 340 305225 target.c:1246 target_write_u16(): address: 0x00000000,
value: 0x000000d0
Debug: 341 305225 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 342 305326 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 343 305390 target.c:1246 target_write_u16(): address: 0x00000000,
value: 0x00000070
Debug: 344 305390 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 345 305491 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 346 305555 arm7_9_common.c:1802 arm7_9_read_memory(): address:
0x00000000, size: 0x00000001, count: 0x00000001
Debug: 347 305697 target.c:1204 target_read_u8(): address: 0x00000000, value:
0x00
Debug: 349 305701 arm7_9_common.c:1802 arm7_9_read_memory(): address:
0x00000000, size: 0x00000001, count: 0x00000001
Debug: 350 305843 target.c:1204 target_read_u8(): address: 0x00000000, value:
0x00
Debug: 351 305845 arm7_9_common.c:1802 arm7_9_read_memory(): address:
0x00000000, size: 0x00000001, count: 0x00000001
Debug: 352 305987 target.c:1204 target_read_u8(): address: 0x00000000, value:
0x00
Debug: 353 305989 arm7_9_common.c:1802 arm7_9_read_memory(): address:
0x00000000, size: 0x00000001, count: 0x00000001
Debug: 354 306130 target.c:1204 target_read_u8(): address: 0x00000000, value:
0x00
Debug: 355 306133 arm7_9_common.c:1802 arm7_9_read_memory(): address:
0x00000000, size: 0x00000001, count: 0x00000001
Debug: 356 306273 target.c:1204 target_read_u8(): address: 0x00000000, value:
0x00
Debug: 358 306277 arm7_9_common.c:1802 arm7_9_read_memory(): address:
0x00000000, size: 0x00000001, count: 0x00000001
Debug: 359 306417 target.c:1204 target_read_u8(): address: 0x00000000, value:
0x00
Debug: 360 306421 arm7_9_common.c:1802 arm7_9_read_memory(): address:
0x00000000, size: 0x00000001, count: 0x00000001
Debug: 361 306561 target.c:1204 target_read_u8(): address: 0x00000000, value:
0x80
Debug: 362 306561 target.c:1246 target_write_u16(): address: 0x00000000,
value: 0x00000050
Debug: 363 306561 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 364 306662 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 365 306724 target.c:1246 target_write_u16(): address: 0x00000000,
value: 0x000000ff
Debug: 366 306724 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 367 306825 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 368 306887 target.c:1246 target_write_u16(): address: 0x00010000,
value: 0x00000020
Debug: 369 306887 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 370 306988 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 371 307050 target.c:1246 target_write_u16(): address: 0x00010000,
value: 0x000000d0
Debug: 372 307050 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 373 307151 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 374 307213 target.c:1246 target_write_u16(): address: 0x00010000,
value: 0x00000070
Debug: 375 307213 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000004
Debug: 376 307314 embeddedice.c:400 embeddedice_write_reg(): 0: 0x00000005
Debug: 377 307376 arm7_9_common.c:1802 arm7_9_read_memory(): address:
0x00010000, size: 0x00000001, count: 0x00000001
Warning: 378 307517 arm7_9_common.c:1927 arm7_9_read_memory(): memory read
caused data abort (address: 0x00010000, size: 0x1, count: 0x1)
Debug: 379 307517 arm9tdmi.c:584 arm9tdmi_write_xpsr_im8(): xpsr_im: d3, rot:
0, spsr: 0
Debug: 380 307517 target.c:1209 target_read_u8(): address: 0x00010000 failed
Error: 381 307517 flash.c:118 flash_driver_erase(): failed erasing sectors 0
to 6 (-307)
Debug: 382 307517 command.c:404 run_command(): Command failed with error code
-307
User: 383 307517 command.c:604 openocd_jim_vfprintf(): Runtime error, file
"?", line 1:
User: 384 307517 command.c:604 openocd_jim_vfprintf():
User: 385 307517 command.c:604 openocd_jim_vfprintf(): In procedure 'flash'
called at file "?", line 1
User: 386 307517 command.c:604 openocd_jim_vfprintf(): In procedure
'unknown' called at file "?", line 1
memory read caused data abort (address: 0x00010000, size: 0x1, count: 0x1)
failed erasing sectors 0 to 6 (-307)
Runtime error, file "?", line 1:
In procedure 'flash' called at file "?", line 1
In procedure 'unknown' called at file "?", line 1
>
User: 387 333714 command.c:604 openocd_jim_vfprintf(): Runtime error, file
"?", line 1:
User: 388 333714 command.c:604 openocd_jim_vfprintf(): bad command "0":
must be one of args, body, commands, complete, exists, globals, level, locals,
vars, or version
Debug: 390 349097 command.c:79 script_command(): script_command - info
Debug: 391 349097 command.c:96 script_command(): script_command - info,
argv[0]=ocd_flash_info
Debug: 392 349097 command.c:96 script_command(): script_command - info,
argv[1]=0
User: 393 349097 command.c:360 command_print(): #0: str9x at 0x00000000,
size 0x00080000, buswidth 0, chipwidth 0
User: 394 349097 command.c:360 command_print(): #0: 0x00000000 (0x10000
64kB) protected
User: 395 349097 command.c:360 command_print(): #1: 0x00010000 (0x10000
64kB) protected
User: 396 349097 command.c:360 command_print(): #2: 0x00020000 (0x10000
64kB) protected
User: 397 349097 command.c:360 command_print(): #3: 0x00030000 (0x10000
64kB) protected
User: 398 349097 command.c:360 command_print(): #4: 0x00040000 (0x10000
64kB) protected
User: 399 349097 command.c:360 command_print(): #5: 0x00050000 (0x10000
64kB) protected
User: 400 349097 command.c:360 command_print(): #6: 0x00060000 (0x10000
64kB) protected
User: 401 349097 command.c:360 command_print(): #7: 0x00070000 (0x10000
64kB) protected
User: 402 349097 command.c:360 command_print(): str9x flash driver info
Debug: 403 350713 telnet_server.c:403 telnet_input(): unhandled nonprintable:
10
Debug: 405 352841 command.c:79 script_command(): script_command - info
Debug: 406 352841 command.c:96 script_command(): script_command - info,
argv[0]=ocd_flash_info
Debug: 407 352841 command.c:96 script_command(): script_command - info,
argv[1]=1
User: 408 352841 command.c:360 command_print(): #1: str9x at 0x00080000,
size 0x00008000, buswidth 0, chipwidth 0
User: 409 352841 command.c:360 command_print(): #0: 0x00000000 (0x2000
8kB) protected
User: 410 352841 command.c:360 command_print(): #1: 0x00002000 (0x2000
8kB) protected
User: 411 352841 command.c:360 command_print(): #2: 0x00004000 (0x2000
8kB) protected
User: 412 352841 command.c:360 command_print(): #3: 0x00006000 (0x2000
8kB) protected
User: 413 352841 command.c:360 command_print(): str9x flash driver info
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development