|
From: Ø. H. <oyv...@zy...> - 2008-04-22 17:02:51
|
On Tue, Apr 22, 2008 at 4:32 PM, Ville Voipio <vil...@kp...> wrote: > > > OpenOCD stores state in global variables that is set up during startup & > > modified by commands. > > > > That is true, and that is very important in multi-client environment. > > But what I am in the need of is just this: > > - OpenOCD as is > - no gdb server > - telnet replaced by a single fixed console with stdin/stdout/stderr > > Surely, this would only be a simplification? The point is to toss the > telnet and use the same interface directly. This way OpenOCD would become > much easier to use from external scripts. That should be straightforward. I can see why you'd want to toss out telnet, less to worry about + also, you'd want to define the input/output syntax a bit more so you can, programatically, tell whether or not a command failed. Telnet is for humans(it's actually a kind of a GUI), a tty interface would be intended for computers and the syntax should be tailored thus. > > So, what I want is that when I invoke OpenOCD, I can then send all commands > (and get all responses) from the same tty as the OpenOCD is running. As > happens with all sorts of command line tools. Of course we'd want to write up a tcl & python example on how to use it from a script. > > - Ville > -- Øyvind Harboe http://www.zylin.com - eCos ARM & FPGA developer kit |