4bf9aa30f1f711aec8a638cef44ccd9ccda9f0e7
[goodfet] / client / goodfet
1 #!/usr/bin/env python
2 # GoodFET Debugger
3
4 # (C) 2009 Travis Goodspeed <travis at radiantmachines.com>
5 #
6 # This code is being rewritten and refactored.  You've been warned!
7
8 import sys, os, readline, code, binascii;
9 import rlcompleter;
10
11 import GoodFET;
12 from GoodFET.GoodFETConsole import GoodFETConsole;
13 #from GoodFET import *;
14
15 from intelhex import IntelHex;
16
17 if(len(sys.argv)==1):
18     print "Usage: %s driver\n" % sys.argv[0];
19     print "driver:= GoodFETCC GoodFETMSP430";
20     print;
21     print "This is an unfinished client.  You probably want goodfet.$chip instead.";
22     sys.exit(1);
23
24 driver=sys.argv[1];
25 print "Using driver %s" % driver;
26 #client=eval("%s()" % driver);
27 client=GoodFET.getClient(driver);
28 console=client.getConsole();
29 console.run();
30
31 sys.exit(0);