From 73ac700c6fdf2ba549fead791c60ae94949c4d7d Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 30 Jun 2015 15:29:27 +0200 Subject: [PATCH] Fix gdb.py to program last chunk of a memory range --- scripts/gdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gdb.py b/scripts/gdb.py index ed0b4e2..eb28ed8 100644 --- a/scripts/gdb.py +++ b/scripts/gdb.py @@ -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):