(self, flashData)
| 6 | |
| 7 | class IspBase(): |
| 8 | def programChip(self, flashData): |
| 9 | self.curExtAddr = -1 |
| 10 | self.chip = chipDB.getChipFromDB(self.getSignature()) |
| 11 | if self.chip == False: |
| 12 | raise IspError("Chip with signature: " + str(self.getSignature()) + "not found") |
| 13 | self.chipErase() |
| 14 | |
| 15 | print("Flashing %i bytes" % len(flashData)) |
| 16 | self.writeFlash(flashData) |
| 17 | print("Verifying %i bytes" % len(flashData)) |
| 18 | self.verifyFlash(flashData) |
| 19 | |
| 20 | #low level ISP commands |
| 21 | def getSignature(self): |
no test coverage detected