mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 11:09:01 +00:00
New debug messages
This commit is contained in:
parent
def164fbd4
commit
c388d0837c
@ -97,3 +97,13 @@ class DebugLink(object):
|
||||
|
||||
def stop(self):
|
||||
self._call(proto.DebugLinkStop(), nowait=True)
|
||||
|
||||
def memory_read(self, address, length):
|
||||
obj = self._call(proto.DebugLinkMemoryRead(address=address, length=length))
|
||||
return obj.memory
|
||||
|
||||
def memory_write(self, address, memory, flash=False):
|
||||
self._call(proto.DebugLinkMemoryWrite(address=address, memory=memory, flash=flash), nowait=True)
|
||||
|
||||
def flash_erase(self, sector):
|
||||
obj = self._call(proto.DebugLinkFlashErase(sector=sector), nowait=True)
|
||||
|
Loading…
Reference in New Issue
Block a user