MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / programChip

Method programChip

src/octoprint/util/avr_isp/ispBase.py:8–18  ·  view source on GitHub ↗
(self, flashData)

Source from the content-addressed store, hash-verified

6
7class 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):

Callers 1

mainFunction · 0.80

Calls 5

getSignatureMethod · 0.95
chipEraseMethod · 0.95
IspErrorClass · 0.85
writeFlashMethod · 0.80
verifyFlashMethod · 0.80

Tested by

no test coverage detected