Hi,

I'm trying to debug SAM9-L9260 board /AT91SAM9260 chip/ using the latest GIT 
openocd checkout, FT2232H-based dongle and libftdi-0.16. I'm getting the 
following error when issuing "reset init":

Error: 228 7449 ft2232.c:419 ft2232_read(): couldn't read the requested number 
of bytes from FT2232 device (0 < 6)

After increasing the FT2232 timeouts (patch attached) the "reset init" command 
completed successfully.

Then I tried to load an image into the internal SRAM but I got "usb bulk write 
failed". A complete debug log is attached.

I have an AMD Athlon XP 1900+ machine. The FTDI dongle is directly attached to 
the PC.

Any suggestions what might be the problem?

Regards,
Dimitar
diff --git a/src/jtag/ft2232.c b/src/jtag/ft2232.c
index 839976f..fb6b6fb 100644
--- a/src/jtag/ft2232.c
+++ b/src/jtag/ft2232.c
@@ -396,7 +396,7 @@ static int ft2232_read(uint8_t* buf, uint32_t size, uint32_t* bytes_read)
 
 #elif BUILD_FT2232_LIBFTDI == 1
 	int retval;
-	int timeout = 100;
+	int timeout = 2000;
 	*bytes_read = 0;
 
 	while ((*bytes_read < size) && timeout--)
@@ -675,7 +675,7 @@ static int ft2232_send_and_recv(jtag_command_t* first, jtag_command_t* last)
 
 	if (ft2232_expect_read)
 	{
-		int timeout = 100;
+		int timeout = 1000;
 		ft2232_buffer_size = 0;
 
 #ifdef _DEBUG_USB_IO_
@@ -707,14 +707,14 @@ static int ft2232_send_and_recv(jtag_command_t* first, jtag_command_t* last)
 		{
 			LOG_ERROR("ft2232_expect_read (%i) != ft2232_buffer_size (%i) (%i retries)", ft2232_expect_read,
 					ft2232_buffer_size,
-					100 - timeout);
+					1000 - timeout);
 			ft2232_debug_dump_buffer();
 
 			exit(-1);
 		}
 
 #ifdef _DEBUG_USB_COMMS_
-		LOG_DEBUG("read buffer (%i retries): %i bytes", 100 - timeout, ft2232_buffer_size);
+		LOG_DEBUG("read buffer (%i retries): %i bytes", 1000 - timeout, ft2232_buffer_size);
 		ft2232_debug_dump_buffer();
 #endif
 	}
# ./src/openocd -s ../openocd/tcl -f interface/olimex-arm-usb-tiny-h.cfg -f board/olimex_sam9_l9260.cfg -d4
Open On-Chip Debugger 0.3.0-dev-00419-g0b43649 (2009-10-25-14:03)
$URL$
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
User : 5 0 command.c:400 command_print(): debug_level: 3
Debug: 6 0 configuration.c:83 find_file(): found ../openocd/tcl/interface/olimex-arm-usb-tiny-h.cfg
Debug: 8 0 command.c:68 script_debug(): command - interface
Debug: 9 0 command.c:77 script_debug(): interface - argv[0]=ocd_interface
Debug: 10 0 command.c:77 script_debug(): interface - argv[1]=ft2232
Debug: 12 0 command.c:68 script_debug(): command - ft2232_device_desc
Debug: 13 0 command.c:77 script_debug(): ft2232_device_desc - argv[0]=ocd_ft2232_device_desc
Debug: 14 0 command.c:77 script_debug(): ft2232_device_desc - argv[1]=Olimex OpenOCD JTAG ARM-USB-TINY-H
Debug: 16 0 command.c:68 script_debug(): command - ft2232_layout
Debug: 17 0 command.c:77 script_debug(): ft2232_layout - argv[0]=ocd_ft2232_layout
Debug: 18 0 command.c:77 script_debug(): ft2232_layout - argv[1]=olimex-jtag
Debug: 20 1 command.c:68 script_debug(): command - ft2232_vid_pid
Debug: 21 1 command.c:77 script_debug(): ft2232_vid_pid - argv[0]=ocd_ft2232_vid_pid
Debug: 22 1 command.c:77 script_debug(): ft2232_vid_pid - argv[1]=0x15ba
Debug: 23 1 command.c:77 script_debug(): ft2232_vid_pid - argv[2]=0x002a
Debug: 24 1 configuration.c:83 find_file(): found ../openocd/tcl/board/olimex_sam9_l9260.cfg
Debug: 25 1 configuration.c:83 find_file(): found ../openocd/tcl/target/at91sam9260.cfg
Debug: 27 1 command.c:68 script_debug(): command - reset_config
Debug: 28 1 command.c:77 script_debug(): reset_config - argv[0]=ocd_reset_config
Debug: 29 1 command.c:77 script_debug(): reset_config - argv[1]=trst_and_srst
Debug: 30 1 command.c:77 script_debug(): reset_config - argv[2]=separate
Debug: 31 1 command.c:77 script_debug(): reset_config - argv[3]=trst_push_pull
Debug: 32 1 command.c:77 script_debug(): reset_config - argv[4]=srst_open_drain
User : 33 1 command.c:400 command_print(): trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
Debug: 34 1 tcl.c:246 jim_newtap_cmd(): Creating New Tap, Chip: at91sam9260, Tap: cpu, Dotted: at91sam9260.cpu, 8 params
Debug: 35 1 tcl.c:266 jim_newtap_cmd(): Processing option: -irlen
Debug: 36 1 tcl.c:266 jim_newtap_cmd(): Processing option: -ircapture
Debug: 37 1 tcl.c:266 jim_newtap_cmd(): Processing option: -irmask
Debug: 38 1 tcl.c:266 jim_newtap_cmd(): Processing option: -expected-id
Debug: 39 1 core.c:1228 jtag_tap_init(): Created Tap: at91sam9260.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 41 1 command.c:68 script_debug(): command - jtag_nsrst_delay
Debug: 42 1 command.c:77 script_debug(): jtag_nsrst_delay - argv[0]=ocd_jtag_nsrst_delay
Debug: 43 1 command.c:77 script_debug(): jtag_nsrst_delay - argv[1]=300
User : 44 1 command.c:400 command_print(): jtag_nsrst_delay: 300
Debug: 46 1 command.c:68 script_debug(): command - jtag_ntrst_delay
Debug: 47 1 command.c:77 script_debug(): jtag_ntrst_delay - argv[0]=ocd_jtag_ntrst_delay
Debug: 48 1 command.c:77 script_debug(): jtag_ntrst_delay - argv[1]=200
User : 49 1 command.c:400 command_print(): jtag_ntrst_delay: 200
Debug: 51 1 command.c:68 script_debug(): command - jtag_rclk
Debug: 52 1 command.c:77 script_debug(): jtag_rclk - argv[0]=ocd_jtag_rclk
Debug: 53 1 command.c:77 script_debug(): jtag_rclk - argv[1]=3
Debug: 54 1 core.c:1491 jtag_config_rclk(): handle jtag rclk
Debug: 55 1 core.c:1438 jtag_khz_to_speed(): convert khz to interface specific speed value
User : 56 1 command.c:400 command_print(): RCLK - adaptive
Debug: 57 2 target.c:4496 jim_target(): Target command params:
Debug: 58 2 target.c:4497 jim_target(): target create at91sam9260.cpu arm926ejs -endian little -chain-position at91sam9260.cpu -variant arm926ejs
Debug: 60 2 command.c:68 script_debug(): command - init
Debug: 61 2 command.c:77 script_debug(): init - argv[0]=ocd_init
Debug: 62 3 openocd.c:129 handle_init_command(): target init complete
Debug: 63 3 ft2232.c:2088 ft2232_init(): ft2232 interface using shortest path jtag state transitions
Debug: 64 6 ft2232.c:2002 ft2232_init_libftdi(): 'ft2232' interface using libftdi with 'olimex-jtag' layout (15ba:002a)
Debug: 65 92 ft2232.c:2046 ft2232_init_libftdi(): current latency timer: 2
Debug: 66 93 ft2232.c:2057 ft2232_init_libftdi(): FTDI chip type: 4 "2232H"
Debug: 67 93 ft2232.c:2426 olimex_jtag_init(): 80 08 1b
Debug: 68 93 ft2232.c:2470 olimex_jtag_init(): 82 09 0f
Info : 69 94 ft2232.c:475 ft2232h_ft4232h_clk_divide_by_5(): max TCK change to: 30000 kHz
Debug: 70 94 core.c:1438 jtag_khz_to_speed(): convert khz to interface specific speed value
Debug: 71 94 core.c:1442 jtag_khz_to_speed(): have interface set up
Debug: 72 94 ft2232.c:444 ft2232h_ft4232h_adaptive_clocking(): 96
Debug: 73 99 core.c:1438 jtag_khz_to_speed(): convert khz to interface specific speed value
Debug: 74 99 core.c:1442 jtag_khz_to_speed(): have interface set up
Info : 75 99 core.c:1281 jtag_interface_init(): RCLK (adaptive clock speed)
Debug: 76 99 openocd.c:136 handle_init_command(): jtag interface init complete
Debug: 77 99 ft2232.c:1351 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x01, high_direction: 0x0f
Debug: 78 100 core.c:702 jtag_add_reset(): SRST line released
Debug: 79 100 core.c:727 jtag_add_reset(): TRST line released
Debug: 80 100 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 82 602 core.c:1292 jtag_init_inner(): Init JTAG chain
Debug: 83 602 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 84 602 core.c:1034 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 85 602 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 86 603 core.c:945 jtag_examine_chain_display(): JTAG tap: at91sam9260.cpu tap/device found: 0x0792603f (mfg: 0x01f, part: 0x7926, ver: 0x0)
Debug: 87 603 core.c:1145 jtag_validate_ircapture(): IR capture validation scan
Debug: 88 604 core.c:1179 jtag_validate_ircapture(): at91sam9260.cpu: IR capture 0x01
Debug: 89 604 openocd.c:142 handle_init_command(): jtag init complete
Info : 90 606 embeddedice.c:206 embeddedice_build_reg_cache(): Embedded ICE version 6
Debug: 91 608 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000000
Debug: 92 608 arm7_9_common.c:61 arm7_9_clear_watchpoints(): -
Debug: 93 608 embeddedice.c:452 embeddedice_write_reg(): 12: 0x00000000
Debug: 94 608 embeddedice.c:452 embeddedice_write_reg(): 20: 0x00000000
Debug: 95 609 openocd.c:145 handle_init_command(): jtag examine complete
Debug: 96 609 openocd.c:151 handle_init_command(): flash init complete
Debug: 97 609 openocd.c:155 handle_init_command(): mflash init complete
Debug: 98 609 openocd.c:159 handle_init_command(): NAND init complete
Debug: 99 609 openocd.c:163 handle_init_command(): pld init complete
Debug: 100 609 gdb_server.c:2243 gdb_init(): gdb service for target arm926ejs at TCP port 3333
Info : 101 2963 server.c:79 add_connection(): accepting 'telnet' connection from 0
Debug: 103 5243 command.c:68 script_debug(): command - reset
Debug: 104 5243 command.c:77 script_debug(): reset - argv[0]=ocd_reset
Debug: 105 5243 command.c:77 script_debug(): reset - argv[1]=init
Debug: 106 5243 target.c:4496 jim_target(): Target command params:
Debug: 107 5243 target.c:4497 jim_target(): target names
Debug: 108 5243 target.c:3595 target_handle_event(): target: (0) at91sam9260.cpu (arm926ejs) event: 11 (reset-start) action:
        # At reset, CPU runs at 32.768 kHz.  JTAG frequency must be 6 times slower if
        # RCLK is not supported.
        jtag_rclk 5
        halt

        # RSTC_MR : enable user reset, reset length is 64 slow clock cycles.  MMU may
        # be enabled... use physical address.
        mww phys 0xfffffd08 0xa5000501

Debug: 110 5243 command.c:68 script_debug(): command - jtag_rclk
Debug: 111 5243 command.c:77 script_debug(): jtag_rclk - argv[0]=ocd_jtag_rclk
Debug: 112 5243 command.c:77 script_debug(): jtag_rclk - argv[1]=5
Debug: 113 5243 core.c:1491 jtag_config_rclk(): handle jtag rclk
Debug: 114 5243 core.c:1438 jtag_khz_to_speed(): convert khz to interface specific speed value
Debug: 115 5243 core.c:1442 jtag_khz_to_speed(): have interface set up
Debug: 116 5243 ft2232.c:444 ft2232h_ft4232h_adaptive_clocking(): 96
Debug: 117 5244 core.c:1438 jtag_khz_to_speed(): convert khz to interface specific speed value
Debug: 118 5244 core.c:1442 jtag_khz_to_speed(): have interface set up
User : 119 5244 command.c:400 command_print(): RCLK - adaptive
Debug: 121 5245 command.c:68 script_debug(): command - halt
Debug: 122 5245 command.c:77 script_debug(): halt - argv[0]=ocd_halt
Debug: 123 5245 target.c:2118 handle_halt_command(): -
Debug: 124 5245 arm7_9_common.c:1326 arm7_9_halt(): target->state: running
Debug: 125 5245 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000002
Debug: 126 5245 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 127 5245 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 128 5246 arm926ejs.c:364 arm926ejs_examine_debug_reason(): internal debug request
Debug: 129 5246 arm7_9_common.c:1436 arm7_9_debug_entry(): target entered debug from ARM state
Debug: 130 5248 arm7_9_common.c:1468 arm7_9_debug_entry(): target entered debug state in Supervisor mode
Debug: 131 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r0: 0x0000153c
Debug: 132 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r1: 0x00000000
Debug: 133 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r2: 0x01618137
Debug: 134 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r3: 0x23f3d484
Debug: 135 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r4: 0x00000233
Debug: 136 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r5: 0x0104405d
Debug: 137 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r6: 0x00000000
Debug: 138 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r7: 0x23ed8458
Debug: 139 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r8: 0x23ed2fdc
Debug: 140 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r9: 0xdf97e886
Debug: 141 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r10: 0x23ed8458
Debug: 142 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r11: 0x14012b0b
Debug: 143 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r12: 0xfffc4000
Debug: 144 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r13: 0x23ed2f20
Debug: 145 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r14: 0x23f1c048
Debug: 146 5248 arm7_9_common.c:1491 arm7_9_debug_entry(): r15: 0x23f1c024
Debug: 147 5248 arm7_9_common.c:1497 arm7_9_debug_entry(): entered debug state at PC 0x23f1c024
Debug: 148 5253 arm926ejs.c:513 arm926ejs_post_debug_entry(): cp15_control_reg: 00051078
Debug: 149 5262 arm926ejs.c:534 arm926ejs_post_debug_entry(): D FSR: 0x00000017, D FAR: 0x6c800601, I FSR: 0x00000001
Debug: 150 5265 target.c:950 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 151 5265 target.c:950 target_call_event_callbacks(): target event 5 (halted)
User : 152 5265 target.c:1212 target_arch_state(): target state: halted
User : 153 5265 arm926ejs.c:633 arm926ejs_arch_state(): target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x200000d3 pc: 0x23f1c024
MMU: disabled, D-Cache: disabled, I-Cache: enabled
Debug: 155 5265 command.c:68 script_debug(): command - mww
Debug: 156 5265 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 157 5265 command.c:77 script_debug(): mww - argv[1]=phys
Debug: 158 5265 command.c:77 script_debug(): mww - argv[2]=0xfffffd08
Debug: 159 5266 command.c:77 script_debug(): mww - argv[3]=0xa5000501
Debug: 160 5279 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 161 5281 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 162 5287 core.c:1366 jtag_init_reset(): Initializing with hard TRST+SRST reset
Debug: 163 5287 ft2232.c:1351 olimex_jtag_reset(): trst: 1, srst: 0, high_output: 0x00, high_direction: 0x0f
Debug: 164 5287 core.c:722 jtag_add_reset(): TRST line asserted
Debug: 165 5287 ft2232.c:1351 olimex_jtag_reset(): trst: 1, srst: 1, high_output: 0x0a, high_direction: 0x0f
Debug: 166 5287 core.c:697 jtag_add_reset(): SRST line asserted
Debug: 167 5288 ft2232.c:1351 olimex_jtag_reset(): trst: 0, srst: 1, high_output: 0x03, high_direction: 0x0f
Debug: 168 5288 core.c:727 jtag_add_reset(): TRST line released
Debug: 169 5288 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 170 5488 ft2232.c:1351 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f
Debug: 171 5489 core.c:702 jtag_add_reset(): SRST line released
Debug: 173 5789 core.c:1292 jtag_init_inner(): Init JTAG chain
Debug: 174 5789 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 175 5790 core.c:1034 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 176 5790 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 177 5790 core.c:945 jtag_examine_chain_display(): JTAG tap: at91sam9260.cpu tap/device found: 0x0792603f (mfg: 0x01f, part: 0x7926, ver: 0x0)
Debug: 178 5790 core.c:1145 jtag_validate_ircapture(): IR capture validation scan
Debug: 179 5791 core.c:1179 jtag_validate_ircapture(): at91sam9260.cpu: IR capture 0x01
Debug: 180 5794 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000000
Debug: 181 5794 arm7_9_common.c:61 arm7_9_clear_watchpoints(): -
Debug: 182 5794 embeddedice.c:452 embeddedice_write_reg(): 12: 0x00000000
Debug: 183 5794 embeddedice.c:452 embeddedice_write_reg(): 20: 0x00000000
Debug: 184 5795 arm7_9_common.c:1015 arm7_9_assert_reset(): target->state: halted
Debug: 185 5795 embeddedice.c:452 embeddedice_write_reg(): 2: 0x00000001
Debug: 186 5795 ft2232.c:1351 olimex_jtag_reset(): trst: 0, srst: 1, high_output: 0x03, high_direction: 0x0f
Debug: 187 5795 core.c:697 jtag_add_reset(): SRST line asserted
Debug: 188 5795 arm7_9_common.c:1106 arm7_9_deassert_reset(): target->state: reset
Debug: 189 5849 ft2232.c:1351 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f
Debug: 190 5849 core.c:702 jtag_add_reset(): SRST line released
Debug: 191 6169 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 192 6169 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 193 6201 arm926ejs.c:344 arm926ejs_examine_debug_reason(): vector catch breakpoint
Debug: 194 6201 arm7_9_common.c:1436 arm7_9_debug_entry(): target entered debug from ARM state
Debug: 195 6603 arm7_9_common.c:1468 arm7_9_debug_entry(): target entered debug state in Supervisor mode
Debug: 196 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r0: 0xfffc8010
Debug: 197 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r1: 0x00000100
Debug: 198 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r2: 0x00030000
Debug: 199 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r3: 0x00000001
Debug: 200 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r4: 0x00300fb4
Debug: 201 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r5: 0x00300fb0
Debug: 202 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r6: 0x00000008
Debug: 203 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r7: 0x23f18000
Debug: 204 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r8: 0x00008000
Debug: 205 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r9: 0x23f00000
Debug: 206 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r10: 0x0001a000
Debug: 207 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r11: 0x14012b0b
Debug: 208 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r12: 0x00000000
Debug: 209 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r13: 0x00300d88
Debug: 210 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r14: 0x00200a58
Debug: 211 6603 arm7_9_common.c:1491 arm7_9_debug_entry(): r15: 0x00000000
Debug: 212 6603 arm7_9_common.c:1497 arm7_9_debug_entry(): entered debug state at PC 0x0
Debug: 213 6757 arm926ejs.c:513 arm926ejs_post_debug_entry(): cp15_control_reg: 00050078
Debug: 214 6819 arm926ejs.c:534 arm926ejs_post_debug_entry(): D FSR: 0x00000017, D FAR: 0x6c800601, I FSR: 0x00000001
Debug: 215 6861 target.c:950 target_call_event_callbacks(): target event 4 (gdb-halt)
Debug: 216 6861 target.c:950 target_call_event_callbacks(): target event 5 (halted)
User : 217 6861 target.c:1212 target_arch_state(): target state: halted
User : 218 6862 arm926ejs.c:633 arm926ejs_arch_state(): target halted in ARM state due to breakpoint, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
Debug: 219 6887 target.c:3595 target_handle_event(): target: (0) at91sam9260.cpu (arm926ejs) event: 20 (reset-init) action:
        mww 0xfffffd44 0x00008000 # WDT_MR : disable watchdog

        ##
        # Clock configuration for 99.328 MHz main clock.
        ##
        mww 0xfffffc20 0x00004001 # CKGR_MOR : enable main oscillator, 512 slow clock startup
        sleep 20                  # wait 20 ms (need 15.6 ms for startup)
        mww 0xfffffc30 0x00000001 # PMC_MCKR : switch to main oscillator (18.432 MHz)
        sleep 10                  # wait 10 ms
        mww 0xfffffc28 0x2060bf09 # CKGR_PLLAR : 18.432 MHz / 9 * 97 = 198.656 MHz, 63 slow clock startup
        sleep 20                  # wait 20 ms (need 1.9 ms for startup)
        mww 0xfffffc30 0x00000101 # PMC_MCKR : no scale on proc clock, master is proc / 2
        sleep 10                  # wait 10 ms
        mww 0xfffffc30 0x00000102 # PMC_MCKR : switch to PLLA (99.328 MHz)

        # Increase JTAG speed to 6 MHz if RCLK is not supported.
        jtag_rclk 6000

        arm7_9 dcc_downloads enable # Enable faster DCC downloads.

        ##
        # SDRAM configuration for 2 x Samsung K4S561632J-UC75, 4M x 16Bit x 4 Banks.
        ##
        mww 0xfffff870 0xffff0000 # PIOC_ASR : select peripheral function for D15..D31
        mww 0xfffff804 0xffff0000 # PIOC_PDR : disable PIO function for D15..D31

        mww 0xffffef1c 0x00010002 # EBI_CSA : assign EBI CS1 to SDRAM, VDDIOMSEL set for +3V3 memory

        mww 0xffffea08 0x85237259 # SDRAMC_CR : configure SDRAM for Samsung chips

        mww 0xffffea00 0x1        # SDRAMC_MR : issue NOP command
        mww 0x20000000 0
        mww 0xffffea00 0x2        # SDRAMC_MR : issue an 'All Banks Precharge' command
        mww 0x20000000 0
        mww 0xffffea00 0x4        # SDRAMC_MR : issue 8 x 'Auto-Refresh' command
        mww 0x20000000 0
        mww 0xffffea00 0x4
        mww 0x20000000 0
        mww 0xffffea00 0x4
        mww 0x20000000 0
        mww 0xffffea00 0x4
        mww 0x20000000 0
        mww 0xffffea00 0x4
        mww 0x20000000 0
        mww 0xffffea00 0x4
        mww 0x20000000 0
        mww 0xffffea00 0x4
        mww 0x20000000 0
        mww 0xffffea00 0x4
        mww 0x20000000 0
        mww 0xffffea00 0x3        # SDRAMC_MR : issue a 'Load Mode Register' command
        mww 0x20000000 0
        mww 0xffffea00 0x0        # SDRAMC_MR : normal mode
        mww 0x20000000 0

        mww 0xffffea04 0x2b6      # SDRAMC_TR : set refresh timer count to 7 us

Debug: 220 6888 log.c:483 keep_alive(): keep_alive() was not invoked in the 1000ms timelimit (1139). This may cause trouble with GDB connections.
Debug: 223 6888 command.c:68 script_debug(): command - mww
Debug: 224 6888 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 225 6888 command.c:77 script_debug(): mww - argv[1]=0xfffffd44
Debug: 226 6888 command.c:77 script_debug(): mww - argv[2]=0x00008000
Debug: 227 6888 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 228 7109 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 230 7251 command.c:68 script_debug(): command - mww
Debug: 231 7251 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 232 7251 command.c:77 script_debug(): mww - argv[1]=0xfffffc20
Debug: 233 7251 command.c:77 script_debug(): mww - argv[2]=0x00004001
Debug: 234 7251 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 235 7465 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 238 7607 command.c:68 script_debug(): command - sleep
Debug: 239 7607 command.c:77 script_debug(): sleep - argv[0]=ocd_sleep
Debug: 240 7607 command.c:77 script_debug(): sleep - argv[1]=20
Debug: 242 7627 command.c:68 script_debug(): command - mww
Debug: 243 7627 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 244 7627 command.c:77 script_debug(): mww - argv[1]=0xfffffc30
Debug: 245 7627 command.c:77 script_debug(): mww - argv[2]=0x00000001
Debug: 246 7627 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 247 7821 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 249 7823 command.c:68 script_debug(): command - sleep
Debug: 250 7823 command.c:77 script_debug(): sleep - argv[0]=ocd_sleep
Debug: 251 7823 command.c:77 script_debug(): sleep - argv[1]=10
Debug: 253 7833 command.c:68 script_debug(): command - mww
Debug: 254 7833 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 255 7833 command.c:77 script_debug(): mww - argv[1]=0xfffffc28
Debug: 256 7833 command.c:77 script_debug(): mww - argv[2]=0x2060bf09
Debug: 257 7833 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 258 7836 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 260 7838 command.c:68 script_debug(): command - sleep
Debug: 261 7838 command.c:77 script_debug(): sleep - argv[0]=ocd_sleep
Debug: 262 7838 command.c:77 script_debug(): sleep - argv[1]=20
Debug: 264 7858 command.c:68 script_debug(): command - mww
Debug: 265 7858 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 266 7858 command.c:77 script_debug(): mww - argv[1]=0xfffffc30
Debug: 267 7858 command.c:77 script_debug(): mww - argv[2]=0x00000101
Debug: 268 7858 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 269 7860 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 271 7862 command.c:68 script_debug(): command - sleep
Debug: 272 7862 command.c:77 script_debug(): sleep - argv[0]=ocd_sleep
Debug: 273 7862 command.c:77 script_debug(): sleep - argv[1]=10
Debug: 275 7873 command.c:68 script_debug(): command - mww
Debug: 276 7873 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 277 7873 command.c:77 script_debug(): mww - argv[1]=0xfffffc30
Debug: 278 7873 command.c:77 script_debug(): mww - argv[2]=0x00000102
Debug: 279 7873 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 280 7875 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 282 7877 command.c:68 script_debug(): command - jtag_rclk
Debug: 283 7877 command.c:77 script_debug(): jtag_rclk - argv[0]=ocd_jtag_rclk
Debug: 284 7877 command.c:77 script_debug(): jtag_rclk - argv[1]=6000
Debug: 285 7877 core.c:1491 jtag_config_rclk(): handle jtag rclk
Debug: 286 7877 core.c:1438 jtag_khz_to_speed(): convert khz to interface specific speed value
Debug: 287 7877 core.c:1442 jtag_khz_to_speed(): have interface set up
Debug: 288 7877 ft2232.c:444 ft2232h_ft4232h_adaptive_clocking(): 96
Debug: 289 7877 core.c:1438 jtag_khz_to_speed(): convert khz to interface specific speed value
Debug: 290 7877 core.c:1442 jtag_khz_to_speed(): have interface set up
User : 291 7877 command.c:400 command_print(): RCLK - adaptive
Debug: 293 7878 command.c:68 script_debug(): command - dcc_downloads
Debug: 294 7878 command.c:77 script_debug(): dcc_downloads - argv[0]=ocd_arm7_9_dcc_downloads
Debug: 295 7878 command.c:77 script_debug(): dcc_downloads - argv[1]=enable
User : 296 7878 command.c:400 command_print(): dcc downloads are enabled
Debug: 298 7878 command.c:68 script_debug(): command - mww
Debug: 299 7878 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 300 7878 command.c:77 script_debug(): mww - argv[1]=0xfffff870
Debug: 301 7878 command.c:77 script_debug(): mww - argv[2]=0xffff0000
Debug: 302 7878 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 303 7879 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 305 7881 command.c:68 script_debug(): command - mww
Debug: 306 7881 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 307 7881 command.c:77 script_debug(): mww - argv[1]=0xfffff804
Debug: 308 7881 command.c:77 script_debug(): mww - argv[2]=0xffff0000
Debug: 309 7881 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 310 7883 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 312 7885 command.c:68 script_debug(): command - mww
Debug: 313 7885 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 314 7885 command.c:77 script_debug(): mww - argv[1]=0xffffef1c
Debug: 315 7885 command.c:77 script_debug(): mww - argv[2]=0x00010002
Debug: 316 7885 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 317 7887 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 319 7889 command.c:68 script_debug(): command - mww
Debug: 320 7889 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 321 7889 command.c:77 script_debug(): mww - argv[1]=0xffffea08
Debug: 322 7889 command.c:77 script_debug(): mww - argv[2]=0x85237259
Debug: 323 7889 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 324 7891 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 326 7893 command.c:68 script_debug(): command - mww
Debug: 327 7893 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 328 7893 command.c:77 script_debug(): mww - argv[1]=0xffffea00
Debug: 329 7893 command.c:77 script_debug(): mww - argv[2]=0x1
Debug: 330 7893 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 331 7895 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 333 7897 command.c:68 script_debug(): command - mww
Debug: 334 7897 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 335 7897 command.c:77 script_debug(): mww - argv[1]=0x20000000
Debug: 336 7897 command.c:77 script_debug(): mww - argv[2]=0
Debug: 337 7897 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 338 7899 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 340 7901 command.c:68 script_debug(): command - mww
Debug: 341 7901 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 342 7901 command.c:77 script_debug(): mww - argv[1]=0xffffea00
Debug: 343 7901 command.c:77 script_debug(): mww - argv[2]=0x2
Debug: 344 7901 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 345 7903 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 347 7905 command.c:68 script_debug(): command - mww
Debug: 348 7905 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 349 7905 command.c:77 script_debug(): mww - argv[1]=0x20000000
Debug: 350 7905 command.c:77 script_debug(): mww - argv[2]=0
Debug: 351 7905 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 352 7907 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 354 7910 command.c:68 script_debug(): command - mww
Debug: 355 7910 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 356 7910 command.c:77 script_debug(): mww - argv[1]=0xffffea00
Debug: 357 7910 command.c:77 script_debug(): mww - argv[2]=0x4
Debug: 358 7910 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 359 7911 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 361 7913 command.c:68 script_debug(): command - mww
Debug: 362 7913 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 363 7913 command.c:77 script_debug(): mww - argv[1]=0x20000000
Debug: 364 7913 command.c:77 script_debug(): mww - argv[2]=0
Debug: 365 7913 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 366 7915 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 368 7917 command.c:68 script_debug(): command - mww
Debug: 369 7917 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 370 7917 command.c:77 script_debug(): mww - argv[1]=0xffffea00
Debug: 371 7917 command.c:77 script_debug(): mww - argv[2]=0x4
Debug: 372 7917 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 373 7919 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 375 7921 command.c:68 script_debug(): command - mww
Debug: 376 7921 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 377 7921 command.c:77 script_debug(): mww - argv[1]=0x20000000
Debug: 378 7921 command.c:77 script_debug(): mww - argv[2]=0
Debug: 379 7921 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 380 7923 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 382 7925 command.c:68 script_debug(): command - mww
Debug: 383 7925 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 384 7925 command.c:77 script_debug(): mww - argv[1]=0xffffea00
Debug: 385 7925 command.c:77 script_debug(): mww - argv[2]=0x4
Debug: 386 7925 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 387 7927 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 389 7929 command.c:68 script_debug(): command - mww
Debug: 390 7929 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 391 7929 command.c:77 script_debug(): mww - argv[1]=0x20000000
Debug: 392 7929 command.c:77 script_debug(): mww - argv[2]=0
Debug: 393 7929 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 394 7931 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 396 7933 command.c:68 script_debug(): command - mww
Debug: 397 7933 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 398 7933 command.c:77 script_debug(): mww - argv[1]=0xffffea00
Debug: 399 7933 command.c:77 script_debug(): mww - argv[2]=0x4
Debug: 400 7933 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 401 7935 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 403 7937 command.c:68 script_debug(): command - mww
Debug: 404 7937 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 405 7937 command.c:77 script_debug(): mww - argv[1]=0x20000000
Debug: 406 7937 command.c:77 script_debug(): mww - argv[2]=0
Debug: 407 7937 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 408 7939 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 410 7941 command.c:68 script_debug(): command - mww
Debug: 411 7941 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 412 7941 command.c:77 script_debug(): mww - argv[1]=0xffffea00
Debug: 413 7941 command.c:77 script_debug(): mww - argv[2]=0x4
Debug: 414 7941 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 415 7943 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 417 7945 command.c:68 script_debug(): command - mww
Debug: 418 7945 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 419 7945 command.c:77 script_debug(): mww - argv[1]=0x20000000
Debug: 420 7945 command.c:77 script_debug(): mww - argv[2]=0
Debug: 421 7945 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 422 7947 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 424 7949 command.c:68 script_debug(): command - mww
Debug: 425 7949 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 426 7949 command.c:77 script_debug(): mww - argv[1]=0xffffea00
Debug: 427 7949 command.c:77 script_debug(): mww - argv[2]=0x4
Debug: 428 7949 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 429 7951 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 431 7953 command.c:68 script_debug(): command - mww
Debug: 432 7953 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 433 7953 command.c:77 script_debug(): mww - argv[1]=0x20000000
Debug: 434 7953 command.c:77 script_debug(): mww - argv[2]=0
Debug: 435 7953 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 436 7955 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 438 7957 command.c:68 script_debug(): command - mww
Debug: 439 7957 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 440 7957 command.c:77 script_debug(): mww - argv[1]=0xffffea00
Debug: 441 7957 command.c:77 script_debug(): mww - argv[2]=0x4
Debug: 442 7957 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 443 7959 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 445 7961 command.c:68 script_debug(): command - mww
Debug: 446 7961 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 447 7961 command.c:77 script_debug(): mww - argv[1]=0x20000000
Debug: 448 7961 command.c:77 script_debug(): mww - argv[2]=0
Debug: 449 7961 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 450 7963 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 452 7965 command.c:68 script_debug(): command - mww
Debug: 453 7965 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 454 7965 command.c:77 script_debug(): mww - argv[1]=0xffffea00
Debug: 455 7965 command.c:77 script_debug(): mww - argv[2]=0x4
Debug: 456 7965 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 457 7967 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 459 7969 command.c:68 script_debug(): command - mww
Debug: 460 7969 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 461 7969 command.c:77 script_debug(): mww - argv[1]=0x20000000
Debug: 462 7969 command.c:77 script_debug(): mww - argv[2]=0
Debug: 463 7969 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 464 7971 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 466 7973 command.c:68 script_debug(): command - mww
Debug: 467 7973 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 468 7973 command.c:77 script_debug(): mww - argv[1]=0xffffea00
Debug: 469 7973 command.c:77 script_debug(): mww - argv[2]=0x3
Debug: 470 7973 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 471 7975 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 473 7977 command.c:68 script_debug(): command - mww
Debug: 474 7977 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 475 7977 command.c:77 script_debug(): mww - argv[1]=0x20000000
Debug: 476 7977 command.c:77 script_debug(): mww - argv[2]=0
Debug: 477 7977 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 478 7979 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 480 7981 command.c:68 script_debug(): command - mww
Debug: 481 7981 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 482 7981 command.c:77 script_debug(): mww - argv[1]=0xffffea00
Debug: 483 7981 command.c:77 script_debug(): mww - argv[2]=0x0
Debug: 484 7981 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 485 7983 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 487 7985 command.c:68 script_debug(): command - mww
Debug: 488 7985 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 489 7985 command.c:77 script_debug(): mww - argv[1]=0x20000000
Debug: 490 7985 command.c:77 script_debug(): mww - argv[2]=0
Debug: 491 7985 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 492 7987 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 494 7989 command.c:68 script_debug(): command - mww
Debug: 495 7989 command.c:77 script_debug(): mww - argv[0]=ocd_mww
Debug: 496 7989 command.c:77 script_debug(): mww - argv[1]=0xffffea04
Debug: 497 7989 command.c:77 script_debug(): mww - argv[2]=0x2b6
Debug: 498 7989 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 499 7991 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 501 18822 command.c:68 script_debug(): command - load_image
Debug: 502 18822 command.c:77 script_debug(): load_image - argv[0]=ocd_load_image
Debug: 503 18822 command.c:77 script_debug(): load_image - argv[1]=dd
Debug: 504 18822 command.c:77 script_debug(): load_image - argv[2]=0x200000
Debug: 505 18822 configuration.c:83 find_file(): found dd
Debug: 506 18822 configuration.c:83 find_file(): found dd
Debug: 507 18822 target.c:1229 target_write_buffer(): writing buffer of 4096 byte at 0x00200000
Debug: 508 18822 target.c:1083 target_alloc_working_area(): allocating new working area
Debug: 509 18822 arm7_9_common.c:2282 arm7_9_read_memory(): address: 0x00000000, size: 0x00000004, count: 0x00000006
Debug: 510 18825 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 511 18827 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000005
Debug: 512 18829 armv4_5.c:559 armv4_5_run_algorithm_inner(): Running algorithm
Debug: 513 18829 armv4_5.c:633 armv4_5_run_algorithm_inner(): setting core_mode: 0x13
Debug: 514 18829 arm7_9_common.c:61 arm7_9_clear_watchpoints(): -
Debug: 515 18829 embeddedice.c:452 embeddedice_write_reg(): 12: 0x00000000
Debug: 516 18829 embeddedice.c:452 embeddedice_write_reg(): 20: 0x00000000
Debug: 517 18829 arm7_9_common.c:101 arm7_9_assign_wp(): BPID: 0 (0x00000018) using hw wp: 1
Debug: 518 18829 arm7_9_common.c:234 arm7_9_set_breakpoint(): BPID: 0, Address: 0x00000018, Type: 0
Debug: 519 18829 embeddedice.c:452 embeddedice_write_reg(): 8: 0x00000018
Debug: 520 18829 embeddedice.c:452 embeddedice_write_reg(): 9: 0x00000003
Debug: 521 18829 embeddedice.c:452 embeddedice_write_reg(): 11: 0xffffffff
Debug: 522 18829 embeddedice.c:452 embeddedice_write_reg(): 13: 0x000000f7
Debug: 523 18829 embeddedice.c:452 embeddedice_write_reg(): 12: 0x00000100
Debug: 524 18830 breakpoints.c:104 breakpoint_add(): added hardware breakpoint at 0x00000018 of length 0x00000004, (BPID: 0)
Debug: 525 18830 arm7_9_common.c:1843 arm7_9_resume(): -
Debug: 526 18830 arm7_9_common.c:234 arm7_9_set_breakpoint(): BPID: 0, Address: 0x00000018, Type: 0
Debug: 527 18830 embeddedice.c:452 embeddedice_write_reg(): 8: 0x00000018
Debug: 528 18830 embeddedice.c:452 embeddedice_write_reg(): 9: 0x00000003
Debug: 529 18830 embeddedice.c:452 embeddedice_write_reg(): 11: 0xffffffff
Debug: 530 18830 embeddedice.c:452 embeddedice_write_reg(): 13: 0x000000f7
Debug: 531 18830 embeddedice.c:452 embeddedice_write_reg(): 12: 0x00000100
Debug: 532 18830 arm7_9_common.c:1642 arm7_9_restore_context(): -
Debug: 533 18843 arm7_9_common.c:1661 arm7_9_restore_context(): examining User mode
Debug: 534 18843 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: r0
Debug: 535 18843 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: r1
Debug: 536 18843 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: r2
Debug: 537 18843 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: r3
Debug: 538 18843 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: r4
Debug: 539 18843 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: r5
Debug: 540 18843 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: r6
Debug: 541 18843 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: pc
Debug: 542 18843 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: cpsr
Debug: 543 18843 arm7_9_common.c:1723 arm7_9_restore_context(): writing register 0 of mode User with value 0x00200000
Debug: 544 18844 arm7_9_common.c:1723 arm7_9_restore_context(): writing register 1 of mode User with value 0x00000100
Debug: 545 18844 arm7_9_common.c:1723 arm7_9_restore_context(): writing register 2 of mode User with value 0x00030000
Debug: 546 18844 arm7_9_common.c:1723 arm7_9_restore_context(): writing register 3 of mode User with value 0x00000001
Debug: 547 18844 arm7_9_common.c:1723 arm7_9_restore_context(): writing register 4 of mode User with value 0x00300fb4
Debug: 548 18844 arm7_9_common.c:1723 arm7_9_restore_context(): writing register 5 of mode User with value 0x00300fb0
Debug: 549 18844 arm7_9_common.c:1723 arm7_9_restore_context(): writing register 6 of mode User with value 0x00000008
Debug: 550 18844 arm7_9_common.c:1661 arm7_9_restore_context(): examining FIQ mode
Debug: 551 18844 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: pc
Debug: 552 18844 arm7_9_common.c:1661 arm7_9_restore_context(): examining IRQ mode
Debug: 553 18844 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: pc
Debug: 554 18844 arm7_9_common.c:1661 arm7_9_restore_context(): examining Supervisor mode
Debug: 555 18844 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: pc
Debug: 556 18844 arm7_9_common.c:1661 arm7_9_restore_context(): examining Abort mode
Debug: 557 18844 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: pc
Debug: 558 18844 arm7_9_common.c:1661 arm7_9_restore_context(): examining Undefined mode
Debug: 559 18844 arm7_9_common.c:1675 arm7_9_restore_context(): examining dirty reg: pc
Debug: 560 18844 arm7_9_common.c:1756 arm7_9_restore_context(): writing cpsr with value 0x000000d3
Debug: 561 18844 arm9tdmi.c:521 arm9tdmi_write_xpsr(): xpsr: 000000d3, spsr: 0
Debug: 562 18844 arm7_9_common.c:1763 arm7_9_restore_context(): writing PC with value 0x00000000
Debug: 563 18844 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000004
Debug: 564 18844 target.c:950 target_call_event_callbacks(): target event 23 (debug-resumed)
Debug: 565 18844 arm7_9_common.c:1990 arm7_9_resume(): target resumed
Debug: 566 18845 embeddedice.c:452 embeddedice_write_reg(): 5: 0x21610222
Debug: 567 18846 embeddedice.c:452 embeddedice_write_reg(): 5: 0xf28ce51e
Debug: 568 18846 arm7_9_common.c:1326 arm7_9_halt(): target->state: debug-running
Debug: 569 18846 embeddedice.c:452 embeddedice_write_reg(): 0: 0x00000006
Error: 570 23848 ft2232.c:366 ft2232_write(): ftdi_write_data: usb bulk write failed
Error: 571 23848 ft2232.c:668 ft2232_send_and_recv(): couldn't write MPSSE commands to FT2232
Debug: 572 23848 arm7_9_common.c:364 arm7_9_unset_breakpoint(): BPID: 0, Address: 0x00000018
Debug: 573 23848 arm7_9_common.c:376 arm7_9_unset_breakpoint(): BPID: 0 Releasing hw wp: 1
Debug: 574 23848 embeddedice.c:452 embeddedice_write_reg(): 12: 0x00000000
Error: 575 28852 ft2232.c:366 ft2232_write(): ftdi_write_data: usb bulk write failed
Error: 576 28852 ft2232.c:668 ft2232_send_and_recv(): couldn't write MPSSE commands to FT2232
Debug: 577 28852 breakpoints.c:128 breakpoint_free(): BPID: 0
Debug: 578 28852 command.c:444 run_command(): Command failed with error code -104
User : 579 28853 command.c:646 openocd_jim_vfprintf(): Runtime error, file "command.c", line 473:
    User : 580 28853 command.c:646 openocd_jim_vfprintf():
Error: 581 33868 ft2232.c:366 ft2232_write(): ftdi_write_data: usb bulk write failed
Error: 582 33869 ft2232.c:668 ft2232_send_and_recv(): couldn't write MPSSE commands to FT2232
Debug: 583 33869 target.c:950 target_call_event_callbacks(): target event 4 (gdb-halt)
^C
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to