Forum: ARM programming with GCC/GNU tools Why I can not halt the target?

Author: Kevin Zhu (volunteer)
Posted on:

Rate this post
0 useful
not useful
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.

#daemon configuration
telnet_port 4444
gdb_port 3333

interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 0

#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
jtag_nsrst_delay 333
jtag_ntrst_delay 333

#target configuration
daemon_startup reset

#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 configuration
#flash bank lpc2000 0x0 0x40000 0 0 lpc2000_v1 0 14765 calc_checksum
disabled bykevinzhu
flash bank cfi 0x80000000 0x200000 2 2 0

# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=O...

Author: Fordp (Guest)
Posted on:

Rate this post
0 useful
not useful
The OpenOCD forum is here :-


Good Luck.


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.