def actionMainErase(self): """Erase the MAIN flash memory, leave the INFO mem""" sys.stderr.write("Erase Main Flash...\n") _parjtag.memerase(ERASE_MAIN, 0xfffe)
def __call__(self): sys.stderr.write("Erase Segment @ 0x%04x...\n" % self.address) _parjtag.memerase(ERASE_SGMT, self.address)
def eraseSegment(self, address, length ): """Selective segment erase""" _parjtag.memerase( ERASE_SGMT, address, length )
def actionMassErase(self): """Erase the flash memory completely (with mass erase command)""" sys.stderr.write("Mass Erase...\n") _parjtag.memerase(ERASE_MASS)
def actionMainErase(self): """Erase the MAIN flash memory, leave the INFO mem""" if self.verbose: sys.stderr.write("Erase Main Flash...\n") sys.stderr.flush() _parjtag.memerase(ERASE_MAIN, 0xfffe)
def __call__(self): if self.verbose: sys.stderr.write("Erase Segment @ 0x%04x...\n" % self.address) sys.stderr.flush() _parjtag.memerase(ERASE_SEGMENT, self.address)
def actionMassErase(self): """Erase the flash memory completely (with mass erase command).""" if self.verbose: sys.stderr.write("Mass Erase...\n") _parjtag.memerase(ERASE_ALL)