bsl.invertRST = 1
bsl.invertTEST = itest
+ if(os.environ.get("platform")=='telosb'):
+ bsl.swapRSTTEST = 1
+ bsl.telosI2C = 1
+ mayuseBSL = 0
+
if comPort is None and os.environ.get("GOODFET")!=None:
glob_list = glob.glob(os.environ.get("GOODFET"));
if len(glob_list) > 0:
from scanwin32 import winScan;
scan=winScan();
for order,comport,desc,hwid in sorted(scan.comports()):
- if hwid.index('FTDI')==0:
- comPort=comport;
- #print "Using FTDI port %s" % port
-
-
+ try:
+ if hwid.index('FTDI')==0:
+ comPort=comport;
+ #print "Using FTDI port %s" % port
+ except:
+ #Do nothing.
+ a=1;
sys.stderr.write("MSP430 Bootstrap Loader Version: %s\n" % VERSION)
try:
"swap-reset-test", "telos-latch", "telos-i2c", "telos", "telosb",
"tmote","no-BSL-download", "force-BSL-download", "slow",
"dumpivt", "dumpinfo", "fromweb",
- "goodfet30", "goodfet20", "goodfet10"
+ "goodfet40", "goodfet30", "goodfet20", "goodfet10",
+ "nhbadge", "nhbadgeb", "goodfet"
]
)
except getopt.GetoptError:
elif o in ("--goodfet30", ):
bsl.invertRST = 1
bsl.invertTEST = 0
+ elif o in ("--goodfet40", ):
+ bsl.invertRST = 1
+ bsl.invertTEST = 1
+ elif o in ("--goodfet", ):
+ bsl.invertRST = 1
+ bsl.invertTEST = 1
+ elif o in ("--nhbadge", "--nhbadgeb" ):
+ bsl.invertRST = 1
+ bsl.invertTEST = 1
elif o in ("--telosb", ):
bsl.swapRSTTEST = 1
bsl.telosI2C = 1