I am debugging embedded system board (LPC2210 MCU) with OpenOCD. Why I
cann't halt the target, though I use the command halt? After that, when
I "poll" it, it always says target state: running. What's the problem.
Actually I want to download my program into the external flash
SST39VF160 (LPC2210 is flashless). Would someone tell me whether OpenOCD
surpport programming SST39VF160? Here's the link to the datasheet. I am
not sure, though it says
"Common Flash Memory Interface (CFI)
The SST39LF160 and SST39VF160 also contain the CFI
information to describe the characteristics of the device.
In order to enter the CFI Query mode, the system must
write three-byte sequence, same as product ID entry
command with 98H (CFI Query command) to address
5555H in the last byte sequence. Once the device enters
the CFI Query mode, the system can read CFI data at the
addresses given in Tables 5 through 7. The system must
write the CFI Exit command to return to Read mode from
the CFI Query mode.".
When I try "flash probe 0", it always fails. And on the command prompt
window, a warning message says "target not halted".
Here's my configuration file. I am sure the base address and the size
are correct. I use a wiggler JTAG, connecting a PC(window XP OS) and my
board via parallel port. The board is OK.
#use combined on interfaces or targets that can't set TRST/SRST
reset_config trst_and_srst srst_pulls_trst
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30
working_area 0 0x40000000 0x4000 nobackup
#flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
flash bank cfi 0x80000000 0x200000 2 2 0
# For more information about the configuration files, take a look at: