Thanks for the reply Dominic.
What I found out was that I FreeRTOS did not allow the CPU to halt.
So, I grabbed the blinky program from Olimex and am able to halt the cpu and perform some commands.
In experimenting with OpenOCD, via telnet, I tried to erase the flash partition as described at [Martin THOMAS’ website
Unfortunately, the erase does not work for me.
(telnet session)
poll
(OpenOCD debug output)
Info: server.c:62 add_connection(): accepted ‘telnet’ connection from 0
Debug: embeddedice.c:153 embeddedice_read_reg_w_check(): 1
Debug: arm7_9_common.c:609 arm7_9_poll(): DBGACK set, dbg_state->value: 0x9
target state: halted
target halted in ARM state due to debug request, current mode: System
cpsr: 0x800000df pc: 0x0000015c
flash probe 0
flash ‘lpc2000’ found at 0x00000000
flash erase 0 0 0
Debug: target.c:480 target_alloc_working_area(): allocating new working area
Debug: arm7_9_common.c:1766 arm7_9_write_memory(): address: 0x40000000, size: 0x00000004, count: 0x00000002
Debug: embeddedice.c:153 embeddedice_read_reg_w_check(): 1
Debug: arm7tdmi.c:394 arm7tdmi_write_xpsr_im8(): xpsr_im: d3, rot: 0, spsr: 0
Debug: arm7tdmi.c:394 arm7tdmi_write_xpsr_im8(): xpsr_im: df, rot: 0, spsr: 0
Debug: arm7tdmi.c:394 arm7tdmi_write_xpsr_im8(): xpsr_im: d3, rot: 0, spsr: 0
Debug: arm7tdmi.c:394 arm7tdmi_write_xpsr_im8(): xpsr_im: df, rot: 0, spsr: 0
Debug: arm7tdmi.c:394 arm7tdmi_write_xpsr_im8(): xpsr_im: d3, rot: 0, spsr: 0
Debug: arm7tdmi.c:394 arm7tdmi_write_xpsr_im8(): xpsr_im: df, rot: 0, spsr: 0
Debug: target.c:581 target_write_buffer(): writing buffer of 24 byte at 0x40000008
Debug: arm7_9_common.c:1766 arm7_9_write_memory(): address: 0x40000008, size: 0x00000004, count: 0x00000006
Debug: embeddedice.c:153 embeddedice_read_reg_w_check(): 1
Debug: target.c:581 target_write_buffer(): writing buffer of 12 byte at 0x40000020
Debug: arm7_9_common.c:1766 arm7_9_write_memory(): address: 0x40000020, size: 0x00000004, count: 0x00000003
Debug: embeddedice.c:153 embeddedice_read_reg_w_check(): 1
Debug: armv4_5.c:533 armv4_5_run_algorithm(): setting core_mode: 0x13
Debug: breakpoints.c:85 breakpoint_add(): added hardware breakpoint at 0x40000004 of length 0x00000004
Debug: arm7_9_common.c:1277 arm7_9_resume():
Debug: embeddedice.c:249 embeddedice_write_reg(): 8: 0x40000004
Debug: embeddedice.c:249 embeddedice_write_reg(): 9: 0x00000003
Debug: embeddedice.c:249 embeddedice_write_reg(): 11: 0xffffffff
Debug: embeddedice.c:249 embeddedice_write_reg(): 13: 0x000000f7
Debug: embeddedice.c:249 embeddedice_write_reg(): 12: 0x00000100
Debug: arm7_9_common.c:1078 arm7_9_restore_context():
Debug: arm7_9_common.c:1094 arm7_9_restore_context(): examining User mode
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: r0
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: r1
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: r2
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: r3
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: r4
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: r5
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: r6
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: r12
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: pc
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: cpsr
Debug: arm7_9_common.c:1156 arm7_9_restore_context(): writing register 0 of mode User with value 0x40000008
Debug: arm7_9_common.c:1156 arm7_9_restore_context(): writing register 1 of mode User with value 0x40000020
Debug: arm7_9_common.c:1156 arm7_9_restore_context(): writing register 2 of mode User with value 0x00022f0f
Debug: arm7_9_common.c:1156 arm7_9_restore_context(): writing register 3 of mode User with value 0x004c4b3f
Debug: arm7_9_common.c:1156 arm7_9_restore_context(): writing register 4 of mode User with value 0x00000000
Debug: arm7_9_common.c:1156 arm7_9_restore_context(): writing register 5 of mode User with value 0xe01fc040
Debug: arm7_9_common.c:1156 arm7_9_restore_context(): writing register 6 of mode User with value 0x80623000
Debug: arm7_9_common.c:1156 arm7_9_restore_context(): writing register 12 of mode User with value 0x7ffffff1
Debug: arm7_9_common.c:1094 arm7_9_restore_context(): examining FIQ mode
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: pc
Debug: arm7_9_common.c:1094 arm7_9_restore_context(): examining IRQ mode
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: pc
Debug: arm7_9_common.c:1094 arm7_9_restore_context(): examining Supervisor mode
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: r13_svc
Debug: arm7_9_common.c:1115 arm7_9_restore_context(): require mode change
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: lr_svc
Debug: arm7_9_common.c:1115 arm7_9_restore_context(): require mode change
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: pc
Debug: arm7tdmi.c:394 arm7tdmi_write_xpsr_im8(): xpsr_im: d3, rot: 0, spsr: 0
Debug: arm7_9_common.c:1156 arm7_9_restore_context(): writing register 13 of mode Supervisor with value 0x400000ac
Debug: arm7_9_common.c:1156 arm7_9_restore_context(): writing register 14 of mode Supervisor with value 0x40000004
Debug: arm7_9_common.c:1094 arm7_9_restore_context(): examining Abort mode
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: pc
Debug: arm7_9_common.c:1094 arm7_9_restore_context(): examining Undefined mode
Debug: arm7_9_common.c:1108 arm7_9_restore_context(): examining dirty reg: pc
Debug: arm7_9_common.c:1188 arm7_9_restore_context(): writing cpsr with value 0x800000d3
Debug: arm7tdmi.c:363 arm7tdmi_write_xpsr(): xpsr: 800000d3, spsr: 0
Debug: arm7_9_common.c:1195 arm7_9_restore_context(): writing PC with value 0x40000000
Debug: embeddedice.c:249 embeddedice_write_reg(): 0: 0x00000004
Debug: target.c:400 target_call_event_callbacks(): target event 4
Debug: arm7_9_common.c:1380 arm7_9_resume(): target resumed
Debug: embeddedice.c:153 embeddedice_read_reg_w_check(): 1
…
Debug: embeddedice.c:153 embeddedice_read_reg_w_check(): 1
Error: armv4_5.c:554 armv4_5_run_algorithm(): timeout waiting for algorithm to complete, trying to halt target
Debug: arm7_9_common.c:771 arm7_9_halt(): target->state: debug_running
Debug: embeddedice.c:249 embeddedice_write_reg(): 9: 0xffffffff
Debug: embeddedice.c:249 embeddedice_write_reg(): 11: 0xffffffff
Debug: embeddedice.c:249 embeddedice_write_reg(): 12: 0x00000100
Debug: embeddedice.c:249 embeddedice_write_reg(): 13: 0x000000f7
Debug: embeddedice.c:153 embeddedice_read_reg_w_check(): 1
Debug: arm7_9_common.c:609 arm7_9_poll(): DBGACK set, dbg_state->value: 0x9
Debug: embeddedice.c:249 embeddedice_write_reg(): 0: 0x00000005
Debug: embeddedice.c:249 embeddedice_write_reg(): 9: 0x00000003
Debug: embeddedice.c:249 embeddedice_write_reg(): 11: 0xffffffff
Debug: embeddedice.c:249 embeddedice_write_reg(): 13: 0x000000f7
Debug: embeddedice.c:249 embeddedice_write_reg(): 12: 0x00000100
Debug: arm7_9_common.c:903 arm7_9_debug_entry(): target entered debug from ARM state
Debug: arm7_9_common.c:922 arm7_9_debug_entry(): target entered debug state in Undefined mode
Debug: arm7_9_common.c:963 arm7_9_debug_entry(): entered debug state at PC 0x2e4
Debug: target.c:400 target_call_event_callbacks(): target event 3
Debug: embeddedice.c:249 embeddedice_write_reg(): 12: 0x00000000
Debug: target.c:639 target_read_buffer(): reading buffer of 12 byte at 0x40000020
Debug: arm7_9_common.c:1621 arm7_9_read_memory(): address: 0x40000020, size: 0x00000004, count: 0x00000003
Debug: embeddedice.c:153 embeddedice_read_reg_w_check(): 1
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r0 with value 0x40000008
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r1 with value 0x40000020
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r2 with value 0x00023e73
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r3 with value 0x004c0000
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r4 with value 0x00000000
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r5 with value 0xe01fc040
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r6 with value 0x80623000
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r7 with value 0x00000000
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r8 with value 0x00000040
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r9 with value 0x00000000
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r10 with value 0x00000040
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r11 with value 0x40007ed4
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r12 with value 0x40007ed8
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register r13_svc with value 0x400000ac
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register lr_svc with value 0x40000004
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register pc with value 0x000002e4
Debug: armv4_5.c:603 armv4_5_run_algorithm(): restoring register spsr_svc with value 0x00000000
Warning: lpc2000.c:445 lpc2000_erase(): lpc2000 erase sectors returned 2067070976
Which gives back a “flash erase error” on the telnet side.
Trying an “flash erase 0 0 1” comes back with the same type of error.
I do appreciate your help, and it is looking good to be able to do embedded development on the Mac OS X platform…