SVD2ADA generates enumeration with duplicate values
Nobody has claimed this yet.
- Dominant language
- Ada
- Stars
- 71
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
After generating and compiling the code generated from the enclosed SVD file, the Ada compiler flagged an error because two of the names in an enumeration had the same value. I worked around the error by deleting the name from the enum and returning it from a function as an alias to the other name with the same value.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing generation and Ada compilation with the attached LPC176x - 5x SVD.zip and inspect the generated enumeration containing duplicate values. Confirm the expected handling of same-valued names, then verify the generated Ada compiles without the reported error while preserving the intended names or aliases.
Written by the indexing model from the issue text.
Assessment
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100