Remove all occurrences of 'mem2array' and 'array2mem'
[fw/openocd] / tcl / board / at91cap7a-stk-sdram.cfg
index 8a371e064b3115809a7159372f2ff572802b5ee4..182a4067f9aa332000135ce83be5b7ae46b65f89 100644 (file)
@@ -32,8 +32,7 @@ $_TARGETNAME configure -event reset-start {
 }
 
 proc peek32 {address} {
-       mem2array t 32 $address 1
-       return $t(0)
+       return [read_memory $address 32 1]
 }
 
 # Wait for an expression to be true with a timeout