Hi,

On Sat, Feb 22, 2014 at 11:02:14PM +0100, Andreas Ortmann wrote:
> I'm playing around with the TCL RPC (default port 6666) atm. The problem 
> is that I cannot get the output of commands like:
> 'mem2array outputArray 8 0x023223 1\x1a'
> in a convenient way by reading from the socket after sending the command.

Please see if http://openocd.zylin.com/#/c/1915/ helps (and feel free
to review). First, currently (I hope it'll be changed in the future)
to get the return values from most commands you need to prefix them
with ocd_; second, you can use "capture" command to have any log
output returned to you. The example program seems to be doing exactly
what you want: reading from target's memory, but it uses mdw.

HTH
-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to