Ø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", even with yesterday's code. I'd think the order in which I plug in the devices would play a role here but I've tried every of the basic combinations of starting things up with the same result now (well I'm now always connecting with telnet as the *last* step, maybe this is what I did differently sometimes yesterday?; but I've also tried a few times connecting with telnet before powering up the arm w/o change):

openocd, x, x -> Error: 108 396 ft2232.c:1518 ft2232_init_libftdi(): unable to open ftdi device: device not found
# of course

arm, openocd, dongle -> dito

dongle, openocd, arm, telnet ->
> halt
Target not examined yet
Runtime error, file "?", line 1:

dongle, arm, openocd, telnet ->
> halt
Target not examined yet
Runtime error, file "?", line 1:

arm, dongle, openocd, telnet ->
> halt
Target not examined yet
Runtime error, file "?", line 1:


Can you say what this halt problem is about?

Now, connecting with gdb and issuing "load" will make openocd print:

Debug: 473 114705 gdb_server.c:1928 gdb_input_inner(): received packet: 'vFlashErase:00000000,00010000' Debug: 474 114705 target.c:691 target_call_event_callbacks(): target event 12
Error:   475 114705 str9x.c:272 str9x_erase(): Target not halted
Error: 476 114705 flash.c:118 flash_driver_erase(): failed erasing sectors 0 to 0 (-304) Error: 477 114706 gdb_server.c:1781 gdb_v_packet(): flash_erase returned -304

Also, I notice that today, the red LED of the Olimex dongle is always on after starting openocd. Yesterday it was blinking all the time.

(Did I somehow break the hardware? The demo that was on it did work when I received it.)

Also note that your patch re-declared the variable i and thus didn't compile (see patchfix.diff).

Christian.

diff --git a/src/flash/str9x.c b/src/flash/str9x.c
index 94a2a1c..ca62910 100644
--- a/src/flash/str9x.c
+++ b/src/flash/str9x.c
@@ -627,7 +627,6 @@ int str9x_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count)
 		/* query status command */
 		target_write_u16(target, bank_adr, 0x70);
 		
-		int i;
 		for (i=0; i<1000; i++)
 		{	
 			target_read_u8(target, bank_adr, &status);
Open On-Chip Debugger 1.0 (2008-08-26-10:03) svn:exported
$URL$
Debug:   4 0 configuration.c:88 find_file(): found openocd.cfg
Debug:   6 1 command.c:79 script_command(): script_command - telnet_port
Debug:   7 1 command.c:96 script_command(): script_command - telnet_port, 
argv[0]=ocd_telnet_port
Debug:   8 1 command.c:96 script_command(): script_command - telnet_port, 
argv[1]=50000
Debug:   10 1 command.c:79 script_command(): script_command - gdb_port
Debug:   11 1 command.c:96 script_command(): script_command - gdb_port, 
argv[0]=ocd_gdb_port
Debug:   12 1 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 2 command.c:79 script_command(): script_command - jtag_khz
Debug:   32 2 command.c:96 script_command(): script_command - jtag_khz, 
argv[0]=ocd_jtag_khz
Debug:   33 2 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 3 command.c:79 script_command(): script_command - jtag_device
Debug:   64 3 command.c:96 script_command(): script_command - jtag_device, 
argv[0]=ocd_jtag_device
Debug:   65 3 command.c:96 script_command(): script_command - jtag_device, 
argv[1]=5
Debug:   66 3 command.c:96 script_command(): script_command - jtag_device, 
argv[2]=0x1
Debug:   67 3 command.c:96 script_command(): script_command - jtag_device, 
argv[3]=0x1
Debug:   68 3 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 4 command.c:79 script_command(): script_command - bank
Debug:   86 4 command.c:96 script_command(): script_command - bank, 
argv[0]=ocd_flash_bank
Debug:   87 4 command.c:96 script_command(): script_command - bank, 
argv[1]=str9x
Debug:   88 4 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 273 ft2232.c:1548 ft2232_init_libftdi(): current latency timer: 2
Debug:   109 274 ft2232.c:1815 olimex_jtag_init(): 80 08 1b
Debug:   110 275 ft2232.c:1858 olimex_jtag_init(): 82 09 0f
Debug:   111 276 ft2232.c:253 ft2232_speed(): 86 00 00
Debug:   112 280 openocd.c:114 handle_init_command(): jtag interface init 
complete
Debug:   113 280 jtag.c:1560 jtag_init_inner(): Init JTAG chain
Debug:   114 280 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   115 280 jtag.c:1301 jtag_reset_callback(): -
Debug:   116 280 jtag.c:1301 jtag_reset_callback(): -
Debug:   117 280 jtag.c:1301 jtag_reset_callback(): -
Debug:   118 281 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   119 281 jtag.c:1301 jtag_reset_callback(): -
Debug:   120 281 jtag.c:1301 jtag_reset_callback(): -
Debug:   121 281 jtag.c:1301 jtag_reset_callback(): -
Info:    122 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0x04570041 (Manufacturer: 0x020, Part: 0x4570, Version: 0x0)
Info:    123 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    124 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    125 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    126 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    127 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    128 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    129 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    130 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    131 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    132 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    133 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    134 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    135 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    136 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    137 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    138 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    139 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    140 284 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    141 284 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 286 jtag.c:1471 jtag_validate_chain(): Error validating JTAG scan 
chain, IR mismatch, scan returned 0x000029
Error:   150 286 jtag.c:1584 jtag_init_inner(): Could not validate JTAG chain, 
continuing anyway...
Debug:   151 286 openocd.c:120 handle_init_command(): jtag init complete
Warning: 152 288 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 288 jtag.c:1177 jtag_read_buffer(): in_handler reported a failed 
check
Warning: 154 288 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 288 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:2097 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

[EMAIL PROTECTED]:~$ telnet localhost 50000

Info:    161 15126 server.c:81 add_connection(): accepting 'telnet' connection 
from 0

> flash protect 0 0 2 off 

Debug:   163 29632 command.c:79 script_command(): script_command - protect
Debug:   164 29632 command.c:96 script_command(): script_command - protect, 
argv[0]=ocd_flash_protect
Debug:   165 29632 command.c:96 script_command(): script_command - protect, 
argv[1]=0
Debug:   166 29632 command.c:96 script_command(): script_command - protect, 
argv[2]=0
Debug:   167 29632 command.c:96 script_command(): script_command - protect, 
argv[3]=2
Debug:   168 29632 command.c:96 script_command(): script_command - protect, 
argv[4]=off
Error:   169 29632 str9x.c:363 str9x_protect(): Target not halted
Error:   170 29632 flash.c:131 flash_driver_protect(): failed setting 
protection for areas 0 to 2 (-304)

> halt

Debug:   172 40026 command.c:79 script_command(): script_command - halt
Debug:   173 40026 command.c:96 script_command(): script_command - halt, 
argv[0]=ocd_halt
Debug:   174 40026 target.c:1774 handle_halt_command(): -
Error:   175 40026 target.c:316 target_halt(): Target not examined yet
Debug:   176 40026 command.c:404 run_command(): Command failed with error code 
-4
User:    177 40026 command.c:604 openocd_jim_vfprintf(): Runtime error, file 
"?", line 1:
User:    178 40026 command.c:604 openocd_jim_vfprintf():     
Open On-Chip Debugger 1.0 (2008-08-26-10:03) svn:exported
$URL$
Debug:   4 0 configuration.c:88 find_file(): found openocd.cfg
Debug:   6 1 command.c:79 script_command(): script_command - telnet_port
Debug:   7 1 command.c:96 script_command(): script_command - telnet_port, 
argv[0]=ocd_telnet_port
Debug:   8 1 command.c:96 script_command(): script_command - telnet_port, 
argv[1]=50000
Debug:   10 1 command.c:79 script_command(): script_command - gdb_port
Debug:   11 1 command.c:96 script_command(): script_command - gdb_port, 
argv[0]=ocd_gdb_port
Debug:   12 1 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 2 command.c:79 script_command(): script_command - jtag_khz
Debug:   32 2 command.c:96 script_command(): script_command - jtag_khz, 
argv[0]=ocd_jtag_khz
Debug:   33 2 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 3 command.c:96 script_command(): script_command - jtag_device, 
argv[3]=0xf
Debug:   61 3 command.c:96 script_command(): script_command - jtag_device, 
argv[4]=0xe
Debug:   63 3 command.c:79 script_command(): script_command - jtag_device
Debug:   64 3 command.c:96 script_command(): script_command - jtag_device, 
argv[0]=ocd_jtag_device
Debug:   65 3 command.c:96 script_command(): script_command - jtag_device, 
argv[1]=5
Debug:   66 3 command.c:96 script_command(): script_command - jtag_device, 
argv[2]=0x1
Debug:   67 3 command.c:96 script_command(): script_command - jtag_device, 
argv[3]=0x1
Debug:   68 3 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 4 command.c:79 script_command(): script_command - bank
Debug:   86 4 command.c:96 script_command(): script_command - bank, 
argv[0]=ocd_flash_bank
Debug:   87 4 command.c:96 script_command(): script_command - bank, 
argv[1]=str9x
Debug:   88 4 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 276 ft2232.c:1548 ft2232_init_libftdi(): current latency timer: 2
Debug:   109 277 ft2232.c:1815 olimex_jtag_init(): 80 08 1b
Debug:   110 278 ft2232.c:1858 olimex_jtag_init(): 82 09 0f
Debug:   111 279 ft2232.c:253 ft2232_speed(): 86 00 00
Debug:   112 283 openocd.c:114 handle_init_command(): jtag interface init 
complete
Debug:   113 283 jtag.c:1560 jtag_init_inner(): Init JTAG chain
Debug:   114 283 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   115 283 jtag.c:1301 jtag_reset_callback(): -
Debug:   116 283 jtag.c:1301 jtag_reset_callback(): -
Debug:   117 283 jtag.c:1301 jtag_reset_callback(): -
Debug:   118 284 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   119 284 jtag.c:1301 jtag_reset_callback(): -
Debug:   120 284 jtag.c:1301 jtag_reset_callback(): -
Debug:   121 284 jtag.c:1301 jtag_reset_callback(): -
Info:    122 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0x04570041 (Manufacturer: 0x020, Part: 0x4570, Version: 0x0)
Info:    123 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    124 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    125 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    126 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    127 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    128 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    129 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    130 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    131 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    132 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    133 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    134 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    135 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    136 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    137 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    138 287 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    139 288 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    140 288 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    141 288 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Error:   142 288 jtag.c:1426 jtag_examine_chain(): number of discovered devices 
in JTAG chain (20) doesn't match configuration (3)
Error:   143 288 jtag.c:1427 jtag_examine_chain(): check the config file and 
ensure proper JTAG communication (connections, speed, ...)
Error:   144 288 jtag.c:1579 jtag_init_inner(): trying to validate configured 
JTAG chain anyway...
Debug:   145 288 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   146 288 jtag.c:1301 jtag_reset_callback(): -
Debug:   147 288 jtag.c:1301 jtag_reset_callback(): -
Debug:   148 288 jtag.c:1301 jtag_reset_callback(): -
Error:   149 289 jtag.c:1471 jtag_validate_chain(): Error validating JTAG scan 
chain, IR mismatch, scan returned 0x000029
Error:   150 289 jtag.c:1584 jtag_init_inner(): Could not validate JTAG chain, 
continuing anyway...
Debug:   151 289 openocd.c:120 handle_init_command(): jtag init complete
Warning: 152 291 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 291 jtag.c:1177 jtag_read_buffer(): in_handler reported a failed 
check
Warning: 154 291 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 291 jtag.c:1177 jtag_read_buffer(): in_handler reported a failed 
check
Debug:   156 292 openocd.c:129 handle_init_command(): flash init complete
Debug:   157 292 openocd.c:133 handle_init_command(): NAND init complete
Debug:   158 292 openocd.c:137 handle_init_command(): pld init complete
Debug:   159 292 gdb_server.c:2097 gdb_init(): gdb service for target arm966e 
at port 50001
Warning: 160 292 tcl_server.c:178 tcl_init(): no tcl port specified, using 
default port 6666

[EMAIL PROTECTED]:~$ telnet localhost 50000

Info:    161 10597 server.c:81 add_connection(): accepting 'telnet' connection 
from 0

> flash protect 0 0 2 off 

Debug:   163 23553 command.c:79 script_command(): script_command - protect
Debug:   164 23553 command.c:96 script_command(): script_command - protect, 
argv[0]=ocd_flash_protect
Debug:   165 23553 command.c:96 script_command(): script_command - protect, 
argv[1]=0
Debug:   166 23553 command.c:96 script_command(): script_command - protect, 
argv[2]=0
Debug:   167 23553 command.c:96 script_command(): script_command - protect, 
argv[3]=2
Debug:   168 23553 command.c:96 script_command(): script_command - protect, 
argv[4]=off
Error:   169 23553 str9x.c:363 str9x_protect(): Target not halted
Error:   170 23553 flash.c:131 flash_driver_protect(): failed setting 
protection for areas 0 to 2 (-304)

> halt

Debug:   172 33213 command.c:79 script_command(): script_command - halt
Debug:   173 33214 command.c:96 script_command(): script_command - halt, 
argv[0]=ocd_halt
Debug:   174 33214 target.c:1774 handle_halt_command(): -
Error:   175 33214 target.c:316 target_halt(): Target not examined yet
Debug:   176 33214 command.c:404 run_command(): Command failed with error code 
-4
User:    177 33214 command.c:604 openocd_jim_vfprintf(): Runtime error, file 
"?", line 1:
User:    178 33214 command.c:604 openocd_jim_vfprintf():     
Open On-Chip Debugger 1.0 (2008-08-26-10:03) svn:exported
$URL$
Debug:   4 0 configuration.c:88 find_file(): found openocd.cfg
Debug:   6 1 command.c:79 script_command(): script_command - telnet_port
Debug:   7 1 command.c:96 script_command(): script_command - telnet_port, 
argv[0]=ocd_telnet_port
Debug:   8 1 command.c:96 script_command(): script_command - telnet_port, 
argv[1]=50000
Debug:   10 1 command.c:79 script_command(): script_command - gdb_port
Debug:   11 1 command.c:96 script_command(): script_command - gdb_port, 
argv[0]=ocd_gdb_port
Debug:   12 1 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 2 command.c:79 script_command(): script_command - jtag_khz
Debug:   32 2 command.c:96 script_command(): script_command - jtag_khz, 
argv[0]=ocd_jtag_khz
Debug:   33 2 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 3 command.c:79 script_command(): script_command - jtag_device
Debug:   57 3 command.c:96 script_command(): script_command - jtag_device, 
argv[0]=ocd_jtag_device
Debug:   58 3 command.c:96 script_command(): script_command - jtag_device, 
argv[1]=4
Debug:   59 3 command.c:96 script_command(): script_command - jtag_device, 
argv[2]=0x1
Debug:   60 3 command.c:96 script_command(): script_command - jtag_device, 
argv[3]=0xf
Debug:   61 3 command.c:96 script_command(): script_command - jtag_device, 
argv[4]=0xe
Debug:   63 3 command.c:79 script_command(): script_command - jtag_device
Debug:   64 3 command.c:96 script_command(): script_command - jtag_device, 
argv[0]=ocd_jtag_device
Debug:   65 3 command.c:96 script_command(): script_command - jtag_device, 
argv[1]=5
Debug:   66 3 command.c:96 script_command(): script_command - jtag_device, 
argv[2]=0x1
Debug:   67 3 command.c:96 script_command(): script_command - jtag_device, 
argv[3]=0x1
Debug:   68 3 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 4 command.c:96 script_command(): script_command - working_area, 
argv[1]=0
Debug:   81 4 command.c:96 script_command(): script_command - working_area, 
argv[2]=0x50000000
Debug:   82 4 command.c:96 script_command(): script_command - working_area, 
argv[3]=16384
Debug:   83 4 command.c:96 script_command(): script_command - working_area, 
argv[4]=nobackup
Debug:   85 4 command.c:79 script_command(): script_command - bank
Debug:   86 4 command.c:96 script_command(): script_command - bank, 
argv[0]=ocd_flash_bank
Debug:   87 4 command.c:96 script_command(): script_command - bank, 
argv[1]=str9x
Debug:   88 4 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 286 ft2232.c:1548 ft2232_init_libftdi(): current latency timer: 2
Debug:   109 287 ft2232.c:1815 olimex_jtag_init(): 80 08 1b
Debug:   110 288 ft2232.c:1858 olimex_jtag_init(): 82 09 0f
Debug:   111 289 ft2232.c:253 ft2232_speed(): 86 00 00
Debug:   112 293 openocd.c:114 handle_init_command(): jtag interface init 
complete
Debug:   113 293 jtag.c:1560 jtag_init_inner(): Init JTAG chain
Debug:   114 293 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   115 293 jtag.c:1301 jtag_reset_callback(): -
Debug:   116 293 jtag.c:1301 jtag_reset_callback(): -
Debug:   117 293 jtag.c:1301 jtag_reset_callback(): -
Debug:   118 294 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   119 294 jtag.c:1301 jtag_reset_callback(): -
Debug:   120 294 jtag.c:1301 jtag_reset_callback(): -
Debug:   121 294 jtag.c:1301 jtag_reset_callback(): -
Info:    122 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0x04570041 (Manufacturer: 0x020, Part: 0x4570, Version: 0x0)
Info:    123 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    124 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    125 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    126 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    127 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    128 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    129 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    130 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    131 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    132 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    133 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    134 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    135 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    136 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    137 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    138 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    139 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    140 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Info:    141 297 jtag.c:1410 jtag_examine_chain(): JTAG device found: 
0xffffffff (Manufacturer: 0x7ff, Part: 0xffff, Version: 0xf)
Error:   142 297 jtag.c:1426 jtag_examine_chain(): number of discovered devices 
in JTAG chain (20) doesn't match configuration (3)
Error:   143 297 jtag.c:1427 jtag_examine_chain(): check the config file and 
ensure proper JTAG communication (connections, speed, ...)
Error:   144 298 jtag.c:1579 jtag_init_inner(): trying to validate configured 
JTAG chain anyway...
Debug:   145 298 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   146 298 jtag.c:1301 jtag_reset_callback(): -
Debug:   147 298 jtag.c:1301 jtag_reset_callback(): -
Debug:   148 298 jtag.c:1301 jtag_reset_callback(): -
Error:   149 299 jtag.c:1471 jtag_validate_chain(): Error validating JTAG scan 
chain, IR mismatch, scan returned 0x000029
Error:   150 299 jtag.c:1584 jtag_init_inner(): Could not validate JTAG chain, 
continuing anyway...
Debug:   151 299 openocd.c:120 handle_init_command(): jtag init complete
Warning: 152 301 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 301 jtag.c:1177 jtag_read_buffer(): in_handler reported a failed 
check
Warning: 154 301 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 301 jtag.c:1177 jtag_read_buffer(): in_handler reported a failed 
check
Debug:   156 302 openocd.c:129 handle_init_command(): flash init complete
Debug:   157 302 openocd.c:133 handle_init_command(): NAND init complete
Debug:   158 302 openocd.c:137 handle_init_command(): pld init complete
Debug:   159 302 gdb_server.c:2097 gdb_init(): gdb service for target arm966e 
at port 50001
Warning: 160 302 tcl_server.c:178 tcl_init(): no tcl port specified, using 
default port 6666

$ telnet localhost 50000

Info:    161 23808 server.c:81 add_connection(): accepting 'telnet' connection 
from 0
> flash protect 0 0 2 off 

Debug:   163 44329 command.c:79 script_command(): script_command - protect
Debug:   164 44329 command.c:96 script_command(): script_command - protect, 
argv[0]=ocd_flash_protect
Debug:   165 44329 command.c:96 script_command(): script_command - protect, 
argv[1]=0
Debug:   166 44329 command.c:96 script_command(): script_command - protect, 
argv[2]=0
Debug:   167 44329 command.c:96 script_command(): script_command - protect, 
argv[3]=2
Debug:   168 44329 command.c:96 script_command(): script_command - protect, 
argv[4]=off
Error:   169 44329 str9x.c:363 str9x_protect(): Target not halted
Error:   170 44329 flash.c:131 flash_driver_protect(): failed setting 
protection for areas 0 to 2 (-304)

Debug:   172 55049 command.c:79 script_command(): script_command - halt
Debug:   173 55049 command.c:96 script_command(): script_command - halt, 
argv[0]=ocd_halt
Debug:   174 55049 target.c:1774 handle_halt_command(): -
Error:   175 55049 target.c:316 target_halt(): Target not examined yet
Debug:   176 55049 command.c:404 run_command(): Command failed with error code 
-4
User:    177 55049 command.c:604 openocd_jim_vfprintf(): Runtime error, file 
"?", line 1:
User:    178 55049 command.c:604 openocd_jim_vfprintf():     

Target not examined yet
Runtime error, file "?", line 1:
    
> 
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to