Merge pull request #244 from schodet/gdb-py-fix

Fix gdb.py to program last chunk of a memory range
This commit is contained in:
Gareth McMullin 2017-06-18 15:02:33 -07:00 committed by GitHub
commit 63a2e74948
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ class Target:
def flash_write_prepare(self, address, data):
for m in self.mem:
if (address >= m.offset) and (address + len(data) < m.offset + m.length):
if (address >= m.offset) and (address + len(data) <= m.offset + m.length):
m.prog(address, data)
def flash_commit(self, progress_cb=None):