On Mon, Jun 14, 2010 at 1:23 PM, Jon Povey <[email protected]> wrote:
> The -c switch is not working for me, for any command I throw at it. Am I 
> missing something obvious?
>
> I tried a quick bit of gdb but it disappears into the TCL code and I got 
> scared.
>
> $ openocd -c halt
> Open On-Chip Debugger 0.5.0-dev-00274-ge212cf3 (2010-05-31-11:58)
> Licensed under GNU GPL v2
> For bug reports, read
>        http://openocd.berlios.de/doc/doxygen/bugs.html
> Runtime error, file "command.c", line 654:
>    invalid command name "halt"

You have to have -c init as the first command on the command line, to
switch from configuration mode to .. well, the other one. It's all
rather obvious from the helpful error message, don't you think?

/Andreas

(I once started work on a patch to remove all error messages like the
one above. Printing a reference to the line in the source file where
the tcl interpreter is called to execute the command (or whatever it
is) makes no sense at all. Unfortunately I got lost in the internal
dependencies of Jim so I dropped it rather quickly. If someone could
give me some hints I might feel inclined to give it another shot.)
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to