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

[Bug]: svdconv generates wrong __VTOR_PRESENT when optional vtorPresent is absent from *.svd #152

Open
3 of 13 tasks
joshuanekl-skyworks opened this issue Jul 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@joshuanekl-skyworks
Copy link

joshuanekl-skyworks commented Jul 9, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

According to the Open-CMSIS-SVD spec for the vtorPresent field "If not specified, then VTOR is assumed to be present."
If a *.svd file with <cpu><name>CM33</name> ... is lacking a <vtorPresent> field, the following output is generated.
#define __VTOR_PRESENT 0 /*!< Set to 1 if CPU supports Vector Table Offset Register

Expected Behavior

If vtorPresent is absent from *.svd, I would expect the following
#define __VTOR_PRESENT 1 /*!< Set to 1 if CPU supports Vector Table Offset Register

Steps To Reproduce

No response

Affected tools

  • cbuild
  • cbuild-gen
  • cpackget
  • csolution
  • packchk
  • svdconv

Affected operating systems

  • Windows amd64
  • Windows arm64
  • Linux amd64
  • Linux arm64
  • MacOS amd64
  • MacOS arm64

Environment

No response

@joshuanekl-skyworks joshuanekl-skyworks added the bug Something isn't working label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants