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

On Fri, Oct 31, 2008 at 11:26 AM, Rick Altherr <[EMAIL PROTECTED]> wrote:

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

I've jut upgraded openocd, in hopes of finally pulling off a working
setup.

Some of the commands have dissappeared, notably,

#run_and_halt_time 0 30

#soft_reset_halt

#poll



Do I need these?  Does anyone have a current file for programming an
.elf into a lpc2138 with no reset lines connected? That's pretty much
my setup.  All my examples, and the ones in svn are either horribly
out of date, or expect a reset pin, and the docs all appear to be from 2006. I know we've been doing alot of changes lately, and I'd like to
be back in sync.

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


The top-of-tree SVN config files are definitely up to date since I just
updated them all to the newest syntax this week.

As for the deprecated/obsolete commands, run_and_halt_time is now:

reset run
sleep 100
halt

poll and soft_reset_halt still exist.

If you have no reset lines connected, you probably want to use 'reset_config
none' as well.

Is there a way to disable or otherwise kill some commands, then,
because I'm getting this:

Best,
Steve

User:    53 1 command.c:607 openocd_jim_vfprintf(): Runtime error,
file "?", line 1:
User:    54 1 command.c:607 openocd_jim_vfprintf():     Unknown
command: reset_run
User:    55 1 command.c:607 openocd_jim_vfprintf(): In procedure
'script' called at file "command.c", line 436
User:    56 1 command.c:607 openocd_jim_vfprintf(): In procedure
'reset' called at file
"/home/steve/projects/include/arm/lpc2xxx_armusbocd.cfg", line 23
User:    57 1 command.c:607 openocd_jim_vfprintf(): In procedure
'unknown' called at file "?", line 1
gmake: *** [program] Error 1

User: 58 102 command.c:607 openocd_jim_vfprintf(): Unknown command: halt
User:    59 102 command.c:607 openocd_jim_vfprintf(): In procedure
'script' called at file "command.c", line 436
gmake: *** [program] Error 1

User:    78 102 command.c:607 openocd_jim_vfprintf():     Unknown
command: soft_reset_halt
User:    79 102 command.c:607 openocd_jim_vfprintf(): In procedure
'script' called at file "command.c", line 436
gmake: *** [program] Error 1

User: 78 101 command.c:607 openocd_jim_vfprintf(): Unknown command: poll
User:    79 101 command.c:607 openocd_jim_vfprintf(): In procedure
'script' called at file "command.c", line 436
gmake: *** [program] Error 1
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


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.
--
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