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

fixed chained derivedfrom in NXP svds #97

Closed
wants to merge 0 commits into from

Conversation

Jegeva
Copy link

@Jegeva Jegeva commented Feb 27, 2020

linked to issue #96

this fixes the daisy chaining of derivedFrom in the data but doesn't fix the underlying issue.

@posborne
Copy link
Collaborator

posborne commented Mar 2, 2020

In general, we do not patch the SVD files themselves here but use them directly from vendors. If we believe there is a problem with the library that's where we should try to find a patch. If you can recreate the failure in a unit test that would be a good first step.

@Jegeva
Copy link
Author

Jegeva commented Mar 2, 2020

@posborne

here you go :

#! /usr/bin/python3
import sys

sys.path = ["./cmsis-svd/python/"] + sys.path
import cmsis_svd
from cmsis_svd.parser import SVDParser
parser = SVDParser.for_packaged_svd('NXP', 'LPC178x_7x' + '.svd')
for p in parser.get_device().peripherals:
    for r in p.registers:
            rname = r.name

This is just recreating the crash, i'll look into the test file

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.

None yet

2 participants