def actionEraseCheck(self): """check the erasure of required flash cells.""" sys.stderr.write("Erase Check by file ...\n") if self.data is not None: for seg in self.data: data = _parjtag.memread(seg.startaddress, len(seg.data)) if data != '\xff'*len(seg.data): raise JTAGException("Erase check failed") else: raise JTAGException("cannot do erase check against data with not knowing the actual data")
def actionVerify(self): """Verify programmed data""" if self.data is not None: sys.stderr.write("Verify ...\n") for seg in self.data: data = _parjtag.memread(seg.startaddress, len(seg.data)) if data != seg.data: raise JTAGException("Verify failed") else: raise JTAGException("verify without data not possible")
def actionEraseCheck(self): """Check the erasure of required flash cells. Erase check by file.""" sys.stderr.write("Erase Check by file...\n") if self.data is not None: for seg in self.data: data = _parjtag.memread(seg.startaddress, len(seg.data)) if data != '\xff' * len(seg.data): raise JTAGException("Erase check failed") else: raise JTAGException( "Cannot do erase check against data with not knowing the actual data" )
def uploadData(self, startaddress, size): """upload a datablock""" if DEBUG > 1: sys.stderr.write("* uploadData()\n") return _parjtag.memread(startaddress, size)
def uploadData(self, startaddress, size): """upload a datablock""" return _parjtag.memread(startaddress, size)
def uploadData(self, startaddress, size): """Upload a datablock.""" if DEBUG > 1: sys.stderr.write("* uploadData()\n") return _parjtag.memread(startaddress, size)