David Brownell pisze:
> I'd suspect a bad build.  On the other hand, no matter what's
> causing the problem, THIS

Me too, but I've built that 3 times, from snapshot and directly with git 
clone... The build is fine.

>>> Error: Not implemented.
> 
> is a really *horrible* diagnostic.  *WHAT* is not implemented???
> 
> Mr. Grep tells me that message comes out on many MMU paths.
> And the two chips you identified -- STM32, LPC2103 -- do
> not have MMUs, so they shouldn't need to suply MMU methods.
> 
> 
>>> Warn : no working area available, can't do block memory writes
> 
> Maybe there's something else broken in mainline, MMU-related.

As Simon suggested that's from default_mmu(). Here is a d3 log for this 
failures:

STM32:

(I had to use a very very short binary image, as this throws milions of 
debug messages, I post only the ones important)

> Debug: 203 1156 target.c:1025 target_call_event_callbacks(): target event 4 
> (gdb
> -halt)
> Debug: 204 1156 target.c:1025 target_call_event_callbacks(): target event 5 
> (hal
> ted)
> User : 205 1156 target.c:1304 target_arch_state(): target state: halted
> User : 206 1156 armv7m.c:521 armv7m_arch_state(): target halted due to 
> debug-req
> uest, current mode: Thread
> xPSR: 00000000 pc: 0x33333340 msp: 0x20000000
> Debug: 209 1156 command.c:68 script_debug(): command - write_image
> Debug: 210 1156 command.c:77 script_debug(): write_image - 
> argv[0]=ocd_flash_wri
> te_image
> Debug: 211 1156 command.c:77 script_debug(): write_image - argv[1]=erase
> Debug: 212 1156 command.c:77 script_debug(): write_image - argv[2]=a.bin
> Debug: 213 1156 command.c:77 script_debug(): write_image - argv[3]=0x8000000
> User : 214 1172 command.c:400 command_print(): auto erase enabled
> Debug: 215 1172 configuration.c:83 find_file(): found a.bin
> Debug: 216 1172 configuration.c:83 find_file(): found a.bin
> Debug: 217 1172 target.c:1558 target_read_u32(): address: 0xe0042000, value: 
> 0x2
> 0036410
> Info : 218 1172 stm32x.c:724 stm32x_probe(): device id = 0x20036410
> Debug: 219 1172 target.c:1586 target_read_u16(): address: 0x1ffff7e0, value: 
> 0x0
> 080
> Info : 220 1172 stm32x.c:799 stm32x_probe(): flash size = 128kbytes
> Debug: 221 1172 target.c:1635 target_write_u32(): address: 0x40022004, value: 
> 0x
> 45670123
> Debug: 222 1188 target.c:1635 target_write_u32(): address: 0x40022004, value: 
> 0x
> cdef89ab
> Debug: 223 1188 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000002
> Debug: 224 1188 target.c:1635 target_write_u32(): address: 0x40022014, value: 
> 0x
> 08000000
> Debug: 225 1203 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000042
> Debug: 226 1203 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000003
> Debug: 227 1203 stm32x.c:121 stm32x_wait_status_busy(): status: 0x3
> Debug: 228 1203 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000003
> Debug: 229 1203 stm32x.c:121 stm32x_wait_status_busy(): status: 0x3
> Debug: 230 1219 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000003
> Debug: 231 1219 stm32x.c:121 stm32x_wait_status_busy(): status: 0x3
> Debug: 232 1219 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000020
> Debug: 233 1219 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000080
> Debug: 234 1235 target.c:1635 target_write_u32(): address: 0x40022004, value: 
> 0x
> 45670123
> Debug: 235 1235 target.c:1635 target_write_u32(): address: 0x40022004, value: 
> 0x
> cdef89ab
> Error: 236 1235 target.c:499 default_mmu(): Not implemented.
> Warn : 237 1235 stm32x.c:517 stm32x_write_block(): no working area available, 
> ca
> n't do block memory writes
> Warn : 238 1235 stm32x.c:636 stm32x_write(): couldn't use block writes, 
> falling
> back to single memory accesses
> Debug: 239 1235 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000001
> Debug: 240 1250 target.c:1658 target_write_u16(): address: 0x08000000, value: 
> 0x
> 00000000
> Debug: 241 1250 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000020
> Debug: 242 1250 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000001
> Debug: 243 1250 target.c:1658 target_write_u16(): address: 0x08000002, value: 
> 0x
> 00002000
> Debug: 244 1266 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000020
> Debug: 245 1266 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000001
> Debug: 246 1266 target.c:1658 target_write_u16(): address: 0x08000004, value: 
> 0x
> 00003340
> Debug: 247 1281 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000020
> Debug: 248 1281 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000001
> Debug: 249 1281 target.c:1658 target_write_u16(): address: 0x08000006, value: 
> 0x
> 00003333
> Debug: 250 1297 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000020
> Debug: 251 1297 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000001
> Debug: 252 1297 target.c:1658 target_write_u16(): address: 0x08000008, value: 
> 0x
> 00003333
> Debug: 253 1297 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000020
> Debug: 254 1313 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000001
> Debug: 255 1313 target.c:1658 target_write_u16(): address: 0x0800000a, value: 
> 0x
> 00002233
> Debug: 256 1313 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000020
> Debug: 257 1313 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000001
> Debug: 258 1328 target.c:1658 target_write_u16(): address: 0x0800000c, value: 
> 0x
> 00000040
> Debug: 259 1328 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000020
> Debug: 260 1328 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000001
> Debug: 261 1328 target.c:1658 target_write_u16(): address: 0x0800000e, value: 
> 0x
> 00000000
> Debug: 262 1344 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000020
> Debug: 263 1344 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000001
> Debug: 264 1344 target.c:1658 target_write_u16(): address: 0x08000010, value: 
> 0x
> 00000000
> Debug: 265 1360 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000020
> Debug: 266 1360 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000001
> Debug: 267 1360 target.c:1658 target_write_u16(): address: 0x08000012, value: 
> 0x
> 00002200
> Debug: 268 1375 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000020
> Debug: 269 1375 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000001
> Debug: 270 1375 target.c:1658 target_write_u16(): address: 0x08000014, value: 
> 0x
> 0000ff40
> Debug: 271 1375 target.c:1558 target_read_u32(): address: 0x4002200c, value: 
> 0x0
> 0000020
> Debug: 272 1391 target.c:1635 target_write_u32(): address: 0x40022010, value: 
> 0x
> 00000080
> User : 273 1391 command.c:400 command_print(): wrote 21 byte from file a.bin 
> in
> 0.218750s (0.093750 kb/s)
> Debug: 275 1391 command.c:68 script_debug(): command - reset
> Debug: 276 1391 command.c:77 script_debug(): reset - argv[0]=ocd_reset
> Debug: 277 1391 command.c:77 script_debug(): reset - argv[1]=run
> Debug: 278 1391 target.c:4536 jim_target(): Target command params:
> Debug: 279 1391 target.c:4537 jim_target(): target names
> Debug: 280 1391 core.c:1465 jtag_init_reset(): Initializing with hard 
> TRST+SRST
> reset
> Debug: 281 1391 ft2232.c:1342 jtagkey_reset(): trst: 1, srst: 0, high_output: 
> 0x
> 08, high_direction: 0x0f
> Debug: 282 1391 core.c:722 jtag_add_reset(): TRST line asserted
> Debug: 283 1391 ft2232.c:1342 jtagkey_reset(): trst: 1, srst: 1, high_output: 
> 0x
> 00, high_direction: 0x0f
> Debug: 284 1406 core.c:697 jtag_add_reset(): SRST line asserted
> Debug: 285 1406 ft2232.c:1342 jtagkey_reset(): trst: 0, srst: 1, high_output: 
> 0x
> 01, high_direction: 0x0f
> Debug: 286 1406 core.c:727 jtag_add_reset(): TRST line released
> Debug: 287 1406 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
> Debug: 288 1516 ft2232.c:1342 jtagkey_reset(): trst: 0, srst: 0, high_output: 
> 0x
> 09, high_direction: 0x0f
> Debug: 289 1516 core.c:702 jtag_add_reset(): SRST line released
> Debug: 290 1625 core.c:1378 jtag_init_inner(): Init JTAG chain
> Debug: 291 1625 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
> Debug: 292 1625 core.c:1039 jtag_examine_chain(): DR scan interrogation for 
> IDCO
> DE/BYPASS
> Debug: 293 1625 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
> Info : 294 1625 core.c:948 jtag_examine_chain_display(): JTAG tap: stm32.cpu 
> tap
> /device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)
> Info : 295 1641 core.c:948 jtag_examine_chain_display(): JTAG tap: stm32.bs 
> tap/
> device found: 0x16410041 (mfg: 0x020, part: 0x6410, ver: 0x1)
> Debug: 296 1641 core.c:1204 jtag_validate_ircapture(): IR capture validation 
> sca
> n
> Debug: 297 1641 core.c:1257 jtag_validate_ircapture(): stm32.cpu: IR capture 
> 0x0
> 1
> Debug: 298 1641 core.c:1257 jtag_validate_ircapture(): stm32.bs: IR capture 
> 0x01
> 
> Debug: 299 1641 arm_adi_v5.c:960 ahbap_debugport_init():
> Debug: 300 1656 arm_adi_v5.c:1005 ahbap_debugport_init(): AHB-AP ID Register 
> 0x1
> 4770011, Debug ROM Address 0xe00ff003
> Debug: 301 1656 cortex_m3.c:700 cortex_m3_assert_reset(): target->state: 
> halted
> Debug: 302 1672 cortex_m3.c:153 cortex_m3_clear_halt():  NVIC_DFSR 0x9
> Debug: 303 1672 ft2232.c:1342 jtagkey_reset(): trst: 0, srst: 1, high_output: 
> 0x
> 01, high_direction: 0x0f
> Debug: 304 1672 core.c:697 jtag_add_reset(): SRST line asserted
> Debug: 306 1672 cortex_m3.c:833 cortex_m3_deassert_reset(): target->state: 
> reset
> 
> Debug: 307 1735 ft2232.c:1342 jtagkey_reset(): trst: 0, srst: 0, high_output: 
> 0x
> 09, high_direction: 0x0f
> Debug: 308 1735 core.c:702 jtag_add_reset(): SRST line released
> Debug: 309 1844 cortex_m3.c:415 cortex_m3_poll(): Exit from reset with 
> dcb_dhcsr
>  0x30003
> Debug: 310 1860 cortex_m3.c:190 cortex_m3_endreset_event(): DCB_DEMCR = 
> 0x010005
> 00
> Debug: 311 1860 target.c:1635 target_write_u32(): address: 0xe0002000, value: 
> 0x
> 00000003
> Debug: 312 1860 target.c:1635 target_write_u32(): address: 0xe0002008, value: 
> 0x
> 00000000
> Debug: 313 1875 target.c:1635 target_write_u32(): address: 0xe000200c, value: 
> 0x
> 00000000
> Debug: 314 1875 target.c:1635 target_write_u32(): address: 0xe0002010, value: 
> 0x
> 00000000
> Debug: 315 1875 target.c:1635 target_write_u32(): address: 0xe0002014, value: 
> 0x
> 00000000
> Debug: 316 1875 target.c:1635 target_write_u32(): address: 0xe0002018, value: 
> 0x
> 00000000
> Debug: 317 1891 target.c:1635 target_write_u32(): address: 0xe000201c, value: 
> 0x
> 00000000
> Debug: 318 1891 target.c:1635 target_write_u32(): address: 0xe0002020, value: 
> 0x
> 00000000
> Debug: 319 1891 target.c:1635 target_write_u32(): address: 0xe0002024, value: 
> 0x
> 00000000
> Debug: 320 1891 target.c:1635 target_write_u32(): address: 0xe0001020, value: 
> 0x
> 00000000
> Debug: 321 1906 target.c:1635 target_write_u32(): address: 0xe0001024, value: 
> 0x
> 00000000
> Debug: 322 1906 target.c:1635 target_write_u32(): address: 0xe0001028, value: 
> 0x
> 00000000
> Debug: 323 1906 target.c:1635 target_write_u32(): address: 0xe0001030, value: 
> 0x
> 00000000
> Debug: 324 1922 target.c:1635 target_write_u32(): address: 0xe0001034, value: 
> 0x
> 00000000
> Debug: 325 1922 target.c:1635 target_write_u32(): address: 0xe0001038, value: 
> 0x
> 00000000
> Debug: 326 1922 target.c:1635 target_write_u32(): address: 0xe0001040, value: 
> 0x
> 00000000
> Debug: 327 1922 target.c:1635 target_write_u32(): address: 0xe0001044, value: 
> 0x
> 00000000
> Debug: 328 1938 target.c:1635 target_write_u32(): address: 0xe0001048, value: 
> 0x
> 00000000
> Debug: 329 1938 target.c:1635 target_write_u32(): address: 0xe0001050, value: 
> 0x
> 00000000
> Debug: 330 1938 target.c:1635 target_write_u32(): address: 0xe0001054, value: 
> 0x
> 00000000
> Debug: 331 1938 target.c:1635 target_write_u32(): address: 0xe0001058, value: 
> 0x
> 00000000
> Debug: 332 1953 cortex_m3.c:322 cortex_m3_debug_entry():
> Debug: 333 1969 cortex_m3.c:153 cortex_m3_clear_halt():  NVIC_DFSR 0x9
> Debug: 334 1985 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 0  value 0x44aa200
> Debug: 335 1985 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 1  value 0x0
> Debug: 336 2000 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 2  value 0xab4cf
> Debug: 337 2000 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 3  value 0xf4240
> Debug: 338 2016 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 4  value 0x0
> Debug: 339 2016 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 5  value 0x799282
> Debug: 340 2031 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 6  value 0xe000e000
> Debug: 341 2047 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 7  value 0x200001f0
> Debug: 342 2047 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 8  value 0xfffffffd
> Debug: 343 2063 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 9  value 0xffffff3c
> Debug: 344 2063 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 10  value 0x7e7bbda0
> Debug: 345 2078 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 11  value 0xa83716f
> Debug: 346 2094 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 12  value 0xcfffffff
> Debug: 347 2094 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 13  value 0x1fffffe0
> Debug: 348 2110 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 14  value 0xfffffff9
> Debug: 349 2110 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 15  value 0x40
> Debug: 350 2125 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 16  value 0x3
> Debug: 351 2125 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 17  value 0x1fffffe0
> Debug: 352 2141 cortex_m3.c:1257 cortex_m3_load_core_reg_u32(): load from 
> core r
> eg 18  value 0x200001f0
> Debug: 353 2156 cortex_m3.c:1289 cortex_m3_load_core_reg_u32(): load from 
> specia
> l reg 19 value 0x0
> Debug: 354 2156 cortex_m3.c:1289 cortex_m3_load_core_reg_u32(): load from 
> specia
> l reg 20 value 0x0
> Debug: 355 2172 cortex_m3.c:1289 cortex_m3_load_core_reg_u32(): load from 
> specia
> l reg 21 value 0x0
> Debug: 356 2172 cortex_m3.c:1289 cortex_m3_load_core_reg_u32(): load from 
> specia
> l reg 22 value 0x0
> Debug: 357 2188 cortex_m3.c:309 cortex_m3_examine_exception_reason(): 
> HardFault
> SHCSR 0x20000, SR 0x40000000, CFSR 0x1100, AR 0xffffffff
> Debug: 358 2188 cortex_m3.c:377 cortex_m3_debug_entry(): entered debug state 
> in
> core mode: Handler at PC 0x40, target->state: halted
> Debug: 359 2188 target.c:1025 target_call_event_callbacks(): target event 4 
> (gdb
> -halt)
> Debug: 360 2188 target.c:1025 target_call_event_callbacks(): target event 5 
> (hal
> ted)
> User : 361 2188 target.c:1304 target_arch_state(): target state: halted
> User : 362 2188 armv7m.c:521 armv7m_arch_state(): target halted due to 
> debug-req
> uest, current mode: Handler HardFault
> xPSR: 0x00000003 pc: 0x00000040 msp: 0x1fffffe0
> Debug: 365 2203 command.c:68 script_debug(): command - shutdown
> Debug: 366 2203 command.c:77 script_debug(): shutdown - argv[0]=ocd_shutdown

LPC2103:

> c:\Program Files\OpenOCD\0.3.0\bin>openocd-fb50efc6-libftdi -d3
> Open On-Chip Debugger 0.4.0-dev-snapshot (2009-11-07-14:52)
> $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.cfg
> Debug: 7 0 configuration.c:83 find_file(): found c:\Program 
> Files\OpenOCD\0.3.0\
> bin\../interface/jtagkey.cfg
> Debug: 9 0 command.c:68 script_debug(): command - interface
> Debug: 10 0 command.c:77 script_debug(): interface - argv[0]=ocd_interface
> Debug: 11 0 command.c:77 script_debug(): interface - argv[1]=ft2232
> Debug: 13 0 command.c:68 script_debug(): command - ft2232_device_desc
> Debug: 14 0 command.c:77 script_debug(): ft2232_device_desc - 
> argv[0]=ocd_ft2232
> _device_desc
> Debug: 15 0 command.c:77 script_debug(): ft2232_device_desc - argv[1]=Amontec 
> JT
> AGkey
> Debug: 17 0 command.c:68 script_debug(): command - ft2232_layout
> Debug: 18 0 command.c:77 script_debug(): ft2232_layout - 
> argv[0]=ocd_ft2232_layo
> ut
> Debug: 19 0 command.c:77 script_debug(): ft2232_layout - argv[1]=jtagkey
> Debug: 21 0 command.c:68 script_debug(): command - ft2232_vid_pid
> Debug: 22 0 command.c:77 script_debug(): ft2232_vid_pid - 
> argv[0]=ocd_ft2232_vid
> _pid
> Debug: 23 0 command.c:77 script_debug(): ft2232_vid_pid - argv[1]=0x0403
> Debug: 24 0 command.c:77 script_debug(): ft2232_vid_pid - argv[2]=0xcff8
> Debug: 25 0 configuration.c:83 find_file(): found c:\Program 
> Files\OpenOCD\0.3.0
> \bin\../target/lpc2103.cfg
> Debug: 27 0 command.c:68 script_debug(): command - reset_config
> Debug: 28 16 command.c:77 script_debug(): reset_config - 
> argv[0]=ocd_reset_confi
> g
> Debug: 29 16 command.c:77 script_debug(): reset_config - argv[1]=trst_and_srst
> Debug: 30 16 command.c:77 script_debug(): reset_config - 
> argv[2]=srst_pulls_trst
> 
> User : 31 16 command.c:400 command_print(): trst_and_srst srst_pulls_trst 
> srst_g
> ates_jtag trst_push_pull srst_open_drain
> Debug: 33 16 command.c:68 script_debug(): command - jtag_nsrst_delay
> Debug: 34 16 command.c:77 script_debug(): jtag_nsrst_delay - 
> argv[0]=ocd_jtag_ns
> rst_delay
> Debug: 35 16 command.c:77 script_debug(): jtag_nsrst_delay - argv[1]=100
> User : 36 16 command.c:400 command_print(): jtag_nsrst_delay: 100
> Debug: 38 16 command.c:68 script_debug(): command - jtag_ntrst_delay
> Debug: 39 16 command.c:77 script_debug(): jtag_ntrst_delay - 
> argv[0]=ocd_jtag_nt
> rst_delay
> Debug: 40 16 command.c:77 script_debug(): jtag_ntrst_delay - argv[1]=100
> User : 41 16 command.c:400 command_print(): jtag_ntrst_delay: 100
> Debug: 42 16 tcl.c:245 jim_newtap_cmd(): Creating New Tap, Chip: lpc2103, 
> Tap: c
> pu, Dotted: lpc2103.cpu, 8 params
> Debug: 43 16 tcl.c:262 jim_newtap_cmd(): Processing option: -irlen
> Debug: 44 16 tcl.c:262 jim_newtap_cmd(): Processing option: -ircapture
> Debug: 45 16 tcl.c:262 jim_newtap_cmd(): Processing option: -irmask
> Debug: 46 16 tcl.c:262 jim_newtap_cmd(): Processing option: -expected-id
> Debug: 47 16 core.c:1314 jtag_tap_init(): Created Tap: lpc2103.cpu @ abs 
> positio
> n 0, irlen 4, capture: 0x1 mask: 0xf
> Debug: 48 16 target.c:4536 jim_target(): Target command params:
> Debug: 49 16 target.c:4537 jim_target(): target create lpc2103.cpu arm7tdmi 
> -end
> ian little -chain-position lpc2103.cpu -variant arm7tdmi-s_r4
> Debug: 51 32 command.c:68 script_debug(): command - bank
> Debug: 52 32 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank
> Debug: 53 32 command.c:77 script_debug(): bank - argv[1]=lpc2000
> Debug: 54 32 command.c:77 script_debug(): bank - argv[2]=0x0
> Debug: 55 32 command.c:77 script_debug(): bank - argv[3]=0x8000
> Debug: 56 32 command.c:77 script_debug(): bank - argv[4]=0
> Debug: 57 32 command.c:77 script_debug(): bank - argv[5]=0
> Debug: 58 32 command.c:77 script_debug(): bank - argv[6]=lpc2103.cpu
> Debug: 59 32 command.c:77 script_debug(): bank - argv[7]=lpc2000_v2
> Debug: 60 32 command.c:77 script_debug(): bank - argv[8]=12000
> Debug: 61 32 command.c:77 script_debug(): bank - argv[9]=calc_checksum
> Debug: 63 32 command.c:68 script_debug(): command - init
> Debug: 64 32 command.c:77 script_debug(): init - argv[0]=ocd_init
> Debug: 65 32 openocd.c:129 handle_init_command(): target init complete
> Debug: 66 32 ft2232.c:2113 ft2232_init(): ft2232 interface using shortest 
> path j
> tag state transitions
> Debug: 67 32 ft2232.c:2027 ft2232_init_libftdi(): 'ft2232' interface using 
> libft
> di with 'jtagkey' layout (0403:cff8)
> Debug: 68 94 ft2232.c:2071 ft2232_init_libftdi(): current latency timer: 2
> Debug: 69 110 ft2232.c:2082 ft2232_init_libftdi(): FTDI chip type: 2 "2232C"
> Debug: 70 110 ft2232.c:2369 jtagkey_init(): 80 08 1b
> Debug: 71 110 ft2232.c:2428 jtagkey_init(): 82 09 0f
> Debug: 72 110 ft2232.c:524 ft2232_speed(): 86 00 00
> Info : 73 125 core.c:1364 jtag_interface_init(): clock speed 6000 kHz
> Debug: 74 125 openocd.c:136 handle_init_command(): jtag interface init 
> complete
> Debug: 75 125 ft2232.c:1342 jtagkey_reset(): trst: 0, srst: 0, high_output: 
> 0x09
> , high_direction: 0x0f
> Debug: 76 125 core.c:702 jtag_add_reset(): SRST line released
> Debug: 77 125 core.c:727 jtag_add_reset(): TRST line released
> Debug: 78 125 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
> Debug: 79 344 core.c:1378 jtag_init_inner(): Init JTAG chain
> Debug: 80 344 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
> Debug: 81 344 core.c:1039 jtag_examine_chain(): DR scan interrogation for 
> IDCODE
> /BYPASS
> Debug: 82 344 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
> Info : 83 344 core.c:948 jtag_examine_chain_display(): JTAG tap: lpc2103.cpu 
> tap
> /device found: 0x4f1f0f0f (mfg: 0x787, part: 0xf1f0, ver: 0x4)
> Debug: 84 344 core.c:1204 jtag_validate_ircapture(): IR capture validation 
> scan
> Debug: 85 360 core.c:1257 jtag_validate_ircapture(): lpc2103.cpu: IR capture 
> 0x0
> 1
> Debug: 86 360 openocd.c:142 handle_init_command(): jtag init complete
> Info : 87 360 embeddedice.c:206 embeddedice_build_reg_cache(): Embedded ICE 
> vers
> ion 4
> Debug: 88 360 embeddedice.c:455 embeddedice_write_reg(): 0: 0x00000000
> Debug: 89 360 arm7_9_common.c:61 arm7_9_clear_watchpoints(): -
> Debug: 90 360 embeddedice.c:455 embeddedice_write_reg(): 12: 0x00000000
> Debug: 91 360 embeddedice.c:455 embeddedice_write_reg(): 20: 0x00000000
> Debug: 92 360 openocd.c:145 handle_init_command(): jtag examine complete
> Debug: 93 375 openocd.c:151 handle_init_command(): flash init complete
> Debug: 94 375 openocd.c:155 handle_init_command(): mflash init complete
> Debug: 95 375 openocd.c:159 handle_init_command(): NAND init complete
> Debug: 96 375 openocd.c:163 handle_init_command(): pld init complete
> Debug: 97 375 gdb_server.c:2243 gdb_init(): gdb service for target arm7tdmi 
> at T
> CP port 3333
> Debug: 99 375 command.c:68 script_debug(): command - reset
> Debug: 100 375 command.c:77 script_debug(): reset - argv[0]=ocd_reset
> Debug: 101 375 command.c:77 script_debug(): reset - argv[1]=halt
> Debug: 102 375 target.c:4536 jim_target(): Target command params:
> Debug: 103 375 target.c:4537 jim_target(): target names
> Debug: 104 375 core.c:1465 jtag_init_reset(): Initializing with hard 
> TRST+SRST r
> eset
> Debug: 105 391 ft2232.c:1342 jtagkey_reset(): trst: 1, srst: 0, high_output: 
> 0x0
> 8, high_direction: 0x0f
> Debug: 106 391 core.c:722 jtag_add_reset(): TRST line asserted
> Debug: 107 391 ft2232.c:1342 jtagkey_reset(): trst: 1, srst: 1, high_output: 
> 0x0
> 0, high_direction: 0x0f
> Debug: 108 391 core.c:697 jtag_add_reset(): SRST line asserted
> Debug: 109 391 ft2232.c:1342 jtagkey_reset(): trst: 0, srst: 0, high_output: 
> 0x0
> 9, high_direction: 0x0f
> Debug: 110 391 core.c:702 jtag_add_reset(): SRST line released
> Debug: 111 391 core.c:727 jtag_add_reset(): TRST line released
> Debug: 112 391 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
> Debug: 114 610 core.c:1378 jtag_init_inner(): Init JTAG chain
> Debug: 115 610 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
> Debug: 116 610 core.c:1039 jtag_examine_chain(): DR scan interrogation for 
> IDCOD
> E/BYPASS
> Debug: 117 610 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
> Info : 118 610 core.c:948 jtag_examine_chain_display(): JTAG tap: lpc2103.cpu 
> ta
> p/device found: 0x4f1f0f0f (mfg: 0x787, part: 0xf1f0, ver: 0x4)
> Debug: 119 625 core.c:1204 jtag_validate_ircapture(): IR capture validation 
> scan
> 
> Debug: 120 625 core.c:1257 jtag_validate_ircapture(): lpc2103.cpu: IR capture 
> 0x
> 01
> Debug: 121 625 embeddedice.c:455 embeddedice_write_reg(): 0: 0x00000000
> Debug: 122 625 arm7_9_common.c:61 arm7_9_clear_watchpoints(): -
> Debug: 123 625 embeddedice.c:455 embeddedice_write_reg(): 12: 0x00000000
> Debug: 124 625 embeddedice.c:455 embeddedice_write_reg(): 20: 0x00000000
> Debug: 125 625 arm7_9_common.c:999 arm7_9_assert_reset(): target->state: 
> running
> 
> Debug: 126 625 embeddedice.c:455 embeddedice_write_reg(): 8: 0x00000000
> Debug: 127 625 embeddedice.c:455 embeddedice_write_reg(): 9: 0x00000003
> Debug: 128 625 embeddedice.c:455 embeddedice_write_reg(): 11: 0xffffffff
> Debug: 129 625 embeddedice.c:455 embeddedice_write_reg(): 12: 0x00000100
> Debug: 130 625 embeddedice.c:455 embeddedice_write_reg(): 13: 0x000000f7
> Debug: 131 641 ft2232.c:1342 jtagkey_reset(): trst: 1, srst: 1, high_output: 
> 0x0
> 0, high_direction: 0x0f
> Debug: 132 641 core.c:697 jtag_add_reset(): SRST line asserted
> Debug: 133 641 core.c:722 jtag_add_reset(): TRST line asserted
> Debug: 134 641 arm7_9_common.c:1090 arm7_9_deassert_reset(): target->state: 
> rese
> t
> Debug: 135 688 ft2232.c:1342 jtagkey_reset(): trst: 0, srst: 0, high_output: 
> 0x0
> 9, high_direction: 0x0f
> Debug: 136 688 core.c:702 jtag_add_reset(): SRST line released
> Debug: 137 688 core.c:727 jtag_add_reset(): TRST line released
> Debug: 138 688 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
> Warn : 139 688 arm7_9_common.c:1098 arm7_9_deassert_reset(): srst pulls trst 
> - c
> an not reset into halted mode. Issuing halt after reset.
> Debug: 140 922 embeddedice.c:455 embeddedice_write_reg(): 0: 0x00000000
> Debug: 141 922 arm7_9_common.c:61 arm7_9_clear_watchpoints(): -
> Debug: 142 922 embeddedice.c:455 embeddedice_write_reg(): 12: 0x00000000
> Debug: 143 922 embeddedice.c:455 embeddedice_write_reg(): 20: 0x00000000
> Debug: 144 922 arm7_9_common.c:1308 arm7_9_halt(): target->state: running
> Debug: 145 922 embeddedice.c:455 embeddedice_write_reg(): 9: 0xffffffff
> Debug: 146 922 embeddedice.c:455 embeddedice_write_reg(): 11: 0xffffffff
> Debug: 147 922 embeddedice.c:455 embeddedice_write_reg(): 12: 0x00000100
> Debug: 148 922 embeddedice.c:455 embeddedice_write_reg(): 13: 0x000000f7
> Debug: 149 938 embeddedice.c:455 embeddedice_write_reg(): 0: 0x00000005
> Debug: 150 938 embeddedice.c:455 embeddedice_write_reg(): 12: 0x00000000
> Debug: 151 938 arm7_9_common.c:1414 arm7_9_debug_entry(): target entered 
> debug f
> rom ARM state
> Debug: 152 938 arm7_9_common.c:1446 arm7_9_debug_entry(): target entered 
> debug s
> tate in System mode
> Debug: 153 938 arm7_9_common.c:1469 arm7_9_debug_entry(): r0: 0x00000006
> Debug: 154 938 arm7_9_common.c:1469 arm7_9_debug_entry(): r1: 0x00000005
> Debug: 155 938 arm7_9_common.c:1469 arm7_9_debug_entry(): r2: 0x000bbf68
> Debug: 156 938 arm7_9_common.c:1469 arm7_9_debug_entry(): r3: 0x000f4240
> Debug: 157 938 arm7_9_common.c:1469 arm7_9_debug_entry(): r4: 0x00000000
> Debug: 158 938 arm7_9_common.c:1469 arm7_9_debug_entry(): r5: 0xe01fc040
> Debug: 159 938 arm7_9_common.c:1469 arm7_9_debug_entry(): r6: 0x12345678
> Debug: 160 953 arm7_9_common.c:1469 arm7_9_debug_entry(): r7: 0x964b0128
> Debug: 161 953 arm7_9_common.c:1469 arm7_9_debug_entry(): r8: 0x9085b12c
> Debug: 162 953 arm7_9_common.c:1469 arm7_9_debug_entry(): r9: 0x30195004
> Debug: 163 953 arm7_9_common.c:1469 arm7_9_debug_entry(): r10: 0x3ae41048
> Debug: 164 953 arm7_9_common.c:1469 arm7_9_debug_entry(): r11: 0x400001fc
> Debug: 165 953 arm7_9_common.c:1469 arm7_9_debug_entry(): r12: 0x02421322
> Debug: 166 953 arm7_9_common.c:1469 arm7_9_debug_entry(): r13: 0x400001f0
> Debug: 167 953 arm7_9_common.c:1469 arm7_9_debug_entry(): r14: 0x00000110
> Debug: 168 953 arm7_9_common.c:1469 arm7_9_debug_entry(): r15: 0x0000012c
> Debug: 169 953 arm7_9_common.c:1475 arm7_9_debug_entry(): entered debug state 
> at
>  PC 0x12c
> Debug: 170 953 target.c:1025 target_call_event_callbacks(): target event 4 
> (gdb-
> halt)
> Debug: 171 953 target.c:1025 target_call_event_callbacks(): target event 5 
> (halt
> ed)
> User : 172 953 target.c:1304 target_arch_state(): target state: halted
> User : 173 953 armv4_5.c:305 armv4_5_arch_state(): target halted in ARM state 
> du
> e to debug-request, current mode: System
> cpsr: 0x8000001f pc: 0x0000012c
> Debug: 175 969 command.c:68 script_debug(): command - write_image
> Debug: 176 969 command.c:77 script_debug(): write_image - 
> argv[0]=ocd_flash_writ
> e_image
> Debug: 177 969 command.c:77 script_debug(): write_image - argv[1]=erase
> Debug: 178 969 command.c:77 script_debug(): write_image - argv[2]=j.hex
> User : 179 969 command.c:400 command_print(): auto erase enabled
> Debug: 180 969 configuration.c:83 find_file(): found j.hex
> Debug: 181 969 image.c:89 autodetect_image_type(): IHEX image detected.
> Debug: 182 969 configuration.c:83 find_file(): found j.hex
> Error: 183 969 target.c:499 default_mmu(): Not implemented.
> Error: 184 969 lpc2000.c:294 lpc2000_iap_call(): no working area specified, 
> can'
> t write LPC2000 internal flash
> Error: 185 969 flash.c:116 flash_driver_erase(): failed erasing sectors 0 to 
> 2 (
> -902)
> Debug: 186 969 command.c:444 run_command(): Command failed with error code 
> -902
> User : 187 969 command.c:646 openocd_jim_vfprintf():
> User : 190 969 command.c:646 openocd_jim_vfprintf():
> User : 192 969 command.c:646 openocd_jim_vfprintf():
> User : 194 969 command.c:646 openocd_jim_vfprintf():
> User : 196 969 command.c:646 openocd_jim_vfprintf():
> User : 198 969 command.c:646 openocd_jim_vfprintf():
> User : 200 969 command.c:646 openocd_jim_vfprintf():

4\/3!!
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to