On Oct 31, 2008, at 11:52 AM, Steve Franks wrote:

It would help to know what revision of the SVN repository you checked out. Either way, the first error is that you tried to call "reset_run" which
isn't a valid command.  You want "reset run".  Since that seems to be
originating from lpc2xxx_armusbocd.cfg, your target config isn't getting set completely. I don't know enough about how the commands are registered, but it could be possible that since your target config didn't run completely the target didn't get set which causes 'halt' to be not defined. That last part
is just a guess at this point.

First things first, fix the "reset_run" -> "reset run" and try it again.

The SVN is head as of this morning, what like 1117 or so?

I have no reset_run in my file, just reset run.  If you comment out
reset run, the error goes away, and it errors on poll, or
soft_reset_halt, or whatever comes next.

Just to get rid of the guesswork, my enitre file:
#daemon configuration

telnet_port 4444

gdb_port 3333



#interface

interface ft2232

ft2232_device_desc "Olimex OpenOCD JTAG A"

ft2232_layout "olimex-jtag"

ft2232_vid_pid 0x15BA 0x0003

jtag_speed 3



#use combined on interfaces or targets that can't set TRST/SRST separately

reset_config none



#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_init 0 arm7tdmi-s_r4


Technically this should work, but it is an older syntax. You might try changing to the new syntax:

target create target0 arm7tdmi -endianess little -chain-position 0 - variant arm7tdmi-s_r4



#reset run

sleep 100

#halt



working_area 0 0x40000000 0x4000 nobackup


This is older syntax as well. It should work, but you probably should change to something like:

target0 configure -work-area-virt 0 -work-area-phys 0x40000000 -work- area-size 0x4000 -work-area-backup 0




target_script 0 reset
/usr/home/steve/projects/include/arm/openocd_lpc2138_flash.script



New syntax:

target0 configure -event reset-init { script /usr/home/steve/projects/ include/arm/openocd_lpc2138_flash.script }


#flash bank lpc2000 <base> <size> 0 0 <target#> <variant>

flash bank lpc2000 0x0 0x7d000 0 0 0 lpc2000_v2 12000



#soft_reset_halt

poll



# For more information about the configuration files, take a look at:

# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger

Thanks,
Steve


Those changes shouldn't fix the problem. Looking at the backtrace more carefully, it appears that when you call reset in lpc2xx_armusbocd.cfg it is running your reset script openocd_lpc2138_flash.script. It's in that file that you are trying to call reset_run.

--
Rick Altherr
[EMAIL PROTECTED]

"He said he hadn't had a byte in three days. I had a short, so I split it with him."
 -- Slashdot signature


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to