Browse Source

dump parsing: refuse to continue on incomplete D23 dumps

We should try harder to handle incomplete D21/D23 dumps in the future,
but until D21 handled too, bail in D23 as well.
Yuri D'Elia 3 years ago
parent
commit
11a6ac2f4f
1 changed files with 4 additions and 3 deletions
  1. 4 3
      tools/lib/dump.py

+ 4 - 3
tools/lib/dump.py

@@ -137,9 +137,10 @@ def decode_dump(path):
         # check if the dump is complete
         if len(ranges) != 1 or ranges[0][0] != 0 or \
            ranges[0][1] != avr.SRAM_START + avr.SRAM_SIZE:
-            print('warning: incomplete D23 dump', file=sys.stderr)
-        else:
-            regs = True
+            print('error: incomplete D23 dump', file=sys.stderr)
+            return None
+
+        regs = True
         if reason is None:
             print('warning: no error line in D23', file=sys.stderr)