Hi Spen,
Thanks for your help so far, the version of openOCD I am running is the latest I think I have this output when I type version: Open On-Chip Debugger (2007-04-16 19:30 CEST).
I think it is working fine. I have been able to run commands in it no problem. I think I managed to write to the flash using IAR workbench (FREE RTOS Embedded Ethernet demo) listing the telnet address as the destination for the dubug (localhost 4444), it hung the IAR.
But that is not the problem the main issue is that since then it gives me the following out put to various commands, I can seem to stop it running. Lots of output to commands included below:
Cheers,
Tom
Open On-Chip Debugger
poll
target state: running
halt
requesting target halt…
reset
poll
target state: running
erase_flash 0 0 0
Command erase_flash not found
bp 0 3
target must be halted to set breakpoints
poll
target state: running
scan_chain
0: idcode: 0x04570041 ir length 8, ir capture 0x1, ir mask 0x1, current instruct
ion 0xff
1: idcode: 0x25966041 ir length 4, ir capture 0x1, ir mask 0xf, current instruct
ion 0xc
2: idcode: 0x2457f041 ir length 5, ir capture 0x1, ir mask 0x1, current instruct
ion 0x1f
targets
0: arm966e (little endian), state: running
flash erase 0 1 2
can’t work with this flash while target is running
poll
target state: running
reg
(0) r0 (/32): 0x00000000 (dirty: 0, valid: 0)
(1) r1 (/32): 0x00000000 (dirty: 0, valid: 0)
(2) r2 (/32): 0x00000000 (dirty: 0, valid: 0)
(3) r3 (/32): 0x00000000 (dirty: 0, valid: 0)
(4) r4 (/32): 0x00000000 (dirty: 0, valid: 0)
(5) r5 (/32): 0x00000000 (dirty: 0, valid: 0)
(6) r6 (/32): 0x00000000 (dirty: 0, valid: 0)
(7) r7 (/32): 0x00000000 (dirty: 0, valid: 0)
(8) r8 (/32): 0x00000000 (dirty: 0, valid: 0)
(9) r9 (/32): 0x00000000 (dirty: 0, valid: 0)
(10) r10 (/32): 0x00000000 (dirty: 0, valid: 0)
(11) r11 (/32): 0x00000000 (dirty: 0, valid: 0)
(12) r12 (/32): 0x00000000 (dirty: 0, valid: 0)
(13) r13_usr (/32): 0x00000000 (dirty: 0, valid: 0)
(14) lr_usr (/32): 0x00000000 (dirty: 0, valid: 0)
(15) pc (/32): 0x00000000 (dirty: 0, valid: 0)
(16) r8_fiq (/32): 0x00000000 (dirty: 0, valid: 0)
(17) r9_fiq (/32): 0x00000000 (dirty: 0, valid: 0)
(18) r10_fiq (/32): 0x00000000 (dirty: 0, valid: 0)
(19) r11_fiq (/32): 0x00000000 (dirty: 0, valid: 0)
(20) r12_fiq (/32): 0x00000000 (dirty: 0, valid: 0)
(21) r13_fiq (/32): 0x00000000 (dirty: 0, valid: 0)
(22) lr_fiq (/32): 0x00000000 (dirty: 0, valid: 0)
(23) r13_irq (/32): 0x00000000 (dirty: 0, valid: 0)
(24) lr_irq (/32): 0x00000000 (dirty: 0, valid: 0)
(25) r13_svc (/32): 0x00000000 (dirty: 0, valid: 0)
(26) lr_svc (/32): 0x00000000 (dirty: 0, valid: 0)
(27) r13_abt (/32): 0x00000000 (dirty: 0, valid: 0)
(28) lr_abt (/32): 0x00000000 (dirty: 0, valid: 0)
(29) r13_und (/32): 0x00000000 (dirty: 0, valid: 0)
(30) lr_und (/32): 0x00000000 (dirty: 0, valid: 0)
(31) cpsr (/32): 0x00000000 (dirty: 0, valid: 0)
(32) spsr_fiq (/32): 0x00000000 (dirty: 0, valid: 0)
(33) spsr_irq (/32): 0x00000000 (dirty: 0, valid: 0)
(34) spsr_svc (/32): 0x00000000 (dirty: 0, valid: 0)
(35) spsr_abt (/32): 0x00000000 (dirty: 0, valid: 0)
(36) spsr_und (/32): 0x00000000 (dirty: 0, valid: 0)
(37) debug_ctrl (/6): 0x02 (dirty: 0, valid: 1)
(38) debug_status (/10): 0x0000 (dirty: 0, valid: 0)
(39) comms_ctrl (/32): 0x60000000 (dirty: 0, valid: 0)
(40) comms_data (/32): 0x00000000 (dirty: 0, valid: 0)
(41) watch 0 addr value (/32): 0x00000000 (dirty: 0, vali
(42) watch 0 addr mask (/32): 0x00000000 (dirty: 0, valid
(43) watch 0 data value (/32): 0x00000000 (dirty: 0, vali
(44) watch 0 data mask (/32): 0x00000000 (dirty: 0, valid
(45) watch 0 control value (/32): 0x00000000 (dirty: 0, v
(46) watch 0 control mask (/32): 0x00000000 (dirty: 0, va
(47) watch 1 addr value (/32): 0x00000000 (dirty: 0, vali
(48) watch 1 addr mask (/32): 0x00000000 (dirty: 0, valid
(49) watch 1 data value (/32): 0x00000000 (dirty: 0, vali
(50) watch 1 data mask (/32): 0x00000000 (dirty: 0, valid
(51) watch 1 control value (/32): 0x00000000 (dirty: 0, v
(52) watch 1 control mask (/32): 0x00000000 (dirty: 0, va
(53) vector catch (/32): 0x00000000 (dirty: 0, valid: 0)
poll
target state: running