Is OpenOCD reliable?

Hi,

Getting a little frustrated here. Following on from this thread:

viewtopic.php?t=10476

I have got past the lock issue by manually issuing the FLASH instructions from a script. It seems that there is some issue because Atmel FLASH has the same id as Intel FLASH so it uses the Intel routines which shouldnt be a problem as the statemachines and commands are all the same except for burst programming mode.

Now Im having numerous problems. If I write a few words of flash then all is well but if I try and write_image to a single sector or multiple sectors I get both some sectors not being written to and others being incorrect.

Telnet Connection

Open On-Chip Debugger
> script boot.script
dcc downloads are enabled
JTAG device found: 0x05b0203f (Manufacturer: 0x01f, Part: 0x5b02, Version: 0x0)
target state: halted
target halted in ARM state due to debug request, current mode: Abort
cpsr: 0xf00000d7 pc: 0x00000000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
target state: halted
target halted in ARM state due to debug request, current mode: Abort
cpsr: 0xf00000d7 pc: 0x00000000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
expected one protection register field, but found 255
flash 'cfi' found at 0x10000000
erased sectors 0 through 9 on flash bank 0 in 8.937500s
Using target buffer at 0x00200038 and of size 0x8000
Write 0x04b0 bytes to flash at 0x10000000
Fixup 1 unaligned tail bytes
wrote 1201 byte from file 0x10000000.bin in 9.390625s (0.124896 kb/s)
target state: halted
target halted in ARM state due to breakpoint, current mode: Abort
cpsr: 0x300000d7 pc: 0x00000000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
JTAG device found: 0x05b0203f (Manufacturer: 0x01f, Part: 0x5b02, Version: 0x0)
> mdw 0x10000000 0x200
target not halted
Failure examining memory
> halt
waiting for target halted...
target state: halted
target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x600000d3 pc: 0x00000000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
> mdw 0x10000000 0x200
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5
timeout waiting for SYSCOMP & DBGACK, last DBG_STATUS: 5

openOCD Log

Open On-Chip Debugger (2008-04-19 12:00) svn: 592
URL: http://svn.berlios.de/svnroot/repos/openocd/trunk
Debug:   5 0 command.c:383 command_run_line(): script debug.cfg
Debug:   6 0 configuration.c:87 open_file_from_path(): opened debug.cfg
Debug:   7 0 command.c:383 command_run_line(): telnet_port              4444
Debug:   8 0 command.c:383 command_run_line(): gdb_port                         3333
Debug:   9 0 command.c:383 command_run_line(): deamon_starup            attach
Info:    10 0 options.c:50 configuration_output_handler(): Command deamon_starup not found
Debug:   11 0 command.c:383 command_run_line(): interface ft2232
Debug:   12 0 command.c:383 command_run_line(): ft2232_device_desc      "Amontec JTAGkey A"
Debug:   13 0 command.c:383 command_run_line(): ft2232_layout           jtagkey
Debug:   14 0 command.c:383 command_run_line(): ft2232_latency          50
Debug:   15 0 command.c:383 command_run_line(): ft2232_vid_pid          0x0403 0xcff8
Debug:   16 0 command.c:383 command_run_line(): jtag_speed                      0
Debug:   17 0 jtag.c:1843 handle_jtag_speed_command(): handle jtag speed
Info:    18 0 options.c:50 configuration_output_handler(): jtag_speed: 0, 0
Debug:   19 0 command.c:383 command_run_line(): reset_config            trst_and_srst srst_pulls_trst
Debug:   20 0 command.c:383 command_run_line(): jtag_device             4 0x1   0xf     0xe
Debug:   21 0 command.c:383 command_run_line(): jtag_nsrst_delay        250
Debug:   22 0 command.c:383 command_run_line(): jtag_ntrst_delay        250
Debug:   23 0 command.c:383 command_run_line(): target                          arm920t         little          reset_halt
0               arm920t
Debug:   24 0 arm920t.c:741 arm920t_target_command(): chain_pos: 0, variant: arm920t
Debug:   25 0 command.c:383 command_run_line(): working_area            0 0x200000 0x100000 nobackup
Debug:   26 0 command.c:383 command_run_line(): run_and_halt_time       0 5000
Debug:   27 0 command.c:383 command_run_line(): daemon_startup          reset
Info:    28 0 options.c:50 configuration_output_handler(): Open On-Chip Debugger (2008-04-19 12:00) svn: 592
Debug:   29 0 command.c:383 command_run_line(): flash   bank    cfi      0x10000000 0x800000 2                  2
0
Debug:   30 0 command.c:383 command_run_line(): init
Debug:   31 0 openocd.c:102 handle_init_command(): target init complete
Debug:   32 0 ft2232.c:1330 ft2232_init_ftd2xx(): 'ft2232' interface using FTD2XX with 'jtagkey' layout (0403:cff8)
Debug:   33 47 ft2232.c:1419 ft2232_init_ftd2xx(): current latency timer: 50
Debug:   34 47 ft2232.c:1685 jtagkey_init(): 80 08 1b
Debug:   35 47 ft2232.c:1743 jtagkey_init(): 82 09 0f
Debug:   36 47 ft2232.c:252 ft2232_speed(): 86 00 00
Debug:   37 47 openocd.c:109 handle_init_command(): jtag interface init complete
Debug:   38 47 jtag.c:1526 jtag_init_inner(): Init JTAG chain
Debug:   39 47 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   40 47 jtag.c:1282 jtag_reset_callback(): -
Debug:   41 47 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   42 47 jtag.c:1282 jtag_reset_callback(): -
Info:    43 109 jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x05b0203f (Manufacturer: 0x01f, Part: 0x5b02, Version: 0x0)
Debug:   44 109 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   45 109 jtag.c:1282 jtag_reset_callback(): -
Debug:   46 156 openocd.c:116 handle_init_command(): jtag init complete
Debug:   47 203 openocd.c:119 handle_init_command(): jtag examine complete
Debug:   48 203 openocd.c:126 handle_init_command(): flash init complete
Debug:   49 203 openocd.c:130 handle_init_command(): NAND init complete
Debug:   50 203 openocd.c:134 handle_init_command(): pld init complete
Debug:   51 203 gdb_server.c:1975 gdb_init(): gdb service for target arm920t at port 3333
Debug:   52 203 command.c:383 command_run_line(): reset
Debug:   53 203 target.c:1813 handle_reset_command(): -
Debug:   54 203 ft2232.c:252 ft2232_speed(): 86 00 00
Debug:   55 203 jtag.c:1570 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / tms
Debug:   56 203 jtag.c:989 jtag_add_reset(): SRST line released
Debug:   57 203 jtag.c:1008 jtag_add_reset(): TRST line asserted
Debug:   58 203 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   59 203 jtag.c:1282 jtag_reset_callback(): -
Debug:   60 203 jtag.c:985 jtag_add_reset(): SRST line asserted
Debug:   61 203 jtag.c:1008 jtag_add_reset(): TRST line asserted
Debug:   62 203 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   63 203 jtag.c:1282 jtag_reset_callback(): -
Debug:   64 203 jtag.c:989 jtag_add_reset(): SRST line released
Debug:   65 203 ft2232.c:960 jtagkey_reset(): trst: 1, srst: 0, high_output: 0x08, high_direction: 0x0f
Debug:   66 453 ft2232.c:960 jtagkey_reset(): trst: 1, srst: 1, high_output: 0x00, high_direction: 0x0f
Debug:   67 453 ft2232.c:960 jtagkey_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f
Debug:   68 953 jtag.c:1526 jtag_init_inner(): Init JTAG chain
Debug:   69 953 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   70 953 jtag.c:1282 jtag_reset_callback(): -
Info:    71 1000 jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x05b0203f (Manufacturer: 0x01f, Part: 0x5b02, Version: 0x0)

Debug:   72 1000 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   73 1000 jtag.c:1282 jtag_reset_callback(): -
Info:    74 1047 options.c:50 configuration_output_handler(): nSRST pulls nTRST, falling back to "reset run_and_halt"
Debug:   75 1047 arm7_9_common.c:736 arm7_9_assert_reset(): target->state: unknown
Debug:   76 1047 jtag.c:985 jtag_add_reset(): SRST line asserted
Debug:   77 1047 jtag.c:1008 jtag_add_reset(): TRST line asserted
Debug:   78 1047 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   79 1047 jtag.c:1282 jtag_reset_callback(): -
Debug:   80 1047 ft2232.c:960 jtagkey_reset(): trst: 1, srst: 1, high_output: 0x00, high_direction: 0x0f
Debug:   81 1109 arm7_9_common.c:789 arm7_9_deassert_reset(): target->state: reset
Debug:   82 1109 jtag.c:989 jtag_add_reset(): SRST line released
Debug:   83 1109 ft2232.c:960 jtagkey_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f
Debug:   84 1609 target.c:393 target_process_reset(): Waiting for halted stated as approperiate
Debug:   85 1640 target.c:407 target_process_reset(): Polling target
Debug:   87 2203 target.c:407 target_process_reset(): Polling target
Debug:   89 2750 target.c:407 target_process_reset(): Polling target
Debug:   91 3297 target.c:407 target_process_reset(): Polling target
Debug:   93 3843 target.c:407 target_process_reset(): Polling target
Debug:   95 4390 target.c:407 target_process_reset(): Polling target
Debug:   97 4953 target.c:407 target_process_reset(): Polling target
Debug:   99 5500 target.c:407 target_process_reset(): Polling target
Debug:   101 6047 target.c:407 target_process_reset(): Polling target
Debug:   103 6593 arm7_9_common.c:926 arm7_9_halt(): target->state: running
Debug:   104 6593 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000002
Debug:   105 6593 target.c:407 target_process_reset(): Polling target
Debug:   107 7203 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   108 7203 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   109 7203 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   110 7203 arm7_9_common.c:1044 arm7_9_debug_entry(): target entered debug from ARM state
Debug:   111 7250 arm7_9_common.c:1076 arm7_9_debug_entry(): target entered debug state in Abort mode
Debug:   112 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r0: 0xfffffdff
Debug:   113 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r1: 0x7fbfffff
Debug:   114 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r2: 0xfdfdffef
Debug:   115 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r3: 0xffeff7ff
Debug:   116 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r4: 0xf7bffdff
Debug:   117 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r5: 0xfffffffe
Debug:   118 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r6: 0xfffffdff
Debug:   119 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r7: 0xffffffff
Debug:   120 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r8: 0xffffffff
Debug:   121 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r9: 0xffeffffb
Debug:   122 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r10: 0xffbfffff
Debug:   123 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r11: 0xff6fffff
Debug:   124 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r12: 0x7ffffbff
Debug:   125 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r13: 0xffff77ff
Debug:   126 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r14: 0x00000018
Debug:   127 7250 arm7_9_common.c:1105 arm7_9_debug_entry(): r15: 0x00000010
Debug:   128 7250 arm7_9_common.c:1111 arm7_9_debug_entry(): entered debug state at PC 0x10
Debug:   129 7343 arm920t.c:441 arm920t_post_debug_entry(): cp15_control_reg: 00000078
Debug:   130 8453 arm920t.c:463 arm920t_post_debug_entry(): D FSR: 0x000000da, D FAR: 0xfffffdff, I FSR: 0x000000b6, I FAR: 0x0000
0000
Debug:   131 8453 target.c:706 target_call_event_callbacks(): target event 0
Debug:   132 8453 target.c:407 target_process_reset(): Polling target
Debug:   133 8500 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   134 8547 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   135 8547 ft2232.c:252 ft2232_speed(): 86 00 00
Info:    136 8547 server.c:78 add_connection(): accepting 'telnet' connection from 0
Debug:   137 8656 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   138 8750 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   139 8843 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   140 8953 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   141 9047 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   142 9156 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   143 9297 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   144 9406 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   145 9500 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   146 9593 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   147 9703 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   148 9843 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   149 9953 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   150 10047 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   151 10156 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   152 10250 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   153 10406 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   154 10500 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   155 10593 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   156 10703 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   157 10797 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   158 10906 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   159 11047 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   160 11156 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   161 11250 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   162 11359 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   163 11453 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   164 11609 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   165 11703 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   166 11797 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   167 11906 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   168 12000 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   169 12109 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   170 12250 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   171 12359 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   172 12453 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   173 12547 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   174 12656 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   175 12797 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   176 12906 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   177 13000 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   178 13109 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   179 13203 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   180 13359 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   181 13453 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   182 13547 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   183 13656 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   184 13750 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   185 13859 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   186 14000 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   187 14109 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   188 14203 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   189 14297 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   190 14406 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   191 14547 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   192 14656 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   193 14750 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   194 14859 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   195 14953 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   196 15109 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   197 15203 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   198 15297 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   199 15406 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   200 15500 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   201 15609 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   202 15750 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   203 15859 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   204 15953 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   205 16047 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   206 16156 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   207 16297 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   208 16406 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   209 16500 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   210 16609 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   211 16703 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   212 16859 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   213 16953 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   214 17062 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   215 17156 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   216 17250 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   217 17359 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   218 17500 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   219 17609 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   220 17703 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   221 17812 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   222 17906 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   223 18062 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   224 18156 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   225 18250 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   226 18359 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   227 18453 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   228 18562 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   229 18703 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   230 18812 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   231 18906 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   232 19000 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   233 19109 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   234 19250 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   235 19359 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   236 19453 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   237 19562 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   238 19656 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   239 19812 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   240 19906 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   241 20000 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   242 20109 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   243 20203 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   244 20218 command.c:383 command_run_line(): script boot.script
Debug:   245 20218 configuration.c:87 open_file_from_path(): opened boot.script
Debug:   246 20218 command.c:383 command_run_line(): arm7_9 dcc_downloads enable
Debug:   247 20218 command.c:383 command_run_line(): reset run_and_halt
Debug:   248 20218 target.c:1813 handle_reset_command(): -
Debug:   249 20218 ft2232.c:252 ft2232_speed(): 86 00 00
Debug:   250 20218 jtag.c:1570 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / tms
Debug:   251 20218 jtag.c:989 jtag_add_reset(): SRST line released
Debug:   252 20218 jtag.c:1008 jtag_add_reset(): TRST line asserted
Debug:   253 20218 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   254 20218 jtag.c:1282 jtag_reset_callback(): -
Debug:   255 20218 jtag.c:985 jtag_add_reset(): SRST line asserted
Debug:   256 20218 jtag.c:1008 jtag_add_reset(): TRST line asserted
Debug:   257 20218 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   258 20218 jtag.c:1282 jtag_reset_callback(): -
Debug:   259 20218 jtag.c:989 jtag_add_reset(): SRST line released
Debug:   260 20218 ft2232.c:960 jtagkey_reset(): trst: 1, srst: 0, high_output: 0x08, high_direction: 0x0f
Debug:   261 20468 ft2232.c:960 jtagkey_reset(): trst: 1, srst: 1, high_output: 0x00, high_direction: 0x0f
Debug:   262 20468 ft2232.c:960 jtagkey_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f
Debug:   263 20968 jtag.c:1526 jtag_init_inner(): Init JTAG chain
Debug:   264 20968 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   265 20968 jtag.c:1282 jtag_reset_callback(): -
Info:    266 21015 jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x05b0203f (Manufacturer: 0x01f, Part: 0x5b02, Version: 0x
0)
Debug:   267 21015 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   268 21015 jtag.c:1282 jtag_reset_callback(): -
Debug:   269 21062 arm7_9_common.c:736 arm7_9_assert_reset(): target->state: halted
Debug:   270 21062 jtag.c:985 jtag_add_reset(): SRST line asserted
Debug:   271 21062 jtag.c:1008 jtag_add_reset(): TRST line asserted
Debug:   272 21062 jtag.c:319 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug:   273 21062 jtag.c:1282 jtag_reset_callback(): -
Debug:   274 21062 ft2232.c:960 jtagkey_reset(): trst: 1, srst: 1, high_output: 0x00, high_direction: 0x0f
Debug:   275 21125 arm7_9_common.c:789 arm7_9_deassert_reset(): target->state: reset
Debug:   276 21125 jtag.c:989 jtag_add_reset(): SRST line released
Debug:   277 21125 ft2232.c:960 jtagkey_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f
Debug:   278 21625 target.c:393 target_process_reset(): Waiting for halted stated as approperiate
Debug:   279 21656 target.c:407 target_process_reset(): Polling target
Debug:   281 22218 target.c:407 target_process_reset(): Polling target
Debug:   283 22765 target.c:407 target_process_reset(): Polling target
Debug:   285 23312 target.c:407 target_process_reset(): Polling target
Debug:   287 23859 target.c:407 target_process_reset(): Polling target
Debug:   289 24406 target.c:407 target_process_reset(): Polling target
Debug:   291 24968 target.c:407 target_process_reset(): Polling target
Debug:   293 25515 target.c:407 target_process_reset(): Polling target
Debug:   295 26062 target.c:407 target_process_reset(): Polling target
Debug:   297 26609 arm7_9_common.c:926 arm7_9_halt(): target->state: running
Debug:   298 26609 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000007
Debug:   299 26609 target.c:407 target_process_reset(): Polling target
Debug:   301 27172 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   302 27172 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   303 27172 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   304 27172 arm7_9_common.c:1044 arm7_9_debug_entry(): target entered debug from ARM state
Debug:   305 27218 arm7_9_common.c:1076 arm7_9_debug_entry(): target entered debug state in Abort mode
Debug:   306 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r0: 0x000030c4
Debug:   307 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r1: 0x00000000
Debug:   308 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r2: 0xfdfdffef
Debug:   309 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r3: 0xffeff7ff
Debug:   310 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r4: 0xf7bffdff
Debug:   311 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r5: 0xfffffffe
Debug:   312 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r6: 0xfffffdff
Debug:   313 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r7: 0xffffffff
Debug:   314 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r8: 0xffffffff
Debug:   315 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r9: 0xffeffffb
Debug:   316 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r10: 0xffbfffff
Debug:   317 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r11: 0xff6fffff
Debug:   318 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r12: 0x7ffffbff
Debug:   319 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r13: 0xffff77ff
Debug:   320 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r14: 0x00000008
Debug:   321 27218 arm7_9_common.c:1105 arm7_9_debug_entry(): r15: 0x00000000
Debug:   322 27218 arm7_9_common.c:1111 arm7_9_debug_entry(): entered debug state at PC 0x0
Debug:   323 27312 arm920t.c:441 arm920t_post_debug_entry(): cp15_control_reg: 00000078
Debug:   324 28468 arm920t.c:463 arm920t_post_debug_entry(): D FSR: 0x000000da, D FAR: 0xffeff85f, I FSR: 0x000000b6, I FAR: 0x000
00000
Debug:   325 28468 target.c:706 target_call_event_callbacks(): target event 0
User:    326 28468 target.c:936 target_arch_state(): target state: halted
User:    327 28468 arm920t.c:567 arm920t_arch_state(): target halted in ARM state due to debug request, current mode: Abort
cpsr: 0xf00000d7 pc: 0x00000000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
Debug:   328 28468 target.c:407 target_process_reset(): Polling target
Debug:   329 28515 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   330 28562 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   331 28562 ft2232.c:252 ft2232_speed(): 86 00 00
Debug:   332 28562 command.c:383 command_run_line(): sleep 5
Debug:   333 28578 command.c:383 command_run_line(): wait_halt 30
Debug:   334 28609 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
Debug:   335 28609 command.c:383 command_run_line(): sleep 5
Debug:   336 28625 command.c:383 command_run_line(): poll
Debug:   337 28672 arm7_9_common.c:688 arm7_9_poll(): DBGACK set, dbg_state->value: 0xd
User:    338 28672 target.c:936 target_arch_state(): target state: halted
User:    339 28672 arm920t.c:567 arm920t_arch_state(): target halted in ARM state due to debug request, current mode: Abort
cpsr: 0xf00000d7 pc: 0x00000000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
Debug:   340 28672 command.c:383 command_run_line(): sleep 2
Debug:   341 28687 command.c:383 command_run_line(): flash probe 0
Debug:   342 28687 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   343 28859 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   344 28922 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   345 29109 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   346 29172 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   347 29359 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   348 29422 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   349 29672 target.c:1157 target_read_u16(): address: 0x10000000, value: 0x001f
Debug:   350 29672 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000002, size: 0x00000002, count: 0x00000001
Debug:   351 29922 target.c:1157 target_read_u16(): address: 0x10000002, value: 0x02de
Debug:   352 29922 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   353 30109 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   354 30172 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   355 30359 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   356 30422 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   357 30609 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   358 30672 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000020, size: 0x00000002, count: 0x00000001
Debug:   359 30922 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000022, size: 0x00000002, count: 0x00000001
Debug:   360 31172 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000024, size: 0x00000002, count: 0x00000001
Debug:   361 31422 cfi.c:1933 cfi_probe(): CFI qry returned: 0x51 0x52 0x59
Debug:   362 31422 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000026, size: 0x00000002, count: 0x00000002
Debug:   363 31875 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000002a, size: 0x00000002, count: 0x00000002
Debug:   364 32312 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000002e, size: 0x00000002, count: 0x00000002
Debug:   365 32718 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000032, size: 0x00000002, count: 0x00000002
Debug:   366 33125 cfi.c:1950 cfi_probe(): qry: 'QRY', pri_id: 0x0003, pri_addr: 0x0041, alt_id: 0x0000, alt_addr: 0x0000
Debug:   367 33125 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000036, size: 0x00000002, count: 0x00000001
Debug:   368 33375 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000038, size: 0x00000002, count: 0x00000001
Debug:   369 33625 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000003a, size: 0x00000002, count: 0x00000001
Debug:   370 33875 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000003c, size: 0x00000002, count: 0x00000001
Debug:   371 34125 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000003e, size: 0x00000002, count: 0x00000001
Debug:   372 34375 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000040, size: 0x00000002, count: 0x00000001
Debug:   373 34625 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000042, size: 0x00000002, count: 0x00000001
Debug:   374 34875 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000044, size: 0x00000002, count: 0x00000001
Debug:   375 35125 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000046, size: 0x00000002, count: 0x00000001
Debug:   376 35375 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000048, size: 0x00000002, count: 0x00000001
Debug:   377 35625 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000004a, size: 0x00000002, count: 0x00000001
Debug:   378 35875 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000004c, size: 0x00000002, count: 0x00000001
Debug:   379 36125 cfi.c:1969 cfi_probe(): Vcc min: 2.7, Vcc max: 3.6, Vpp min: 9.0, Vpp max: a.0
Debug:   380 36125 cfi.c:1971 cfi_probe(): typ. word write timeout: 16, typ. buf write timeout: 4, typ. block erase timeout: 512,
typ. chip erase timeout: 1
Debug:   381 36125 cfi.c:1975 cfi_probe(): max. word write timeout: 256, max. buf write timeout: 64, max. block erase timeout: 409
6, max. chip erase timeout: 1
Debug:   382 36125 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000004e, size: 0x00000002, count: 0x00000001
Debug:   383 36375 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000050, size: 0x00000002, count: 0x00000002
Debug:   384 36812 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000054, size: 0x00000002, count: 0x00000002
Debug:   385 37218 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000058, size: 0x00000002, count: 0x00000001
Debug:   386 37422 cfi.c:1982 cfi_probe(): size: 0x800000, interface desc: 1, max buffer write size: 4
Debug:   387 37422 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000005a, size: 0x00000002, count: 0x00000004
Debug:   388 38265 cfi.c:1995 cfi_probe(): erase region[0]: 8 blocks of size 0x2000
Debug:   389 38265 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000062, size: 0x00000002, count: 0x00000004
Debug:   390 39078 cfi.c:1995 cfi_probe(): erase region[1]: 127 blocks of size 0x10000
Debug:   391 39078 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000082, size: 0x00000002, count: 0x00000001
Debug:   392 39328 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000084, size: 0x00000002, count: 0x00000001
Debug:   393 39578 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000086, size: 0x00000002, count: 0x00000001
Debug:   394 39828 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000088, size: 0x00000002, count: 0x00000001
Debug:   395 40078 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000008a, size: 0x00000002, count: 0x00000001
Debug:   396 40328 cfi.c:364 cfi_read_intel_pri_ext(): pri: 'PRI', version: 1.0
Debug:   397 40328 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000008c, size: 0x00000002, count: 0x00000004
Debug:   398 41125 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000094, size: 0x00000002, count: 0x00000001
Debug:   399 41375 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000096, size: 0x00000002, count: 0x00000002
Debug:   400 41828 cfi.c:370 cfi_read_intel_pri_ext(): feature_support: 0x186, suspend_cmd_support: 0x80, blk_status_reg_mask: 0x3
03
Debug:   401 41828 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000009a, size: 0x00000002, count: 0x00000001
Debug:   402 42078 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000009c, size: 0x00000002, count: 0x00000001
Debug:   403 42328 cfi.c:377 cfi_read_intel_pri_ext(): Vcc opt: f.f, Vpp opt: f.f
Debug:   404 42328 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x1000009e, size: 0x00000002, count: 0x00000001
Warning: 405 42578 cfi.c:382 cfi_read_intel_pri_ext(): expected one protection register field, but found 255
Debug:   406 42578 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x100000a0, size: 0x00000002, count: 0x00000002
Debug:   407 43015 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x100000a4, size: 0x00000002, count: 0x00000001
Debug:   408 43281 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x100000a6, size: 0x00000002, count: 0x00000001
Debug:   409 43531 cfi.c:389 cfi_read_intel_pri_ext(): protection_fields: 255, prot_reg_addr: 0xffff, factory pre-programmed: -214
7483648, user programmable: -2147483648
Debug:   410 43531 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   411 43718 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   412 43781 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   413 43968 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   414 44031 command.c:383 command_run_line(): sleep 2
Debug:   415 44047 command.c:383 command_run_line(): mwb 0x10000000 0x60 1
Debug:   416 44047 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   417 44218 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   418 44281 command.c:383 command_run_line(): mwb 0x10000000 0xD0 1
Debug:   419 44281 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   420 44468 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   421 44531 command.c:383 command_run_line(): sleep 1
Debug:   422 44547 command.c:383 command_run_line(): mwb 0x10002000 0x60 1
Debug:   423 44547 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   424 44718 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   425 44781 command.c:383 command_run_line(): mwb 0x10002000 0xD0 1
Debug:   426 44781 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   427 44968 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   428 45031 command.c:383 command_run_line(): sleep 1
Debug:   429 45047 command.c:383 command_run_line(): mwb 0x10004000 0x60 1
Debug:   430 45047 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   431 45218 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   432 45281 command.c:383 command_run_line(): mwb 0x10004000 0xD0 1
Debug:   433 45281 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   434 45468 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   435 45531 command.c:383 command_run_line(): sleep 1
Debug:   436 45547 command.c:383 command_run_line(): mwb 0x10006000 0x60 1
Debug:   437 45547 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   438 45718 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   439 45781 command.c:383 command_run_line(): mwb 0x10006000 0xD0 1
Debug:   440 45781 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   441 45968 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   442 46031 command.c:383 command_run_line(): sleep 1
Debug:   443 46047 command.c:383 command_run_line(): mwb 0x10008000 0x60 1
Debug:   444 46047 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   445 46218 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   446 46281 command.c:383 command_run_line(): mwb 0x10008000 0xD0 1
Debug:   447 46281 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   448 46468 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   449 46531 command.c:383 command_run_line(): sleep 1
Debug:   450 46547 command.c:383 command_run_line(): mwb 0x1000A000 0x60 1
Debug:   451 46547 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   452 46718 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   453 46781 command.c:383 command_run_line(): mwb 0x1000A000 0xD0 1
Debug:   454 46781 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   455 46968 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   456 47031 command.c:383 command_run_line(): sleep 1
Debug:   457 47047 command.c:383 command_run_line(): mwb 0x1000C000 0x60 1
Debug:   458 47047 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   459 47218 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   460 47281 command.c:383 command_run_line(): mwb 0x1000C000 0xD0 1
Debug:   461 47281 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   462 47468 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   463 47531 command.c:383 command_run_line(): sleep 1
Debug:   464 47547 command.c:383 command_run_line(): mwb 0x1000E000 0x60 1
Debug:   465 47547 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   466 47718 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   467 47781 command.c:383 command_run_line(): mwb 0x1000E000 0xD0 1
Debug:   468 47781 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   469 47968 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   470 48031 command.c:383 command_run_line(): sleep 1
Debug:   471 48047 command.c:383 command_run_line(): mwb 0x10010000 0x60 1
Debug:   472 48047 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   473 48218 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   474 48281 command.c:383 command_run_line(): mwb 0x10010000 0xD0 1
Debug:   475 48281 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   476 48468 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   477 48531 command.c:383 command_run_line(): sleep 1
Debug:   478 48547 command.c:383 command_run_line(): mwb 0x10020000 0x60 1
Debug:   479 48547 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   480 48718 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   481 48781 command.c:383 command_run_line(): mwb 0x10020000 0xD0 1
Debug:   482 48781 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   483 48968 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   484 49031 command.c:383 command_run_line(): sleep 1
Debug:   485 49047 command.c:383 command_run_line(): flash erase_sector 0 0 9
Debug:   486 49047 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   487 49234 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   488 49281 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   489 49484 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   490 49531 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   491 49734 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   492 49781 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   493 50031 cfi.c:276 cfi_intel_wait_status_busy(): status: 0x80
Debug:   494 50031 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   495 50234 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   496 50281 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   497 50484 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   498 50531 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   499 50781 cfi.c:276 cfi_intel_wait_status_busy(): status: 0x80
Debug:   500 50781 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   501 50984 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   502 51031 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   503 51234 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   504 51281 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   505 51531 cfi.c:276 cfi_intel_wait_status_busy(): status: 0x80
Debug:   506 51531 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   507 51734 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   508 51781 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   509 51984 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   510 52031 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   511 52281 cfi.c:276 cfi_intel_wait_status_busy(): status: 0x80
Debug:   512 52281 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   513 52484 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   514 52531 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   515 52734 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   516 52781 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   517 53031 cfi.c:276 cfi_intel_wait_status_busy(): status: 0x80
Debug:   518 53031 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   519 53234 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   520 53281 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   521 53484 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   522 53531 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   523 53781 cfi.c:276 cfi_intel_wait_status_busy(): status: 0x80
Debug:   524 53781 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   525 53984 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   526 54031 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   527 54234 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   528 54281 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   529 54531 cfi.c:276 cfi_intel_wait_status_busy(): status: 0x80
Debug:   530 54531 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   531 54734 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   532 54781 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   533 54984 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   534 55031 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   535 55281 cfi.c:276 cfi_intel_wait_status_busy(): status: 0x80
Debug:   536 55281 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   537 55484 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   538 55531 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   539 55734 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   540 55781 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   541 55984 cfi.c:269 cfi_intel_wait_status_busy(): status: 0x0
Debug:   542 56000 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   543 56234 cfi.c:269 cfi_intel_wait_status_busy(): status: 0x0
Debug:   544 56250 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   545 56484 cfi.c:276 cfi_intel_wait_status_busy(): status: 0x80
Debug:   546 56484 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   547 56687 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   548 56734 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   549 56937 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   550 56984 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   551 57234 cfi.c:269 cfi_intel_wait_status_busy(): status: 0x0
Debug:   552 57250 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   553 57484 cfi.c:269 cfi_intel_wait_status_busy(): status: 0x0
Debug:   554 57500 arm7_9_common.c:1772 arm7_9_read_memory(): address: 0x10000000, size: 0x00000002, count: 0x00000001
Debug:   555 57734 cfi.c:276 cfi_intel_wait_status_busy(): status: 0x80
Debug:   556 57734 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   557 57937 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   558 57984 command.c:383 command_run_line(): sleep 10
Debug:   559 58000 command.c:383 command_run_line(): flash write_image 0x10000000.bin 0x10000000 bin
Debug:   560 58000 configuration.c:87 open_file_from_path(): opened 0x10000000.bin
Debug:   561 58000 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   562 58187 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   563 58234 target.c:819 target_alloc_working_area(): allocating new working area
Debug:   564 58234 target.c:958 target_write_buffer(): writing buffer of 56 byte at 0x00200000
Debug:   565 58234 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   566 58437 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   567 58484 target.c:819 target_alloc_working_area(): allocating new working area
Info:    568 58484 cfi.c:1134 cfi_intel_write_block(): Using target buffer at 0x00200038 and of size 0x8000
Debug:   569 58484 target.c:958 target_write_buffer(): writing buffer of 1200 byte at 0x00200038
Debug:   570 58484 target.c:819 target_alloc_working_area(): allocating new working area
Debug:   571 58484 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000004
Debug:   572 58687 embeddedice.c:397 embeddedice_write_reg(): 0: 0x00000005
Debug:   573 58734 arm7_9_common.c:1422 arm7_9_resume(): -
Debug:   574 58734 arm7_9_common.c:1226 arm7_9_restore_context():

AHHHHHHH just lost the second half of my post :frowning:

This is my configuration file…

telnet_port 		4444
gdb_port 			3333
deamon_starup 		attach

interface ft2232
ft2232_device_desc 	"Amontec JTAGkey A"
ft2232_layout 		jtagkey
ft2232_latency 		50
ft2232_vid_pid 		0x0403 0xcff8
jtag_speed 			0
reset_config 		trst_and_srst srst_pulls_trst

# format 			L IRC 	IRCM 	IDCODE
jtag_device 		4 0x1 	0xf 	0xe

jtag_nsrst_delay 	250
jtag_ntrst_delay 	250

#target 			<type> 		<endianess> <reset mode>
target 				arm920t 	little 		reset_halt 		0 		arm920t

working_area 		0 0x200000 0x100000 nobackup
run_and_halt_time 	0 5000
daemon_startup 		reset

# FLASH bank 	<driver> <base>     <size>   <chip_width> 	<bus_width> [driver_options ...]
flash 	bank  	cfi 	 0x10000000 0x800000 2 				2 			0  	   # jedec_probe

I’m fairly new to this myself, but perhaps it’s a JTAG speed issue? I had problems with that when I first started with openOCD, and running too fast ended up playing havoc with my microcontroller, spewing all sorts of errors that masqueraded as a dozen problems that just turned out to be speed related “flakiness”

In fact, now that I actually look at your cfg file, you have your jtag speed set to 0, which is the maximum. Maybe give it a shot with a lower JTAG speed (= higher jtag_speed parameter) : jtag speed = 6MHz/(1+jtag_speed)

Hi all,

I have the same problem on Windows Vista. I’m using openOCD 204, ARM-USB-TINY. Here’s what I get:

Error: ft2232.c:1341 ft2232_init_ftd2xx(): unable to open ftdi device: 2

Error: ft2232.c:1356 ft2232_init_ftd2xx(): ListDevices: 2

Error: ft2232.c:1358 ft2232_init_ftd2xx(): 0: Olimex OpenOCD JTAG TINY B

Error: ft2232.c:1358 ft2232_init_ftd2xx(): 1: Xš:

This is the part of the config that matters:

#interface

interface ft2232

ft2232_device_desc “Olimex OpenOCD JTAG TINY A”

ft2232_layout “olimex-jtag”

ft2232_vid_pid 0x15BA 0x0004

jtag_speed 20

What is the solution?

Thanks,

Gil

Problem solved with this config:

telnet_port 4444

gdb_port 3333

interface ft2232

ft2232_device_desc “Olimex OpenOCD JTAG TINY A”

ft2232_layout “olimex-jtag”

ft2232_vid_pid 0x15BA 0x0004

jtag_speed 20

reset_config trst_and_srst separate

jtag_device 4 0x1 0xf 0xe

jtag_nsrst_delay 333

jtag_ntrst_delay 333

daemon_startup reset

target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4

run_and_halt_time 0 30

target_script 0 reset oocd_flash2294.script

working_area 0 0x40000000 0x4000 nobackup

flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v1 14746 calc_checksum

Thanks,

Gil