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

Please check svd validity against CMSIS-SVD.xsd #129

Open
plaes opened this issue Nov 26, 2024 · 0 comments
Open

Please check svd validity against CMSIS-SVD.xsd #129

plaes opened this issue Nov 26, 2024 · 0 comments

Comments

@plaes
Copy link

plaes commented Nov 26, 2024

While CMSIS standard defines the format for the SVD files, it also comes with tools to check the validity SVD files.

Validator can be fetched from the official CMSIS' devtools repository and the CMSIS-SVD schema validation specification can be found from ARM's CMSIS_5 repository under CMSIS/Utilities/CMSIS-SVD.xsd.

Having valid SVD files as source can reduce the burden of inventing hacks in tooling using SVD's as source of thruth.

Also, it's possible to check validity of SVD files using xmllint from libxml2 package on most Linux distributions:
xmllint --noout --schema CMSIS-SVD.xsd nrf-random-file.svd

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

No branches or pull requests

1 participant