Re: [Openocd-development] mem2array command fails in event handler

2010-02-21 Thread David Brownell
On Saturday 20 February 2010, Rolf Meeser wrote:
> A target script defines a "reset-end" handler. In this handler I need to read 
> a few words from target memory. When I try to use "ocd_mem2array", the 
> command fails with
> Error: 357 1442 target.c:3106 jim_mem2array(): mem2array: no command context

Can you do that stuff in other handlers, or is it just "reset-end"?

I recall folk reporting other cases where a "no command context"
error is now rather mysteriously appearing...

Also, did that work in the 0.3.1 release?



___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


[Openocd-development] mem2array command fails in event handler

2010-02-20 Thread Rolf Meeser
Hi,

I hope that somebody can help with this problem:

A target script defines a "reset-end" handler. In this handler I need to read a 
few words from target memory. When I try to use "ocd_mem2array", the command 
fails with
Error: 357 1442 target.c:3106 jim_mem2array(): mem2array: no command context

The same command works fine on the telnet prompt.

Is this command supposed to work in the "reset-end" event handler?
If not, is there an alternative?
I've tried mdw, but this seems to just print the values, not return them as a 
result.

Recently there has been a similar complaint from Alexei about the "mcr"/"mrc" 
commands, but I haven't seen a solution for it. Those commands are jim_handler 
commands just like mem2array.

Regards,
Rolf



__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development