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 "0x54011000 + $reg_num * 4"] 1 >> >> >> > And testing this it turns out to really be > > ocd_mem2array dataval 32 [expr "0x54011000 + $reg_num * 4"] 1 > > > Yes, as I said, ocd_mem2array works, because it calls jim_mem2array which passes argc=5 to target_mem2array, and target_mem2array expects argc to equal 5. Its when target_mem2array is called by tcl_target_func that argc = 4 that the call fails. Even though it has been called with the correct parameters.
This is a bug. The question is, is the correct fix to make jim_mem2array call target_mem2array with argc=4, like tcl_target_func does, or should tcl_target_func be calling like jim_mem2array does. _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development