X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETCC.py;h=1f6b70a17caba4db5f0cc8b09a807e7133047652;hp=3be0ca45a1d98db813ae08b397e51db0d6c64bd7;hb=b573cc6c766c1640cf47159c1920f431df7f2d92;hpb=1f2a8a4593c69edd03f774a2df080103814faeae diff --git a/client/GoodFETCC.py b/client/GoodFETCC.py index 3be0ca4..1f6b70a 100644 --- a/client/GoodFETCC.py +++ b/client/GoodFETCC.py @@ -134,7 +134,7 @@ class GoodFETCC(GoodFET): self.lastshellcode=filename; file=__file__; file=file.replace("GoodFETCC.pyc","GoodFETCC.py"); - path=file.replace("client/GoodFETCC.py","shellcode/chipcon/cc1110/"); + path=file.replace("GoodFETCC.py","shellcode/chipcon/cc1110/"); filename=path+filename; #Load the shellcode. @@ -275,9 +275,6 @@ class GoodFETCC(GoodFET): self.pokebysym("ADDR" , 0x01) # Device address. self.pokebysym("PKTLEN" , 0xFF) # Packet length. - - - self.pokebysym("SYNC1",0xD3); self.pokebysym("SYNC0",0x91); return; @@ -690,7 +687,12 @@ class GoodFETCC(GoodFET): """Start debugging.""" self.setup(); self.writecmd(self.APP,0x20,0,self.data); - ident=self.CCidentstr(); + ident=self.CCident(); + if ident==0xFFFF or ident==0x0000: + self.writecmd(self.APP,0x20,0,self.data); + ident=self.CCident(); + + #print "Target identifies as %s." % ident; #print "Status: %s." % self.status(); self.CCreleasecpu();