This is very strange. I can program the Olimex sample project test (blinks LED’s in an alternating pattern each for 500ms) using the lpc21isp utility. However; when I try to do the equivalent operation with the wiggler JTAG I find that I cannot erase the flash.
my configuration is:openOCD rev 284.
#daemon configuration
telnet_port 4444
gdb_port 3333
interface parport
parport_cable wiggler
jtag_speed 0
reset_config trst_and_srst
#jtag scan chain
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
#flash working_area 0 0x00000000 0x400000 nobackup
working_area 0 0x40000000 0x40000 nobackup
flash bank lpc2000 0x0 0x7D000 0 0 0 lpc2000_v2 0 12000 calc_checksum
The commands and responses from the telent localhost 4444 session are:
> halt
requesting target halt...
target already halted
> mdd 0 32
Command mdd not found
> mdw 0 32
0x00000000: e59ff018 e59ff018 e59ff018 e59ff018 e59ff018 b9205f84 e51ffff0 e59ff014
0x00000020: 00000040 000002e0 000002cc 000002e0 000002e0 000002a4 000002b8 00000000
0x00000040: e59f0078 e321f0db e1a0d000 e2400004 e321f0d7 e1a0d000 e2400004 e321f0d1
0x00000060: e1a0d000 e2400004 e321f0d2 e1a0d000 e2400004 e321f0d3 e1a0d000 e2400004
> flash erase 0 0 1
erased sectors 0 through 1 on flash bank 0 in 0s 81559us
> mdw 0 32
0x00000000: e59ff018 e59ff018 e59ff018 e59ff018 e59ff018 b9205f84 e51ffff0 e59ff014
0x00000020: 00000040 000002e0 000002cc 000002e0 000002e0 000002a4 000002b8 00000000
0x00000040: e59f0078 e321f0db e1a0d000 e2400004 e321f0d7 e1a0d000 e2400004 e321f0d1
0x00000060: e1a0d000 e2400004 e321f0d2 e1a0d000 e2400004 e321f0d3 e1a0d000 e2400004
I expected to see F’s. If I can’t erase the flash I will not be able to program my own code into it. Any help / advice welcome
Thanks
–mgross