MSP430X2 code was intermingling by mistake.
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@157
12e2690d-a6be-4b82-a7b7-
67c4a43b65c8
return self.data[0];
def MSP430ident(self):
"""Grab self-identification word from 0x0FF0 as big endian."""
return self.data[0];
def MSP430ident(self):
"""Grab self-identification word from 0x0FF0 as big endian."""
if(self.JTAGID==0x89):
i=self.MSP430peek(0x0ff0);
ident=((i&0xFF00)>>8)+((i&0xFF)<<8)
if(self.JTAGID==0x89):
i=self.MSP430peek(0x0ff0);
ident=((i&0xFF00)>>8)+((i&0xFF)<<8)
i=self.MSP430peek(0x1A04);
ident=((i&0xFF00)>>8)+((i&0xFF)<<8)
#ident=0x0091;
i=self.MSP430peek(0x1A04);
ident=((i&0xFF00)>>8)+((i&0xFF)<<8)
#ident=0x0091;
return ident;
def MSP430test(self):
"""Test MSP430 JTAG. Requires that a chip be attached."""
return ident;
def MSP430test(self):
"""Test MSP430 JTAG. Requires that a chip be attached."""
//Entry sequence from Page 67 of SLAU265A for 4-wire MSP430 JTAG
CLRRST;
//Entry sequence from Page 67 of SLAU265A for 4-wire MSP430 JTAG
CLRRST;
if(jtagid==MSP430JTAGID){
jtag430mode=MSP430MODE;
drwidth=16;
if(jtagid==MSP430JTAGID){
jtag430mode=MSP430MODE;
drwidth=16;
+ jtag430_resettap();
+ txdata(app,verb,1);
+ return;
}else if(jtagid==MSP430X2JTAGID){
jtag430mode=MSP430X2MODE;
drwidth=20;
}else if(jtagid==MSP430X2JTAGID){
jtag430mode=MSP430X2MODE;
drwidth=20;