EmbDev.net

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


von Kevin Z. (volunteer)


Rate this post
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
interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 0

#use combined on interfaces or targets that can't set TRST/SRST
separately
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=Open+On-Chip+Debugger

von Fordp (Guest)


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

http://www.sparkfun.com/cgi-bin/phpbb/viewforum.php?f=18

Good Luck.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.