Trying chinese in MSP430 client. Localization to come later.
[goodfet] / client / GoodFETConsole.py
index fa40031..3612007 100644 (file)
@@ -11,6 +11,23 @@ import binascii;
 from GoodFET import GoodFET;
 from intelhex import IntelHex;
 
+
+#grep CMD GoodFETConsole.py | grep def | sed s/\(sel.\*// | sed 's/def CMD//'
+commands="""
+    info
+    lock
+    erase
+    test
+    status
+    halt
+    resume
+    peek
+    flash
+    dump
+    where
+    chip
+"""
+
 class GoodFETConsole():
     """An interactive goodfet driver."""
     
@@ -82,8 +99,8 @@ class GoodFETConsole():
         adr= self.client.name2adr(adr);
         #print "%i" % adr;
         print "0x%08x:= 0x%04x" % (
-            adr, self.client.peek16(adr,
-                                    memory));
+            adr, self.client.peekword(adr,
+                                  memory));
     def CMDflash(self,args):
         file=args[1];
         self.client.flash(self.expandfilename(file));