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.
This commit is contained in:
Yuri D'Elia 2021-06-22 17:08:32 +02:00 committed by DRracer
parent 500515eb0a
commit 11a6ac2f4f

View File

@ -137,8 +137,9 @@ 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:
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)