Re: [OpenOCD-devel] can custom commands return values?

2018-02-27 Thread Tim Newsome
Thanks for the explanation! Tim On Tue, Feb 27, 2018 at 12:03 AM, Paul Fertser wrote: > On Mon, Feb 26, 2018 at 12:22:58PM -0800, Tim Newsome wrote: > > > set challenge [riscv authdata_read] > > > > Please try ocd_riscv there. > > > > That works. Thank you. > > Welcome :) > > > How does it

Re: [OpenOCD-devel] can custom commands return values?

2018-02-27 Thread Paul Fertser
On Mon, Feb 26, 2018 at 12:22:58PM -0800, Tim Newsome wrote: > > set challenge [riscv authdata_read] > > Please try ocd_riscv there. > > That works. Thank you. Welcome :) > How does it work? The command prints out a value to the user. Is that being > parsed as a string somehow? Everything

Re: [OpenOCD-devel] can custom commands return values?

2018-02-26 Thread Tim Newsome
On Fri, Feb 23, 2018 at 2:08 PM, Paul Fertser wrote: > Hello, > > On Fri, Feb 23, 2018 at 01:53:02PM -0800, Tim Newsome wrote: > > set challenge [riscv authdata_read] > > Please try ocd_riscv there. > That works. Thank you. How does it work? The command prints out a value to the user. Is that be

Re: [OpenOCD-devel] can custom commands return values?

2018-02-23 Thread Paul Fertser
Hello, On Fri, Feb 23, 2018 at 01:53:02PM -0800, Tim Newsome wrote: > set challenge [riscv authdata_read] Please try ocd_riscv there. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercer...@gmail.com -

[OpenOCD-devel] can custom commands return values?

2018-02-23 Thread Tim Newsome
I’d like to include something like this in my config script: set challenge [riscv authdata_read] riscv authdata_write [expr $challenge + 1] Where riscv authdata_read is a command defined in my through a command_registration struct. I can’t see how I can return the value so that set sees it, thoug