X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETAVR.py;h=dc143cca405b6398062e3a1c6272d6ab8c52c817;hp=f8189bf57cb3aa09c75fb10944f54fab31af3dd0;hb=105419853423fb0f37ac30db8d730ec9ab4f3cd9;hpb=1a28f22ced715fe03fd4a6dc6077c951f4b7efa2 diff --git a/client/GoodFETAVR.py b/client/GoodFETAVR.py index f8189bf..dc143cc 100644 --- a/client/GoodFETAVR.py +++ b/client/GoodFETAVR.py @@ -80,6 +80,9 @@ class GoodFETAVR(GoodFET): 0x9302: "ATmega85", 0x9305: "ATmega83", 0x9601: "ATmega603", + + #These are missing from the Fenceline DB. + 0x960a: "ATmega644P", }; def setup(self): @@ -116,7 +119,8 @@ class GoodFETAVR(GoodFET): """Read the target's lockbits.""" self.writecmd(self.AVRAPP,0x92,1,[bits]); return self.lockbits(); - + def lock(self): + self.setlockbits(0xFC); def eeprompeek(self, adr): """Read a byte of the target's EEPROM.""" self.writecmd(self.AVRAPP,0x81 ,2,