On Monday 20 July 2009, Øyvind Harboe wrote: > > I want to write some tcl scripts, e.g. > > > set test [mdh 0xFFFFF800] > > 0xfffff800: 20 > > > set test > > > > > > > Why isn't the result saved in variable test? I'm a newbee in tcl so it > > might be a very basic problem. > > mdh is not used from tcl, it's only intended for humans. Look up mem2array > for peek & poke from Tcl.
Or: tcl/target/davinci.cfg has "mrw" (memory read word) which does what you want, with 32-bit words not 16-bit halfwords. Similar, but not much used for now, tcl/memory.tcl has memread16. _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
