Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for an existing data listing before attempting to add one #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eShuttleworth
Copy link

When attempting to apply an SVD to a Nordic nRF52, the loader fails due to conflicting data at some of the peripheral addresses. Turns out that Nordic lists multiple peripherals as having the same base address and (I think) allows one to switch between them based on context or something. In any case, checking for an existing data listing before adding one fixes this.

Resulting listing view:

Result

@eShuttleworth
Copy link
Author

I think this resolves #1?

@IrshadJS
Copy link

This does fix the issue with the nrf52 SVD file. Thank you @eShuttleworth

@brainstorm
Copy link

So? Merge? :)

@rpavlik
Copy link
Contributor

rpavlik commented Feb 21, 2021

Ah, so that's why. Could it be listed as an "overlay" region? Interestingly, with the nrf51 SVD, I still needed to put an exception handler around this, even with the check.

@nezza
Copy link
Collaborator

nezza commented Feb 23, 2021

Thanks a lot, will try this PR and merge if successful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants