Beispiel #1
0
 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")
Beispiel #2
0
 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 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")
Beispiel #4
0
 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"
         )
Beispiel #5
0
 def uploadData(self, startaddress, size):
     """upload a datablock"""
     if DEBUG > 1: sys.stderr.write("* uploadData()\n")
     return _parjtag.memread(startaddress, size)
Beispiel #6
0
 def uploadData(self, startaddress, size):
     """upload a datablock"""
     return _parjtag.memread(startaddress, size)
Beispiel #7
0
 def uploadData(self, startaddress, size):
     """Upload a datablock."""
     if DEBUG > 1: sys.stderr.write("* uploadData()\n")
     return _parjtag.memread(startaddress, size)