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, file "script//omap3.tcl", line 11: wrong # args: should be "dataval varname width addr nelems" I cant see anything wrong with it, but obviously I have stuffed up somehow. Any suggestions on fixing it would be mightily appreciated. I will add processing to dataval after this, but until i can read dataval its a bit pointless. Strontium _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development