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

[svd-parser] Better validation of unknown tokens #268

Open
Jatsekku opened this issue Jul 31, 2024 · 0 comments
Open

[svd-parser] Better validation of unknown tokens #268

Jatsekku opened this issue Jul 31, 2024 · 0 comments

Comments

@Jatsekku
Copy link

Today I was playing with svd-parser on hand-written svd files.
I made typo in derivedFrom (double 'r') but it went without errors.
After that I tried with this sample:

<!-- This is the sample of minimal, valid SVD file -->
<device schemaVersion="1.3" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="CMSIS-SVD.xsd">
  <name>Minimal SVD</name>
  <version>0.1</version>
  <description>This is syntetic example of minimal valid SVD file</description>
  <addressUnitBits>8</addressUnitBits>
  <width>32</width>
  <unknownEmptyToken></unknownEmptyToken>
  <peripherals>
    <peripheral>
        <unknownEmptyToken></unknownEmptyToken>
        <name> Bunny </name>
        <baseAddress>0x21370000</baseAddress>
    </peripheral>
  </peripherals>
</device>

But again - no errors.

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