When flashing the LPC2106, it correctly writes the first 1024 (0x400) locations but doesn’t write anything after that. The openocd error is:
“Warning: lpc2000.c:599 lpc2000_write(): lpc2000 returned 6”
I’m using a Olimex OpenOCD JTAG TINY.
The openocd,cfg:
#daemon configuration
telnet_port 4444
gdb_port 3333
interface ft2232
ft2232_device_desc “Olimex OpenOCD JTAG TINY”
ft2232_layout “olimex-jtag”
ft2232_vid_pid 0x15ba 0x0004
jtag_speed 5
reset_config trst_and_srst separate
#jtag scan chain
jtag_device 4 0x1 0xf 0xe
jtag_nsrst_delay 2000
jtag_ntrst_delay 2000
#target configuration
daemon_startup reset
target arm7tdmi little run_and_init 0 arm7tdmi-s_r4
run_and_halt_time 0 30
#target_script 0 reset openocd_lpc2103_flash.script
working_area 0 0x40000000 0x8000 nobackup
#flash configuration
LPC2103 8kB SRAM 32kB flash
#flash bank lpc2000 0x0 0x8000 0 0 0 lpc2000_v2 14745 calc_checksum
#LPC2106 128K flash
flash bank lpc2000 0x0 0x20000 0 0 0 lpc2000_v2 14745 calc_checksum
The flash is successful on the LPC2103.
If the LPC2106 card defective?
Thanks