I just installed r1454 after using r717 for a long time.
I had it working on my target, but after an afternoon of work I started to get “Error erasing flash with vFlashErase packet” when trying to run the load comand. When I revert to r717 it works OK.
I have no problem erasing the flash via telnet with the flash erase_sectorflash erase_sector 0 0 26 command. And when I do, the the load command works again for a while. But eventually it will break again and I have to manualy erase the flash. Any hints as to why this would happen? Following is the debug log.
[ My target is actually an LPC2368 w/ 12MHz xtal, but the 2148 configuration has always worked in the past.]
User : 9 0 command.c:494 command_run_line():
Debug: 10 0 configuration.c:88 find_file(): found interface\olimex-arm-usb-ocd.cfg
Debug: 12 0 command.c:91 script_command(): script_command - interface
Debug: 13 0 command.c:108 script_command(): script_command - interface, argv[0]=ocd_interface
Debug: 14 0 command.c:108 script_command(): script_command - interface, argv[1]=ft2232
Debug: 16 0 command.c:91 script_command(): script_command - ft2232_device_desc
Debug: 17 0 command.c:108 script_command(): script_command - ft2232_device_desc, argv[0]=ocd_ft2232_device_desc
Debug: 18 0 command.c:108 script_command(): script_command - ft2232_device_desc, argv[1]=Olimex OpenOCD JTAG A
Debug: 20 0 command.c:91 script_command(): script_command - ft2232_layout
Debug: 21 0 command.c:108 script_command(): script_command - ft2232_layout, argv[0]=ocd_ft2232_layout
Debug: 22 0 command.c:108 script_command(): script_command - ft2232_layout, argv[1]=olimex-jtag
Debug: 24 0 command.c:91 script_command(): script_command - ft2232_vid_pid
Debug: 25 16 command.c:108 script_command(): script_command - ft2232_vid_pid, argv[0]=ocd_ft2232_vid_pid
Debug: 26 16 command.c:108 script_command(): script_command - ft2232_vid_pid, argv[1]=0x15ba
Debug: 27 16 command.c:108 script_command(): script_command - ft2232_vid_pid, argv[2]=0x0003
User : 28 16 command.c:494 command_run_line():
Debug: 30 16 command.c:91 script_command(): script_command - jtag_khz
Debug: 31 16 command.c:108 script_command(): script_command - jtag_khz, argv[0]=ocd_jtag_khz
Debug: 32 16 command.c:108 script_command(): script_command - jtag_khz, argv[1]=1500
Debug: 33 16 jtag.c:2606 handle_jtag_khz_command(): handle jtag khz
User : 34 16 command.c:383 command_print(): 1500 kHz
User : 35 16 command.c:494 command_run_line():
Debug: 36 16 configuration.c:88 find_file(): found target\lpc2148.cfg
Debug: 38 16 command.c:91 script_command(): script_command - jtag_nsrst_delay
Debug: 39 16 command.c:108 script_command(): script_command - jtag_nsrst_delay, argv[0]=ocd_jtag_nsrst_delay
Debug: 40 16 command.c:108 script_command(): script_command - jtag_nsrst_delay, argv[1]=200
Debug: 42 16 command.c:91 script_command(): script_command - jtag_ntrst_delay
Debug: 43 16 command.c:108 script_command(): script_command - jtag_ntrst_delay, argv[0]=ocd_jtag_ntrst_delay
Debug: 44 16 command.c:108 script_command(): script_command - jtag_ntrst_delay, argv[1]=200
Debug: 46 16 command.c:91 script_command(): script_command - reset_config
Debug: 47 16 command.c:108 script_command(): script_command - reset_config, argv[0]=ocd_reset_config
Debug: 48 16 command.c:108 script_command(): script_command - reset_config, argv[1]=trst_and_srst
Debug: 49 16 command.c:108 script_command(): script_command - reset_config, argv[2]=srst_pulls_trst
Debug: 50 16 jtag.c:1853 jim_newtap_cmd(): Creating New Tap, Chip: lpc2148, Tap: cpu, Dotted: lpc2148.cpu, 8 params
Debug: 51 16 jtag.c:1872 jim_newtap_cmd(): Processing option: -irlen
Debug: 52 16 jtag.c:1872 jim_newtap_cmd(): Processing option: -ircapture
Debug: 53 16 jtag.c:1872 jim_newtap_cmd(): Processing option: -irmask
Debug: 54 16 jtag.c:1872 jim_newtap_cmd(): Processing option: -expected-id
Debug: 55 16 jtag.c:1985 jim_newtap_cmd(): Created Tap: lpc2148.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 56 16 target.c:3961 jim_target(): Target command params:
Debug: 57 16 target.c:3962 jim_target(): target create lpc2148.cpu arm7tdmi -endian little -chain-position lpc2148.cpu -variant arm7tdmi-s_r4
Debug: 59 16 command.c:91 script_command(): script_command - bank
Debug: 60 16 command.c:108 script_command(): script_command - bank, argv[0]=ocd_flash_bank
Debug: 61 16 command.c:108 script_command(): script_command - bank, argv[1]=lpc2000
Debug: 62 16 command.c:108 script_command(): script_command - bank, argv[2]=0x0
Debug: 63 16 command.c:108 script_command(): script_command - bank, argv[3]=0x7d000
Debug: 64 16 command.c:108 script_command(): script_command - bank, argv[4]=0
Debug: 65 16 command.c:108 script_command(): script_command - bank, argv[5]=0
Debug: 66 16 command.c:108 script_command(): script_command - bank, argv[6]=0
Debug: 67 16 command.c:108 script_command(): script_command - bank, argv[7]=lpc2000_v2
Debug: 68 16 command.c:108 script_command(): script_command - bank, argv[8]=12000
User : 69 16 command.c:494 command_run_line():
Debug: 71 16 command.c:91 script_command(): script_command - init
Debug: 72 16 command.c:108 script_command(): script_command - init, argv[0]=ocd_init
Debug: 73 16 openocd.c:126 handle_init_command(): target init complete
Debug: 74 16 ft2232.c:1540 ft2232_init_ftd2xx(): 'ft2232' interface using FTD2XX with 'olimex-jtag' layout (15ba:0003)
Debug: 75 47 ft2232.c:1651 ft2232_init_ftd2xx(): current latency timer: 2
Debug: 76 47 ft2232.c:2079 olimex_jtag_init(): 80 08 1b
Debug: 77 47 ft2232.c:2122 olimex_jtag_init(): 82 09 0f
Debug: 78 47 ft2232.c:294 ft2232_speed(): 86 03 00
Debug: 79 63 openocd.c:133 handle_init_command(): jtag interface init complete
Debug: 80 63 jtag.c:2201 jtag_init_inner(): Init JTAG chain
Debug: 81 63 jtag.c:390 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 82 63 jtag.c:1450 jtag_reset_callback(): -
Debug: 83 63 jtag.c:390 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 84 63 jtag.c:1450 jtag_reset_callback(): -
Info : 85 78 jtag.c:1570 jtag_examine_chain(): JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Info : 86 78 jtag.c:1608 jtag_examine_chain(): JTAG Tap/device matched
Debug: 87 78 jtag.c:390 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 88 78 jtag.c:1450 jtag_reset_callback(): -
Debug: 89 78 openocd.c:139 handle_init_command(): jtag init complete
Warn : 90 78 embeddedice.c:191 embeddedice_build_reg_cache(): EmbeddedICE version 7 detected, EmbeddedICE handling might be broken
Debug: 91 78 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000004
Debug: 92 78 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000
Debug: 93 78 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000
Debug: 94 78 openocd.c:142 handle_init_command(): jtag examine complete
Debug: 95 78 openocd.c:148 handle_init_command(): flash init complete
Debug: 96 78 openocd.c:152 handle_init_command(): mflash init complete
Debug: 97 78 openocd.c:156 handle_init_command(): NAND init complete
Debug: 98 78 openocd.c:160 handle_init_command(): pld init complete
Warn : 99 78 telnet_server.c:612 telnet_init(): no telnet port specified, using default port 4444
Warn : 100 78 gdb_server.c:2201 gdb_init(): no gdb port specified, using default port 3333
Debug: 101 78 gdb_server.c:2225 gdb_init(): gdb service for target arm7tdmi at port 3333
Warn : 102 78 tcl_server.c:178 tcl_init(): no tcl port specified, using default port 6666
User : 103 78 command.c:494 command_run_line():
Info : 104 7813 server.c:89 add_connection(): accepting 'gdb' connection from 0
Debug: 105 7813 arm7_9_common.c:1054 arm7_9_halt(): target->state: running
Debug: 106 7813 embeddedice.c:401 embeddedice_write_reg(): 9: 0xffffffff
Debug: 107 7813 embeddedice.c:401 embeddedice_write_reg(): 11: 0xffffffff
Debug: 108 7813 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000100
Debug: 109 7813 embeddedice.c:401 embeddedice_write_reg(): 13: 0x000000f7
Debug: 110 7813 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 111 7813 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000
Debug: 112 7813 arm7_9_common.c:1153 arm7_9_debug_entry(): target entered debug from ARM state
Debug: 113 7813 arm7_9_common.c:1185 arm7_9_debug_entry(): target entered debug state in Abort mode
Debug: 114 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r0: 0x00000000
Debug: 115 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r1: 0xe0064c00
Debug: 116 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r2: 0xe0064c08
Debug: 117 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r3: 0x00e05b64
Debug: 118 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r4: 0xffffffff
Debug: 119 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r5: 0xffffffff
Debug: 120 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r6: 0xffffffff
Debug: 121 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r7: 0xffffffff
Debug: 122 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r8: 0xffffffff
Debug: 123 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r9: 0xffffffff
Debug: 124 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r10: 0xffffffff
Debug: 125 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r11: 0x40007ef8
Debug: 126 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r12: 0x40007efc
Debug: 127 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r13: 0x40007eec
Debug: 128 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r14: 0x00005b44
Debug: 129 7813 arm7_9_common.c:1216 arm7_9_debug_entry(): r15: 0x00002500
Debug: 130 7813 arm7_9_common.c:1222 arm7_9_debug_entry(): entered debug state at PC 0x2500
Debug: 131 7813 target.c:697 target_call_event_callbacks(): target event 4 (early-halted)
Debug: 132 7813 target.c:3095 target_handle_event(): event: 4 early-halted - no action
Debug: 133 7813 target.c:3095 target_handle_event(): event: 4 early-halted - no action
Debug: 134 7813 target.c:697 target_call_event_callbacks(): target event 5 (halted)
Debug: 135 7813 target.c:3095 target_handle_event(): event: 5 halted - no action
User : 136 7813 target.c:949 target_arch_state(): target state: halted
User : 137 7813 armv4_5.c:316 armv4_5_arch_state(): target halted in ARM state due to debug-request, current mode: Abort
cpsr: 0x600000d7 pc: 0x00002500
Debug: 138 7813 target.c:3095 target_handle_event(): event: 5 halted - no action
Debug: 139 7813 target.c:697 target_call_event_callbacks(): target event 10 (gdb-end)
Debug: 140 7813 target.c:3095 target_handle_event(): event: 10 gdb-end - no action
Debug: 141 7813 target.c:3095 target_handle_event(): event: 10 gdb-end - no action
Debug: 142 7829 target.c:697 target_call_event_callbacks(): target event 26 (gdb-attach)
Debug: 143 7829 target.c:3095 target_handle_event(): event: 26 gdb-attach - no action
Debug: 144 7829 target.c:3095 target_handle_event(): event: 26 gdb-attach - no action
Debug: 145 7829 gdb_server.c:2050 gdb_input_inner(): received packet: 'qSupported'
Warn : 146 7829 gdb_server.c:586 gdb_get_packet_inner(): acknowledgment received, but no packet pending
Debug: 147 7829 gdb_server.c:2050 gdb_input_inner(): received packet: '?'
Debug: 148 7829 gdb_server.c:2050 gdb_input_inner(): received packet: 'Hc-1'
Debug: 149 7829 gdb_server.c:2050 gdb_input_inner(): received packet: 'qC'
Debug: 150 7829 gdb_server.c:2050 gdb_input_inner(): received packet: 'qOffsets'
Debug: 151 7829 gdb_server.c:2050 gdb_input_inner(): received packet: 'Hg0'
Debug: 152 7829 gdb_server.c:2050 gdb_input_inner(): received packet: 'g'
Debug: 153 7860 gdb_server.c:2050 gdb_input_inner(): received packet: 'qXfer:memory-map:read::0,fff'
Debug: 154 7860 gdb_server.c:2050 gdb_input_inner(): received packet: 'm2500,4'
Debug: 155 7860 gdb_server.c:1190 gdb_read_memory_packet(): addr: 0x00002500, len: 0x00000004
Debug: 156 7860 target.c:1040 target_read_buffer(): reading buffer of 4 byte at 0x00002500
Debug: 157 7860 arm7_9_common.c:1966 arm7_9_read_memory(): address: 0x00002500, size: 0x00000004, count: 0x00000001
Debug: 158 7860 gdb_server.c:2050 gdb_input_inner(): received packet: 'qSymbol::'
Debug: 159 7907 gdb_server.c:2050 gdb_input_inner(): received packet: 'qRcmd,726573657420696e6974'
Debug: 161 7907 command.c:91 script_command(): script_command - reset
Debug: 162 7907 command.c:108 script_command(): script_command - reset, argv[0]=ocd_reset
Debug: 163 7907 command.c:108 script_command(): script_command - reset, argv[1]=init
Debug: 164 7907 target.c:3961 jim_target(): Target command params:
Debug: 165 7907 target.c:3962 jim_target(): target names
Debug: 166 7907 target.c:3095 target_handle_event(): event: 11 reset-start - no action
Debug: 167 7907 jtag.c:2234 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / RESET
Debug: 168 7907 jtag.c:1142 jtag_add_reset(): SRST line released
Debug: 169 7907 jtag.c:1161 jtag_add_reset(): TRST line asserted
Debug: 170 7907 jtag.c:390 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 171 7907 jtag.c:1450 jtag_reset_callback(): -
Debug: 172 7907 jtag.c:1138 jtag_add_reset(): SRST line asserted
Debug: 173 7907 jtag.c:1161 jtag_add_reset(): TRST line asserted
Debug: 174 7907 jtag.c:390 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 175 7907 jtag.c:1450 jtag_reset_callback(): -
Debug: 176 7907 jtag.c:1142 jtag_add_reset(): SRST line released
Debug: 177 7907 ft2232.c:1115 olimex_jtag_reset(): trst: 1, srst: 0, high_output: 0x08, high_direction: 0x0f
Debug: 178 8220 ft2232.c:1115 olimex_jtag_reset(): trst: 1, srst: 1, high_output: 0x0a, high_direction: 0x0f
Debug: 179 8220 ft2232.c:1115 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f
Debug: 181 8845 jtag.c:2201 jtag_init_inner(): Init JTAG chain
Debug: 182 8845 jtag.c:390 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 183 8845 jtag.c:1450 jtag_reset_callback(): -
Info : 184 8845 jtag.c:1570 jtag_examine_chain(): JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Info : 185 8845 jtag.c:1608 jtag_examine_chain(): JTAG Tap/device matched
Debug: 186 8845 jtag.c:390 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 187 8845 jtag.c:1450 jtag_reset_callback(): -
Debug: 188 8845 target.c:3961 jim_target(): Target command params:
Debug: 189 8845 target.c:3962 jim_target(): target names
Debug: 190 8845 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000000
Debug: 191 8845 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000
Debug: 192 8845 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000
Debug: 193 8845 target.c:3961 jim_target(): Target command params:
Debug: 194 8845 target.c:3962 jim_target(): target names
Debug: 195 8845 target.c:3095 target_handle_event(): event: 12 reset-assert-pre - no action
Debug: 196 8845 arm7_9_common.c:810 arm7_9_assert_reset(): target->state: halted
Debug: 197 8845 embeddedice.c:401 embeddedice_write_reg(): 8: 0x00000000
Debug: 198 8845 embeddedice.c:401 embeddedice_write_reg(): 9: 0x00000003
Debug: 199 8845 embeddedice.c:401 embeddedice_write_reg(): 11: 0xffffffff
Debug: 200 8845 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000100
Debug: 201 8845 embeddedice.c:401 embeddedice_write_reg(): 13: 0x000000f7
Debug: 202 8845 jtag.c:1138 jtag_add_reset(): SRST line asserted
Debug: 203 8845 jtag.c:1161 jtag_add_reset(): TRST line asserted
Debug: 204 8845 jtag.c:390 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST)
Debug: 205 8845 jtag.c:1450 jtag_reset_callback(): -
Debug: 206 8845 target.c:3095 target_handle_event(): event: 13 reset-assert-post - no action
Debug: 207 8845 target.c:3961 jim_target(): Target command params:
Debug: 208 8845 target.c:3962 jim_target(): target names
Debug: 209 8845 target.c:3095 target_handle_event(): event: 14 reset-deassert-pre - no action
Debug: 210 8845 arm7_9_common.c:870 arm7_9_deassert_reset(): target->state: reset
Debug: 211 8845 jtag.c:1142 jtag_add_reset(): SRST line released
Warn : 212 8845 arm7_9_common.c:877 arm7_9_deassert_reset(): srst pulls trst - can not reset into halted mode. Issuing halt after reset.
Debug: 213 8845 ft2232.c:1115 olimex_jtag_reset(): trst: 1, srst: 1, high_output: 0x0a, high_direction: 0x0f
Debug: 214 8923 ft2232.c:1115 olimex_jtag_reset(): trst: 0, srst: 0, high_output: 0x09, high_direction: 0x0f
Debug: 216 9548 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000000
Debug: 217 9548 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000
Debug: 218 9548 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000
Debug: 219 9548 arm7_9_common.c:1054 arm7_9_halt(): target->state: running
Debug: 220 9548 embeddedice.c:401 embeddedice_write_reg(): 9: 0xffffffff
Debug: 221 9548 embeddedice.c:401 embeddedice_write_reg(): 11: 0xffffffff
Debug: 222 9548 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000100
Debug: 223 9548 embeddedice.c:401 embeddedice_write_reg(): 13: 0x000000f7
Debug: 224 9548 target.c:3095 target_handle_event(): event: 15 reset-deassert-post - no action
Debug: 225 9548 target.c:3961 jim_target(): Target command params:
Debug: 226 9548 target.c:3962 jim_target(): target names
Debug: 227 9548 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 228 9548 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000
Debug: 229 9548 arm7_9_common.c:1153 arm7_9_debug_entry(): target entered debug from ARM state
Debug: 230 9548 arm7_9_common.c:1185 arm7_9_debug_entry(): target entered debug state in System mode
Debug: 231 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r0: 0x00000001
Debug: 232 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r1: 0x00003000
Debug: 233 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r2: 0x000114e7
Debug: 234 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r3: 0x000fffff
Debug: 235 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r4: 0x4000588c
Debug: 236 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r5: 0x05050505
Debug: 237 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r6: 0x06060606
Debug: 238 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r7: 0x07070707
Debug: 239 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r8: 0x08080808
Debug: 240 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r9: 0x09090909
Debug: 241 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r10: 0x10101010
Debug: 242 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r11: 0x40005830
Debug: 243 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r12: 0x40005810
Debug: 244 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r13: 0x40005810
Debug: 245 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r14: 0x00006038
Debug: 246 9548 arm7_9_common.c:1216 arm7_9_debug_entry(): r15: 0x00006034
Debug: 247 9548 arm7_9_common.c:1222 arm7_9_debug_entry(): entered debug state at PC 0x6034
Debug: 248 9548 target.c:697 target_call_event_callbacks(): target event 4 (early-halted)
Debug: 249 9548 target.c:3095 target_handle_event(): event: 4 early-halted - no action
Debug: 250 9548 target.c:3095 target_handle_event(): event: 4 early-halted - no action
Debug: 251 9548 target.c:697 target_call_event_callbacks(): target event 5 (halted)
Debug: 252 9548 target.c:3095 target_handle_event(): event: 5 halted - no action
User : 253 9548 target.c:949 target_arch_state(): target state: halted
User : 254 9548 armv4_5.c:316 armv4_5_arch_state(): target halted in ARM state due to debug-request, current mode: System
cpsr: 0x8000001f pc: 0x00006034
Debug: 255 9548 target.c:3095 target_handle_event(): event: 5 halted - no action
Debug: 256 9548 target.c:697 target_call_event_callbacks(): target event 10 (gdb-end)
Debug: 257 9548 target.c:3095 target_handle_event(): event: 10 gdb-end - no action
Debug: 258 9548 target.c:3095 target_handle_event(): event: 10 gdb-end - no action
Debug: 259 9548 target.c:3961 jim_target(): Target command params:
Debug: 260 9548 target.c:3962 jim_target(): target names
Debug: 261 9548 target.c:3084 target_handle_event(): target: (0) lpc2148.cpu (arm7tdmi) event: 20 (reset-init) action:
# Force target into ARM state.
soft_reset_halt
# Do not remap 0x0000-0x0020 to anything but the flash (i.e. select
# "User Flash Mode" where interrupt vectors are _not_ remapped,
# and reside in flash instead).
#
# See section 7.1 on page 32 ("Memory Mapping control register") in
# "UM10139: Volume 1: LPC214x User Manual", Rev. 02 -- 25 July 2006.
# http://www.standardics.nxp.com/support/documents/microcontrollers/pdf/user.manual.lpc2141.lpc2142.lpc2144.lpc2146.lpc2148.pdf
mwb 0xE01FC040 0x01
Debug: 263 9548 command.c:91 script_command(): script_command - soft_reset_halt
Debug: 264 9548 command.c:108 script_command(): script_command - soft_reset_halt, argv[0]=ocd_soft_reset_halt
User : 265 9548 target.c:1783 handle_soft_reset_halt_command(): requesting target halt and executing a soft reset
Debug: 266 9548 arm7_9_common.c:1054 arm7_9_halt(): target->state: halted
Debug: 267 9548 arm7_9_common.c:1058 arm7_9_halt(): target was already halted
Debug: 268 9548 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 269 9548 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000
Debug: 270 9548 target.c:697 target_call_event_callbacks(): target event 4 (early-halted)
Debug: 271 9548 target.c:3095 target_handle_event(): event: 4 early-halted - no action
Debug: 272 9548 target.c:3095 target_handle_event(): event: 4 early-halted - no action
Debug: 273 9548 target.c:697 target_call_event_callbacks(): target event 5 (halted)
Debug: 274 9548 target.c:3095 target_handle_event(): event: 5 halted - no action
User : 275 9548 target.c:949 target_arch_state(): target state: halted
User : 276 9548 armv4_5.c:316 armv4_5_arch_state(): target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x800000d3 pc: 0x00000000
Debug: 277 9548 target.c:3095 target_handle_event(): event: 5 halted - no action
Debug: 278 9548 target.c:697 target_call_event_callbacks(): target event 10 (gdb-end)
Debug: 279 9548 target.c:3095 target_handle_event(): event: 10 gdb-end - no action
Debug: 280 9548 target.c:3095 target_handle_event(): event: 10 gdb-end - no action
Debug: 282 9563 command.c:91 script_command(): script_command - mwb
Debug: 283 9563 command.c:108 script_command(): script_command - mwb, argv[0]=ocd_mwb
Debug: 284 9563 command.c:108 script_command(): script_command - mwb, argv[1]=0xE01FC040
Debug: 285 9563 command.c:108 script_command(): script_command - mwb, argv[2]=0x01
Debug: 286 9563 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000004
Debug: 287 9563 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 288 9563 target.c:3961 jim_target(): Target command params:
Debug: 289 9563 target.c:3962 jim_target(): target names
Debug: 290 9563 target.c:3095 target_handle_event(): event: 21 reset-end - no action
User : 291 9563 command.c:494 command_run_line():
Debug: 292 9657 gdb_server.c:2050 gdb_input_inner(): received packet: 'qRcmd,736c65657020353030'
Debug: 294 9657 command.c:91 script_command(): script_command - sleep
Debug: 295 9657 command.c:108 script_command(): script_command - sleep, argv[0]=ocd_sleep
Debug: 296 9657 command.c:108 script_command(): script_command - sleep, argv[1]=500
User : 297 10157 command.c:494 command_run_line():
Debug: 298 10204 gdb_server.c:2050 gdb_input_inner(): received packet: 'qRcmd,6d7777203078453031464330343020307830303031'
Debug: 300 10204 command.c:91 script_command(): script_command - mww
Debug: 301 10204 command.c:108 script_command(): script_command - mww, argv[0]=ocd_mww
Debug: 302 10204 command.c:108 script_command(): script_command - mww, argv[1]=0xE01FC040
Debug: 303 10204 command.c:108 script_command(): script_command - mww, argv[2]=0x0001
Debug: 304 10204 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000004
Debug: 305 10204 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
User : 306 10204 command.c:494 command_run_line():
Debug: 307 10313 gdb_server.c:2050 gdb_input_inner(): received packet: 'qRcmd,6d64772030784530314643303430'
Debug: 309 10313 command.c:91 script_command(): script_command - mdw
Debug: 310 10313 command.c:108 script_command(): script_command - mdw, argv[0]=ocd_mdw
Debug: 311 10313 command.c:108 script_command(): script_command - mdw, argv[1]=0xE01FC040
Debug: 312 10313 arm7_9_common.c:1966 arm7_9_read_memory(): address: 0xe01fc040, size: 0x00000004, count: 0x00000001
User : 313 10313 command.c:383 command_print(): 0xe01fc040: 00000001
User : 314 10313 command.c:494 command_run_line():
Debug: 315 10423 gdb_server.c:2050 gdb_input_inner(): received packet: 'qRcmd,61726d375f39206463635f646f776e6c6f61647320656e61626c65'
Debug: 317 10423 command.c:91 script_command(): script_command - dcc_downloads
Debug: 318 10423 command.c:108 script_command(): script_command - dcc_downloads, argv[0]=ocd_arm7_9_dcc_downloads
Debug: 319 10423 command.c:108 script_command(): script_command - dcc_downloads, argv[1]=enable
User : 320 10423 command.c:383 command_print(): dcc downloads are enabled
User : 321 10423 command.c:494 command_run_line():
Debug: 322 10642 gdb_server.c:2050 gdb_input_inner(): received packet: 'vFlashErase:00000000,00051000'
Debug: 323 10642 target.c:697 target_call_event_callbacks(): target event 28 (gdb-flash-erase-start)
Debug: 324 10642 target.c:3095 target_handle_event(): event: 28 gdb-flash-erase-start - no action
Debug: 325 10642 target.c:3095 target_handle_event(): event: 28 gdb-flash-erase-start - no action
Debug: 326 10642 target.c:3095 target_handle_event(): event: 0 old-gdb_program_config - no action
Debug: 327 10642 target.c:820 target_alloc_working_area(): allocating new working area
Debug: 328 10642 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000004
Debug: 329 10642 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 330 10642 armv4_5.c:540 armv4_5_run_algorithm_inner(): Running algorithm
Debug: 331 10642 target.c:965 target_write_buffer(): writing buffer of 24 byte at 0x40000008
Debug: 332 10642 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000004
Debug: 333 10642 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 334 10642 target.c:965 target_write_buffer(): writing buffer of 12 byte at 0x40000020
Debug: 335 10642 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000004
Debug: 336 10642 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005
Debug: 337 10642 armv4_5.c:607 armv4_5_run_algorithm_inner(): setting core_mode: 0x13
Debug: 338 10642 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000
Debug: 339 10642 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000
Debug: 340 10657 embeddedice.c:401 embeddedice_write_reg(): 8: 0x40000004
Debug: 341 10657 embeddedice.c:401 embeddedice_write_reg(): 9: 0x00000003
Debug: 342 10657 embeddedice.c:401 embeddedice_write_reg(): 11: 0xffffffff
Debug: 343 10657 embeddedice.c:401 embeddedice_write_reg(): 13: 0x000000f7
Debug: 344 10657 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000100
Debug: 345 10657 breakpoints.c:93 breakpoint_add(): added hardware breakpoint at 0x40000004 of length 0x00000004
Debug: 346 10657 arm7_9_common.c:1527 arm7_9_resume(): -
Debug: 347 10657 embeddedice.c:401 embeddedice_write_reg(): 8: 0x40000004
Debug: 348 10657 embeddedice.c:401 embeddedice_write_reg(): 9: 0x00000003
Debug: 349 10657 embeddedice.c:401 embeddedice_write_reg(): 11: 0xffffffff
Debug: 350 10657 embeddedice.c:401 embeddedice_write_reg(): 13: 0x000000f7
Debug: 351 10657 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000100
Debug: 352 10657 arm7_9_common.c:1346 arm7_9_restore_context(): -
Debug: 353 10657 arm7_9_common.c:1365 arm7_9_restore_context(): examining User mode
Debug: 354 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r0
Debug: 355 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r1
Debug: 356 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r2
Debug: 357 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r3
Debug: 358 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r4
Debug: 359 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r5
Debug: 360 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r6
Debug: 361 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r7
Debug: 362 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r8
Debug: 363 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r9
Debug: 364 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r10
Debug: 365 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r11
Debug: 366 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r12
Debug: 367 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: pc
Debug: 368 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: cpsr
Debug: 369 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 0 of mode User with value 0x40000008
Debug: 370 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 1 of mode User with value 0x40000020
Debug: 371 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 2 of mode User with value 0xffffffff
Debug: 372 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 3 of mode User with value 0xffffffff
Debug: 373 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 4 of mode User with value 0xffffffff
Debug: 374 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 5 of mode User with value 0xffffffff
Debug: 375 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 6 of mode User with value 0xffffffff
Debug: 376 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 7 of mode User with value 0xffffffff
Debug: 377 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 8 of mode User with value 0xffffffff
Debug: 378 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 9 of mode User with value 0xffffffff
Debug: 379 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 10 of mode User with value 0xffffffff
Debug: 380 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 11 of mode User with value 0xffffffff
Debug: 381 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 12 of mode User with value 0x7ffffff1
Debug: 382 10657 arm7_9_common.c:1365 arm7_9_restore_context(): examining FIQ mode
Debug: 383 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: pc
Debug: 384 10657 arm7_9_common.c:1365 arm7_9_restore_context(): examining IRQ mode
Debug: 385 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: pc
Debug: 386 10657 arm7_9_common.c:1365 arm7_9_restore_context(): examining Supervisor mode
Debug: 387 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: r13_svc
Debug: 388 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: lr_svc
Debug: 389 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: pc
Debug: 390 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 13 of mode Supervisor with value 0x400000ac
Debug: 391 10657 arm7_9_common.c:1427 arm7_9_restore_context(): writing register 14 of mode Supervisor with value 0x40000004
Debug: 392 10657 arm7_9_common.c:1365 arm7_9_restore_context(): examining Abort mode
Debug: 393 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: pc
Debug: 394 10657 arm7_9_common.c:1365 arm7_9_restore_context(): examining Undefined mode
Debug: 395 10657 arm7_9_common.c:1379 arm7_9_restore_context(): examining dirty reg: pc
Debug: 396 10657 arm7_9_common.c:1460 arm7_9_restore_context(): writing cpsr with value 0x800000d3
Debug: 397 10657 arm7tdmi.c:465 arm7tdmi_write_xpsr(): xpsr: 800000d3, spsr: 0
Debug: 398 10657 arm7_9_common.c:1467 arm7_9_restore_context(): writing PC with value 0x40000000
Debug: 399 10657 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000004
Debug: 400 10657 target.c:697 target_call_event_callbacks(): target event 23 (debug-resumed)
Debug: 401 10657 target.c:3095 target_handle_event(): event: 23 debug-resumed - no action
Debug: 402 10657 target.c:3095 target_handle_event(): event: 23 debug-resumed - no action
Debug: 403 10657 arm7_9_common.c:1674 arm7_9_resume(): target resumed
Debug: 404 10657 target.c:1735 target_wait_state(): waiting for target halted...
Error: 424 20658 target.c:1746 target_wait_state(): timed out while waiting for target halted
Debug: 425 20658 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000
Debug: 426 20658 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000
Debug: 427 20658 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000
Warn : 428 20658 lpc2000.c:445 lpc2000_erase(): lpc2000 prepare sectors returned 11136720
Error: 429 20658 flash.c:126 flash_driver_erase(): failed erasing sectors 0 to 17 (-902)
Debug: 430 20658 target.c:697 target_call_event_callbacks(): target event 29 (gdb-flash-erase-end)
Debug: 431 20658 target.c:3095 target_handle_event(): event: 29 gdb-flash-erase-end - no action
Debug: 432 20658 target.c:3095 target_handle_event(): event: 29 gdb-flash-erase-end - no action
Error: 433 20658 gdb_server.c:1885 gdb_v_packet(): flash_erase returned -902
Debug: 434 20736 gdb_server.c:2050 gdb_input_inner(): received packet: 'qfThreadInfo'
Debug: 435 20736 gdb_server.c:2050 gdb_input_inner(): received packet: 'qL1200000000000000000'
Debug: 436 20736 gdb_server.c:2050 gdb_input_inner(): received packet: 'qC'
Debug: 437 20861 gdb_server.c:2050 gdb_input_inner(): received packet: 'm40007ef4,4'
Debug: 438 20861 gdb_server.c:1190 gdb_read_memory_packet(): addr: 0x40007ef4, len: 0x00000004
Debug: 439 20861 target.c:1040 target_read_buffer(): reading buffer of 4 byte at 0x40007ef4
Debug: 440 20861 arm7_9_common.c:1966 arm7_9_read_memory(): address: 0x40007ef4, size: 0x00000004, count: 0x00000001
Warn : 441 20877 arm7_9_common.c:1970 arm7_9_read_memory(): target not halted
Debug: 442 20877 gdb_server.c:2050 gdb_input_inner(): received packet: 'm0,4'
Debug: 443 20877 gdb_server.c:1190 gdb_read_memory_packet(): addr: 0x00000000, len: 0x00000004
Debug: 444 20877 target.c:1040 target_read_buffer(): reading buffer of 4 byte at 0x00000000
Debug: 445 20877 arm7_9_common.c:1966 arm7_9_read_memory(): address: 0x00000000, size: 0x00000004, count: 0x00000001
Warn : 446 20877 arm7_9_common.c:1970 arm7_9_read_memory(): target not halted
Debug: 447 29346 gdb_server.c:2050 gdb_input_inner(): received packet: 'k'
Debug: 448 29346 target.c:697 target_call_event_callbacks(): target event 10 (gdb-end)
Debug: 449 29346 target.c:3095 target_handle_event(): event: 10 gdb-end - no action
Debug: 450 29346 target.c:697 target_call_event_callbacks(): target event 27 (gdb-detach)
Debug: 451 29346 target.c:3095 target_handle_event(): event: 27 gdb-detach - no action
Info : 452 29346 server.c:452 server_loop(): dropped 'gdb' connection - error -400