From b3846f31568f0bcb1656c0c800c54edacf27fad4 Mon Sep 17 00:00:00 2001 From: rnumsu Date: Mon, 29 Jan 2024 17:07:45 -0500 Subject: [PATCH] Missing IHEX_REC_STARTLINADDR check - In vstruct/defs/ihex.py getMemoryMaps, there is not a check for IHEX_REC_STARTLINADDR. The patch adds a check for this record type and skips over the chunk, similarly to IHEX_REC_STARTSEG. --- vstruct/defs/ihex.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vstruct/defs/ihex.py b/vstruct/defs/ihex.py index 0e3b4d9a9..6bec9c2a5 100644 --- a/vstruct/defs/ihex.py +++ b/vstruct/defs/ihex.py @@ -133,6 +133,9 @@ def getMemoryMaps(self): if ctype == IHEX_REC_EOF: break + if ctype == IHEX_REC_STARTLINADDR: + continue + raise Exception('Unhandled IHEX chunk: %s' % chunk.recordtype) memparts.sort()