Remove all occurrences of 'mem2array' and 'array2mem'
[fw/openocd] / tcl / target / stm32wlx.cfg
index fafe9bcbacdc8a15b7a163974c270fe17f23e9c5..75f6f0288d51703a971543c4a648328460a07753 100644 (file)
@@ -156,9 +156,7 @@ proc stm32wlx_get_chipname {} {
 
 # like mrw, but with target selection
 proc stm32wlx_mrw {used_target reg} {
-       set value ""
-       $used_target mem2array value 32 $reg 1
-       return $value(0)
+       return [$used_target read_memory $reg 32 1]
 }
 
 # like mmw, but with target selection