add support of ExtendedLinearAddressRecord and add start address handling and parsing of non-contiguous memory maps (#11) #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Follow the title.
Now the ExtendedLinearAddressRecord was supported, non-continuous region generated multiple dfu elements.
The PR and code was not perfect but hope my work can help.
Motivation and Context
I'm generating a DFU from a hex, but when I flash my device, that doesn't work. It's due to ExtendedLinearAddressRecord was not supported and also my hex have non-contiguous memory.
How Has This Been Tested?
Generate the DFU with St tool and compare the dfu generated with wxHexEditor
Screenshots
Left DFU generate with ST
Right DFU generated with the tool
Before modification


after modification

Types of changes
Checklist:
I will read this Checklist When I have free time to do this. Thank you for your understanding