From 32cd2608110971bb8591f4bc92e7cbdf7512fbcd Mon Sep 17 00:00:00 2001 From: travisutk Date: Fri, 4 Feb 2011 01:29:04 +0000 Subject: [PATCH] Minor cleanup on MSP430 client. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@882 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFETMSP430.py | 4 +++- client/goodfet.msp430 | 11 +++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/client/GoodFETMSP430.py b/client/GoodFETMSP430.py index 0ef833c..e7cc368 100644 --- a/client/GoodFETMSP430.py +++ b/client/GoodFETMSP430.py @@ -11,8 +11,10 @@ from GoodFET import GoodFET; class GoodFETMSP430(GoodFET): #Set APP to be MSP430APP or MSP430X2APP, the latter being preferred. + + #0x16 for class, 0x17 for SBW, 0x11 by default APP=0x11; - MSP430APP=0x11; #Changed by inheritors. + MSP430APP=0x11; CoreID=0; DeviceID=0; diff --git a/client/goodfet.msp430 b/client/goodfet.msp430 index b509ea1..b606edc 100755 --- a/client/goodfet.msp430 +++ b/client/goodfet.msp430 @@ -26,16 +26,15 @@ if(len(sys.argv)==1): client=GoodFETMSP430(); client.serInit() -#Connect to target client.setup(); -#print "setup" - -#Identify model number. client.start(); +if(sys.argv[1]=="starttest"): + for foo in range(1,10): + client.start(); if(sys.argv[1]=="info"): - print "Model %08x " % client.MSP430deviceid(); - print "Core %04x " % client.MSP430coreid(); + #print "Model %08x " % client.MSP430deviceid(); + #print "Core %04x " % client.MSP430coreid(); #print "Identity %04x" % client.MSP430ident(); print "Identifies as %s (%04x)" % ( client.MSP430identstr(), -- 2.20.1