Hi,
I have a problem halting LPC2106 using interface Presto, with all openocd
versions except 0.1.0. With the old version and the openocd.cfg file below
it works perfectly, however, in any newer version I get the error message
“Target not halted” “Timeout halting target”. I had to remove the line
“jtag arp_init-reset” which does not obey the new syntax, I do not exactly
know what its replacement should be or if it is crucial.
I am not sure if I am just missing something in the .cfg for the new versions
of openocd or if it is a bug.
Thanks in advance for hints,
Jiri
openocd.cfg:
interface presto
#interface parport
#parport_cable wiggler
# LPC2106 ARM7TDMI-S 7.3728 MHz crystal
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME lpc2106
}
if { [info exists ENDIAN] } {
set _ENDIAN $ENDIAN
} else {
set _ENDIAN little
}
if { [info exists CPUTAPID ] } {
set _CPUTAPID $CPUTAPID
} else {
set _CPUTAPID 0x4f1f0f0f
}
jtag_khz 300
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
reset_config srst_only srst_pulls_trst
# propojene resety - neni mozne udelat halt pri resetu
#init_reset run
jtag arp_init-reset
#jtag_device 4 0x1 0xf 0xe
#daemon_startup reset
#target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
#run_and_halt_time 0 30
#arm7_9 dbgrq enable
#reset_config trst_only trst_open_drain
#init_reset halt
#jtag arp_init-reset
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s
# 64kB of internal SRAM
$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x10000 -work-area-backup 0
# 128kB of internal Flash, core clocked with 12MHz crystal
# flash bank lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc_checksum]
flash bank lpc2000 0x0 0x20000 0 0 0 lpc2000_v1 7373 calc_checksum