Re: [Openocd-development] tcl_server TCP/IP commands usage?

2011-07-14 Thread Maxim Cournoyer
Give it a try, and feel free to report any problems. #!/usr/bin/tclsh8.5 # Simple tcl client to test OpenOCD tcl_server # # Original script idea by Charles Hardin # <http://lists.berlios.de/pipermail/openocd-development/2008-July/002368.html>

Re: [Openocd-development] tcl_server TCP/IP commands usage?

2011-07-07 Thread Maxim Cournoyer
Le mercredi 06 juillet 2011 à 18:50 -0700, Rodrigo Rosa a écrit : > On Mon, Jul 4, 2011 at 4:13 PM, Maxim Cournoyer > wrote: > > On Jul 2, 2011 6:15 PM +0200, Øyvind Harboe wrote: > > > > Use the Source Luke. The end of the command is not linefeed but 0x??. There >

Re: [Openocd-development] tcl_server TCP/IP commands usage?

2011-07-04 Thread Maxim Cournoyer
On Jul 2, 2011 6:15 PM +0200, Øyvind Harboe wrote: > Use the Source Luke. The end of the command is not linefeed but 0x??. > There ought to be updated docs. Patch? > Great tip! I found it inside the tcl_server.c file; the end of character used by the openocd tcl server is 0x1a. I managed to get

Re: [Openocd-development] tcl_server TCP/IP commands usage?

2011-07-02 Thread Maxim Cournoyer
On Sat, Jul 2, 2011 at 09:31 +0200, Øyvind Harboe wrote: > > You need to use the "capture" command to capture progress output. > > Try something like: > > capture {reset halt} > Hello Øyvind! Thank you for helping, but when using the port with the tcl script posted before, I confirm tha

Re: [Openocd-development] tcl_server TCP/IP commands usage?

2011-07-02 Thread Maxim Cournoyer
On Sat, Jul 2, 2011 at 05:36 -0700, Rodrigo Rosa wrote : > your script worked with port (telnet port) > (copy+paste and swap with ) I can confirm that this works (to my surprise! I don't know a lot about telnet, but was thinking something more was required then a simple "send" on a

Re: [Openocd-development] tcl_server TCP/IP commands usage?

2011-07-01 Thread Maxim Cournoyer
> i used a made a nasty pgm that connect through tcp to the openocd tcl > interface (port ), and to get openocd to do stuff i have send a \n > for example, "reset" will not do anything, but "reset\n" does what > it's supposed to do. > haven't tried the gdb port. > > salú! Hi there! Thank you

[Openocd-development] tcl_server TCP/IP commands usage?

2011-07-01 Thread Maxim Cournoyer
Hi all, I would like to know the details about controlling openocd via TCP/IP (port ). I have been experimenting with it, and I hope I'm doing something wrong, because it does not seem to work. I can connect to the openocd server, but any "command word" such as "reset" or "halt", sent has n