summaryrefslogtreecommitdiff
path: root/hidflash.py
diff options
context:
space:
mode:
Diffstat (limited to 'hidflash.py')
-rwxr-xr-xhidflash.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/hidflash.py b/hidflash.py
index a9df48c..a5b4197 100755
--- a/hidflash.py
+++ b/hidflash.py
@@ -13,6 +13,9 @@ for segment in sorted(e.iter_segments(), key = lambda x: x.header.p_paddr):
if segment.header.p_type != 'PT_LOAD':
continue
+ if segment.header.p_paddr >= 0x20000000:
+ continue
+
data = segment.data()
lma = segment.header.p_paddr