Re: [OpenOCD-devel] tcl script

2015-02-20 Thread Paul Fertser
Hi, On Fri, Feb 20, 2015 at 04:31:13PM +, Kent Brinkley wrote: > I want to do something every simple in a tcl script, is there a way to extract > the contents of register. If I do ... > >reg r1 [expr [reg pc]] - to assign the contents of the pc to r1 it fails to > >do > so. Here's the trick:

Re: [OpenOCD-devel] tcl script

2015-02-20 Thread Tomas Vanek
This old post from Paul may help: On 11.9.2014 9:35, Paul Fertser wrote: On Sat, Sep 06, 2014 at 05:54:26AM +0200, Tomas Vanek wrote: And second one: how to read pc register in tcl? set pc_value [reg pc] does not work. set pc_value [ocd_reg pc] will probably work. Tomas On 20.2.2015 17:31,

Re: [OpenOCD-devel] stellaris unlock feature

2015-02-20 Thread Ed Beroset
Paul Fertser wrote: > Hello, > > On Thu, Feb 19, 2015 at 06:01:29PM -0500, Ed Beroset wrote: >> I have a Stellaris part that is locked and wanted to use OpenOCD to >> unlock it. I see that there is a "stellaris unlock 0" function >> available but it doesn't work because it only works after the par

Re: [OpenOCD-devel] tcl script

2015-02-20 Thread Duane Ellis
Not today. Solution: Add a sub command to the target object command, 1) re-impliment the handle_reg_command as a JIM command. http://sourceforge.net/p/openocd/code/ci/master/tree/src/target/target.c#l2444

[OpenOCD-devel] tcl script

2015-02-20 Thread Kent Brinkley
Hello, I want to do something every simple in a tcl script, is there a way to extract the contents of register. If I do > reg r1 r1 (/32): 0x94D3F5E8 >reg pc pc (/32): 0xBFC0 >reg r1 [expr [reg pc]] - to assign the contents of the pc to r1 it fails to do >so. > reg r1 r1 (/32): 0x94D3F5E8 W