Re: [Openocd-development] mem2array - i cant get it to work :(

2009-05-17 Thread Dirk Behme
Strontium wrote: > Magnus Lundin wrote: >> Magnus Lundin wrote: >> >>> When I do this for the Beagle i just use >>> >>> # set the current target, should not be nexessary with only one target >>> configured >>> targets omap3.cpu >>> # call tcl functions without the extra target name >>> mem2arr

Re: [Openocd-development] mem2array - i cant get it to work :(

2009-05-13 Thread Strontium
Magnus Lundin wrote: > Magnus Lundin wrote: > >> When I do this for the Beagle i just use >> >> # set the current target, should not be nexessary with only one target >> configured >> targets omap3.cpu >> # call tcl functions without the extra target name >> mem2array dataval 32 [expr "0x54011

Re: [Openocd-development] mem2array - i cant get it to work :(

2009-05-13 Thread Magnus Lundin
Magnus Lundin wrote: > When I do this for the Beagle i just use > > # set the current target, should not be nexessary with only one target > configured > targets omap3.cpu > # call tcl functions without the extra target name > mem2array dataval 32 [expr "0x54011000 + $reg_num * 4"] 1 > > And t

Re: [Openocd-development] mem2array - i cant get it to work :(

2009-05-13 Thread Magnus Lundin
When I do this for the Beagle i just use # set the current target, should not be nexessary with only one target configured targets omap3.cpu # call tcl functions without the extra target name mem2array dataval 32 [expr "0x54011000 + $reg_num * 4"] 1 Regards Magnus Strontium wrote: > Hmm, > > S

Re: [Openocd-development] mem2array - i cant get it to work :(

2009-05-12 Thread Strontium
Hmm, So i looked into the code and it would appear to be a bug. ocd_mem2array is implemented via jim_mem2array which eventually calls target_mem2array. When this happens, I am pretty confident if ocd_mem2array works, that argc will be 5. BUT if I use omap3.cpu mem2array, this is implemented

[Openocd-development] mem2array - i cant get it to work :(

2009-05-12 Thread Strontium
Howdy, I have a script that goes: proc omap3_ReadDebugRegister { reg_num } { # read the value of the debug register reg_num at address reg_num << 2 omap3.cpu mem2array dataval 32 [expr "0x54011000 + $reg_num * 4"] 1 } It errors and crashes openocd with the following message: Runtime error,